paypal - DoReferenceTransaction Internal Error -


i want create billing agreement paypal api , works fine until want transaction using doreferencetransaction.

then result:

doreferencetransactionresponsetype object (     [doreferencetransactionresponsedetails] =>      [fmfdetails] =>      [timestamp] => 2014-08-18t10:58:51z     [ack] => failure     [correlationid] => 9de181ec5132e     [errors] => array         (             [0] => errortype object                 (                     [shortmessage] => internal error                     [longmessage] => internal error                     [errorcode] => 10001                     [severitycode] => error                     [errorparameters] =>                  )              [1] => errortype object                 (                     [shortmessage] => invalid data                     [longmessage] => transaction cannot processed.                     [errorcode] => 10004                     [severitycode] => error                     [errorparameters] =>                  )          )      [version] => 116.0     [build] => 12303548 ) 

please tell me if need more information.

regards dennis

edit: request:

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:ebay:api:paypalapi" xmlns:ebl="urn:ebay:apis:eblbasecomponents" xmlns:cc="urn:ebay:apis:corecomponenttypes" xmlns:ed="urn:ebay:apis:enhanceddatatypes" ><soapenv:header><ns:requestercredentials><ebl:credentials><ebl:username>xxx</ebl:username><ebl:password>xxx</ebl:password><ebl:signature>xxx</ebl:signature></ebl:credentials></ns:requestercredentials></soapenv:header><soapenv:body><ns:doreferencetransactionreq><ns:doreferencetransactionrequest><ebl:doreferencetransactionrequestdetails><ebl:referenceid>ec-0w695537h15619824</ebl:referenceid><ebl:paymentaction>authorization</ebl:paymentaction><ebl:paymenttype>any</ebl:paymenttype><ebl:paymentdetails><ebl:ordertotal currencyid="usd">1.00</ebl:ordertotal><ebl:buttonsource>paypal_sdk</ebl:buttonsource><ebl:notifyurl>http://123plakat.de</ebl:notifyurl><ebl:shiptoaddress><ebl:name>john doe</ebl:name><ebl:street1>1 main st</ebl:street1><ebl:cityname>san jose</ebl:cityname><ebl:stateorprovince>ca</ebl:stateorprovince><ebl:country>usa</ebl:country><ebl:postalcode>95131</ebl:postalcode></ebl:shiptoaddress></ebl:paymentdetails></ebl:doreferencetransactionrequestdetails><ebl:version>116.0</ebl:version></ns:doreferencetransactionrequest></ns:doreferencetransactionreq></soapenv:body></soapenv:envelope> 

 while using doreference transaction api , need use :   either billing agreement id (baid) received while creating billing agreement   buyer either using "createbillingagreement" or "doexpresscheckoutpayment"   api .   or transaction id received previous purchase buyer .    in request posted above , instead of passing baid or transaction id     passing express checkout token (<ebl:referenceid>ec-0w695537h15619824</ebl:referenceid>) while incorrect .   need replace token correct baid or transaction id .you can refer below url more info : 

https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/ht_ec-reftrans-setec-doreftrans-curl-etc/


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -