Integration Guide

Table Of Contents
Third-Party Shopping Carts – The Cart Upload Command
Implementing the Instant Update API With the Cart Upload Command
7
334 June 2012 PayPal Payments Standard Integration Guide
The sample code below illustrates an Instant Update callback request, with these features:
2 individual item details, which can be used to calculate taxes
Weight information with one line item, which can be used to calculate shipping charges
A shipping address
METHOD=CallbackRequest
&CALLBACKVERSION=57.0
&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
&SHIPTOCITY=San Jose
&SHIPTOSTATE=CA
&SHIPTOCOUNTRY=US
&SHIPTOZIP=95131
&SHIPTOSTREET2
The Callback Response for Instant Update With the Cart Upload Command
Callback responses let you specify one or more shipping options, with unique shipping,
insurance, and tax amounts. Your callback server calculates the amounts based on shipping
addresses that buyers provide during the PayPal checkout experience.
The sample code below illustrates an Instant Update callback response, with these features:
Shipping insurance, with a different amount for each shipping option
3 shipping methods, with different shipping amounts
Taxes, with different amounts for each shipping method
The UPS Expedited shipping method is the default method