PayPal Adaptive Payments - 2012 Betriebsanweisung Seite 188

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 298
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 187
PreapprovalDetails API Operation
PreapprovalDetails Examples Using NVP and CURL
188 August 7, 2012 Adaptive Payments Developer Guide
command is a single line and each request and response is a string without line breaks or extra
whitespace.
Obtaining information about a preapproval
In this example, the caller of the PreapprovalDetails API operation specifies a
preapproval key. The result shows whether or not the status has been approved, which in this
case is false because the person making the approval has not completed the process on
PayPal.
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:
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/PreapprovalDetails -d
"preapprovalKey=PA-9JR04288NR0519129
&requestEnvelope.errorLanguage=en_US "
Response:
responseEnvelope.timestamp=2009-07-13T13%3A50%3A40.496-07%3A00
&responseEnvelope.ack=Success
&responseEnvelope.correlationId=16dbc35f1aea7
&responseEnvelope.build=DEV
&approved=false
&cancelUrl=your_cancel_url
&curPayments=0
&curPaymentsAmount=0.00
&curPeriodAttempts=0
&currencyCode=USD
&dateOfMonth=0
&dayOfWeek=NO_DAY_SPECIFIED
&endingDate=2009-12-13T13%3A40%3A37.0-08%3A00&maxAmountPerPayment=200.00
&maxNumberOfPayments=30
&maxTotalAmountOfAllPayments=1500.00
&paymentPeriod=NO_PERIOD_SPECIFIED
&pinType=NOT_REQUIRED
&returnUrl=your_cancel_url
&startingDate=2009-07-13T13%3A40%3A37.0-07%3A00
&status=ACTIVE
Seitenansicht 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 297 298

Kommentare zu diesen Handbüchern

Keine Kommentare