Download PayPal Express Checkout - 2012 Advanced Features Guide
Transcript
7 Implementing the Instant Update API Using the Callback &L_SHIPPINGOPTIONISDEFAULT0=false &L_SHIPPINGOPTIONNAME0=UPS Ground 7 Days &L_SHIPPINGOPTIONAMOUNT0=3.50 &L_SHIPPINGOPTIONISDEFAULT1=true &L_SHIPPINGOPTIONNAME1=UPS Next Day Air &L_SHIPPINGOPTIONAMOUNT1=8.00 Response Parameters [successResponseFields] &TOKEN=EC-17C76533PL706494P Callback Request The PayPal sends the parameters in the callback request to the location you specified for CALLBACK. The callback request parameters include: Line-item details you sent in the call to SetExpressCheckout. PayPal also sends back any line-item description details you may have specified, such as the L_ITEMWEIGHTUNIT1 and L_ITEMWEIGHTVALUE1 values shown in the example below. By passing this data back to you, PayPal expedites your callback response by eliminating the need for you to perform a database query to obtain this information. Shipping address of the buyer. Using the information in the callback request, calculate the rates and options yourself or send the information in an API call to your carrier to perform the calculations for you. Then send the shipping options, insurance amounts, and taxes to PayPal in the callback response. This is an example callback request: METHOD=CallbackRequest &CALLBACKVERSION=XX.0 &TOKEN=EC-0EE85728D547104V &CURRENCYCODE=USD &LOCALECODE=en_US &L_NAME0=10% Decaf Kona Blend Coffee &L_NUMBER0=623083 &L_DESC0=Size: 8-oz &L_AMT0=9.95 &L_QTY0=2 &L_NAME1=Coffee Filter bags &L_NUMBER1=6230 &L_DESC1=Size: Two 24-piece boxes &L_AMT1=39.70 &L_QTY1=2 &L_ITEMWEIGHTUNIT1=lbs &L_ITEMWEIGHTVALUE1=0.5 &SHIPTOSTREET=1 Main St 88 April 2012 Express Checkout Advanced Features Guide