Download PayPal Adaptive Payments - 2012 Developer's Guide

Transcript
Preapproval API Operation
Preapproval Errors
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/Preapproval
"cancelUrl=http://your_cancel_url
&currencyCode=USD
&endingDate=2009-12-13T08%3A00%3A00.000Z
&maxAmountPerPayment=200.00
&maxNumberOfPayments=30
&maxTotalAmountOfAllPayments=1500.00
&pinType=NOT_REQUIRED
&requestEnvelope.errorLanguage=en_US
&returnUrl=http://your_return_url
&startingDate=2009-07-13T07%3A00%3A00.000Z
&senderEmail=sender@domain
-d
Response:
responseEnvelope.timestamp=2009-08-14T09%3A00%3A37.748-07%3A00
&responseEnvelope.ack=Success
&responseEnvelope.correlationId=7967b2d03745a
&responseEnvelope.build=DEV
&preapprovalKey=PA-9JR04288NR0519129
Preapproval Errors
Code
Message
500000
There is a system error
520002
Internal error
520003
User name/password is incorrect
520006
This call is not defined in the database
569016
Preapproval PIN functionality is not enabled
569018
Preapproved payments have been disabled
570026
The starting date is too far in the future
579038
The date range between the start date and the end date is too wide
579055
The limit for total amount of all payments is above PayPal’s limit
Adaptive Payments Developer Guide
Additional Information
August 7, 2012
175