Jump to content


Photo

IPN not posting item # Field


  • This topic is locked This topic is locked
3 replies to this topic

#1 sunil

sunil

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 01 August 2003 - 07:57 AM

This is how i try to trap the item NO field.

<CFIF IsDefined("FORM.item_number")>
<CFSET item_number=FORM.item_number>
<CFELSE>
<CFSET item_number="NO ITEM NO">
</CFIF>

1. Sometimes the form field is defined but then we get a null value on item number. When we go to paypal and see there is no item number which is perfectly fine.

This is the prob.

2. A few times form field is NOT defined when the IPN comes. But then when we see that transaction on paypal there is an item number.

Can you explain this to me.

Thanks.


Sunil

#2 pepe

pepe

    Junior Member

  • Members
  • 105 posts

Posted 02 August 2003 - 03:08 PM

Hi,

IPN does not return back individual item names or numbers in the shopping cart. It simply returns the grand total. This is currently a Paypal restriction.

You have to keep track of the order id, send it along with the form to paypal, and then when IPN returns use that order id to generate the order again using your database.

I hope the above helps.

Cheers,

Sharad Goel
Well Drafted Consultants Inc.
http://www.welldrafted.net

#3 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 04 August 2003 - 12:55 PM

If you are using the shopping cart, the items will come back as item_number1, item_number2 up to num_cart_items.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#4 Webtron

Webtron

    Member

  • Members
  • PipPip
  • 10 posts

Posted 07 August 2003 - 08:46 AM

http://www.paypaldev...p?TOPIC_ID=1313




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users