
SetPaymentOptions API Operation
SetPaymentOptions Examples Using NVP and CURL
160 August 7, 2012 Adaptive Payments Developer Guide
SetPaymentOptions Examples Using NVP and CURL
These examples all use NVP for the data binding and CURL to deliver the HTTP request to
the PayPal sandbox endpoint. Line breaks are provided for ease of reading; each CURL
command is a single line and each request and response is a string without line breaks or extra
whitespace.
Specifying Invoice data example
In this example, the details about the items or service being purchased in a given payment
transaction are set up to be displayed in the payment review page before the user authorizes
the payment. The item details include, the item description, item count, item price, total
shipping and total tax.
NOTE: The sample code below uses the insecure setting to work around the certificate for
testing in a sandbox environment. For actual implementations, you must specify the
location of the certificate.
Request:
correlationId xs:string
Correlation identifier. It is a 13-character, alphanumeric string (for example,
db87c705a910e) that is used only by PayPal Merchant Technical Support.
NOTE: You must log and store this data for every response you receive.
PayPal Technical Support uses the information to assist with reported
issues.
timestamp xs:datetime
Date on which the response was sent, for example:
2012-04-02T22:33:35.774-07:00
NOTE: You must log and store this data for every response you receive.
PayPal Technical Support uses the information to assist with reported
issues.
Field Description
Comentarios a estos manuales