
Pay API Operation
Pay Errors
104 August 7, 2012 Adaptive Payments Developer Guide
curl -s --insecure
-H "X-PAYPAL-SECURITY-USERID: api_username"
-H "X-PAYPAL-SECURITY-PASSWORD: api_password"
-H "X-PAYPAL-SECURITY-SIGNATURE: api_signature"
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV"
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV"
-H "X-PAYPAL-APPLICATION-ID: app_id"
https://svcs.sandbox.paypal.com/AdaptivePayments/Pay -d
"requestEnvelope.errorLanguage=en_US
&actionType=PAY
&receiverList.receiver(0).amount=1.00
¤cyCode=USD
&feesPayer=EACHRECEIVER
&memo=Simple payment example.
&cancelUrl=http://your_cancel_url
&returnUrl=http://your_return_url
&ipnNotificationUrl=http://your_ipn_notification_url
&receiverList.receiver(0).paymentType=DIGITALGOODS"
Response to a payment for digital goods:
responseEnvelope.timestamp=2009-07-13T12%3A34%3A29.316-07%3A00
&responseEnvelope.ack=Success
&responseEnvelope.correlationId=d615a365bed61
&responseEnvelope.build=DEV
&payKey=AP-3TY011106S4428730
&paymentExecStatus=CREATED
NOTE: You must redirect the sender to the following PayPal URL to complete the payment
for digital goods:
https://www.paypal.com/webapps/adaptivepayment/flow/pay?
paykey=....
Pay Errors
Code Message Additional Information
500000 There is a system error
520002 Internal error
520003 User name/password is incorrect
520003
The caller’s credential doesn't have permission for the fee
payer <value>
The caller's credential doesn't have permission for the
payment type <value>
Authentication failed. API credentials are incorrect.
Since 1.6.0
Comentarios a estos manuales