Using smart buttons in shopping cart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a customized shopping cart which is using an old integration method to submit cart. In that form I send all items in cart one by one and also send buyers address. Upload is set to 1 and cmd is set to _cart. However, in this method customer's address is not showing in Paypal and this is causing disputes. Paypal has recommended to use smart buttons but my understanding is that it can only be used when your buyer want to buy a single item. In my case they can add multiple products from my catalog and then can pay all of them in one go. Can smart buttons be used for this scenario and if yes how?
Below is code snippet from my existing integration.
Form:
form action="https://www.paypal.com/uk/cgi-bin/webscr" method="post"
input type="hidden" name="cmd" value="_cart"
input type="hidden" name="upload" value="1"
Items
input type='hidden' name='item_name_$i' value='$title'
input type='hidden' name='amount_$i' value='$price'
input type='hidden' name='quantity_$i' value='$qty'
input type='hidden' name='shipping_$i' value='$ship'
input type='hidden' name='shipping2_$i' value='$ship'
Address Info:
input type='hidden' name='country' value='Country'
input type='hidden' name='first_name' value='First Name'
input type='hidden' name='last_name' value='Last Name'
input type='hidden' name='address1' value='Address 1'
input type='hidden' name='address2' value='Address 2'
input type='hidden' name='city' value='City'
input type='hidden' name='state' value='State'
input type='hidden' name='zip' value='Zip or Post code'
Kindly propose what update solution would suite to my requirements.
- Labels:
-
Carts
-
PayPal HTML Buttons

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Integrating PayPal's smart button into Shopify without specifying the price or shipping rates. in PayPal Payments Standard
- Need help setting up my PayPal smart button for my online shop. in PayPal Payments Standard
- Old Subscribe Link missing under buttons for New Account in REST APIs
- Let user pick their own own subscription pricing and period? in SDKs
- Generated Subscription Buttons show the Error 500 if clicked in Sandbox Environment