How to show multiple items in Paypal checkout page?

By

June 27, 2012Code GeneralNo comments

When you are working in shopping cart site with Paypal you must wonder how to show multiple items in Paypal site during checkout. Its pretty simple.  You can add / pass n number of items to Paypal page for checkout instead of 1 single item with total price, if you do so the use may not be aware of what all the items they checkout in your site.

The HTML form which you are generating and submitting in your site will handle this. The steps involved are

  • cmd in the form should be “_cart”
  • upload in the form should be “1”
  • item_name_x ,  x can be any number
  • item_number_x, x can be any number
  • amount_x, x can be any number
  • quantity_x, can be any number
  • business, email of your Paypal account
  • return, once paid return URL to your site
  • cancel_return, when user cancelled return URL to your site
  • notify_url, if IPN is enabled the data will be post back to your site URL

The above steps will be helpful for generating multiple item checkout page in Paypal to the user. This example is given for Paypal SANDBOX site. If you want the same for LIVE Paypal site just replace the action URL of the form.
Replace all these variable according to your website “PAPAL_BUSINESS_EMAIL”, “RETURN_SITE_URL”, “CANCEL_RETURN_URL”, “IPN_RETURN_URL” & “CUSTOM_VARIABLE”

Leave a Reply