• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. IPN and PDT > 68. Process Shopping Carts with IPN

Process Shopping Carts with IPN

Modify your IPN code to handle multiple products purchased through PayPal’s Shopping Cart system.

When a payment is made for a good on the PayPal system through Single Item Purchase or Web Accept buttons, the product information is passed back to your IPN page in the same format as that in which it was submitted. This means your IPN processing page has to handle only one set of values in order to process the order. In the case of Shopping Cart purchases, your IPN page can expect to receive product information for one or more items. It needs to be able to handle this scenario effectively in order to process orders without errors.

In order for your page to be able to work with both Web Accept and Shopping Cart orders, you need to check which type of payment is being made, to see how many items are being ordered (if the order is a Shopping Cart), and finally, to populate the variable values accordingly for each item in the cart.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint