
Adaptive Payments Developer Guide August 7, 2012 161
SetPaymentOptions API Operation
SetPaymentOptions 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/SetPaymentOptions -d
"requestEnvelope.errorLanguage=en_US&receiverOptions[0].receiver.email=test
@test.com
&receiverOptions[0].invoiceData.item[0].name=ITEM1&receiverOptions[0].invoi
ceData.item[0].price=50.0&receiverOptions[0].invoiceData.item[0].itemCount=
2&receiverOptions[0].invoiceData.item[0].itemPrice=25.0&receiverOptions[0].
invoiceData.totalTax=25.0&receiverOptions[0].invoiceData.totalShipping=25.0
&payKey=... "
SetPaymentOptions Errors
Code Message Additional Information
520002 Internal error
520003 Authentication failed. API credentials are incorrect. Since 1.6.0
550001 User is not allowed to perform this action
550001 This payment request must be authorized by the sender
540031 You do not have permission to set these payment options
540031 You do not have permission to set these payment options
Operation is not permitted because the credentials do not match
those of the initial operation
Since 1.6.0
580001 Invalid request: <value> Since 1.6.0
580022
Invalid request parameter: payKey with value <value>
payKey <value> has already been used to make a payment
displayOptions has already been set and cannot be set
multiple times
initiationEntity has already been set and cannot be set
multiple times
Invalid Request Parameter: institutionId with value <value>
The instituion ID <value> is not activated
Kommentare zu diesen Handbüchern