Jump to content

Paypal IPN


wemustdesign

Recommended Posts

I have created a custom shopping cart. I have sent the multiple products to paypal. What I don't know how to do is send multiple items to the Paypal IPN. I am using the code below to get the details for the item. How do I get the item_names and item_numbers for all of the items ordered?

 

$item_name = $_POST['item_name_1'];

$item_number = $_POST['item_number_1'];

 

Link to comment
Share on other sites

this is probably better suited for the x.com developer forums.

 

basically you have no control over the PayPal IPN. It is based off the purchase order so as long as you send all the data to paypal for the order the data should be in the IPN. 

 

Do a print_r of the $_POST array to see what you get. Make sure your testing first in the sandbox.

 

API Reference: https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/howto_api_reference

IPN variables: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables

 

Hope that helps.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.