PayPal Express Checkout - 2012 Podręcznik Użytkownika Strona 17

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 108
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 16
Express Checkout Advanced Features Guide April 2012 17
Customizing Express Checkout
Adding a Survey Question
1
Request Parameters
[requiredSecurityParameters]
&METHOD=SetExpressCheckout
&RETURNURL=https://...
&CANCELURL=https://...
&PAYMENTREQUEST_0_AMT=10.00
&PAYMENTREQUEST_0_CURRENCYCODE=USD
&PAYMENTREQUEST_0_PAYMENTACTION=Sale
&CUSTOMERSERVICENUMBER=1-800-FLOWERS
Response Parameters
[successResponseFields]
&TOKEN=EC-17C76533PL706494P
NOTE: For details on configuring the Customer Service number on the PayPal Profile page,
see the
Merchant Setup and Administration Guide.
Adding a Survey Question
You can add one survey question to the PayPal pages. PayPal returns the choice that the buyer
selected in the response to GetExpressCheckoutDetails and
DoExpressCheckoutPayment.
NOTE: This feature is available with API Version 61.0 or later.
The survey question displays in the format of a text string on the PayPal Review your
information page. The buyer responds by selecting from choices in a drop-down menu.
To enable the display of the survey question and choices, set the SURVEYENABLE field to 1 in
the call to SetExpressCheckout.
Set the SURVEYENABLE field to 1 in the call to SetExpressCheckout.
Set SURVEYQUESTION to the string containing your question.
Provide at least two L_SURVEYCHOICEn options from which the buyer can select one.
The following request example sets these fields:
Request Parameters
[requiredSecurityParameters]
&METHOD=SetExpressCheckout
&RETURNURL=https://...
&CANCELURL=https://...
&PAYMENTREQUEST_0_AMT=10.00
&PAYMENTREQUEST_0_CURRENCYCODE=USD
&PAYMENTREQUEST_0_PAYMENTACTION=Sale
&SURVEYENABLE=1
&SURVEYQUESTION="How did you hear about us?"
&L_SURVEYCHOICE0="friend"
&L_SURVEYCHOICE1="newspaper ad"
Przeglądanie stron 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 107 108

Komentarze do niniejszej Instrukcji

Brak uwag