Jump to content


Photo

IPN - Payer_ID


  • This topic is locked This topic is locked
1 reply to this topic

#1 ScareCrow

ScareCrow

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 11 July 2003 - 08:26 PM

I have set up the IPN in coldfusion, but every time the payer_id is the same. The manual indicates this is transaction independant. Can some one tell me what I'm doing wrong. My Code follows

Cart Checkout
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="process" id="process">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="#Application.MerchantAccount#">
<input type="hidden" name="upload" value="1">
<cfloop from="1" to="#ArrayLen(Session.ShoppingCart)#" index="index">
<cfquery name="rs_ProductPrice" datasource="#Request.DSN#">
Select UnitPrice, ProductName
From Products
Where ProductID = #Session.ShoppingCart[index][1]#
</cfquery>
<input type="hidden" name="item_name_#index#" value="#rs_ProductPrice.ProductName#">
<input type="hidden" name="item_number_#index#" value="#Session.ShoppingCart[index][1]#">
<cfset Amount = rs_ProductPrice.UnitPrice * Session.ShoppingCart[index][2]>
<input type="hidden" name="amount_#index#" value="#DecimalFormat(Amount)#">
</cfloop>
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="first_name" id="first_name" size="20" value="#Session.first_name#">
<input type="hidden" name="last_name" id="last_name" size="30" value="#Session.last_name#">
<input type="hidden" name="payer_email" id="payer_email" size="20" value="#Session.payer_email#">
<input type="hidden" name="return" value="http://www.stevenleegroup.com/StevenLee/cart/ipn.cfm">
<input type="hidden" name="notify_url" value="http://www.stevenleegroup.com/StevenLee/thankyou.htm">
<input type="hidden" name="cancel_return" value="http://www.stevenleegroup.com/StevenLee/canceled.htm">
<input type="image" name="submit" src="http://images.paypal.com/images/x-click-but01.gif" alt="Make payments with PayPal - it's fast, free and secure!" style="visibility: hidden;">
</form>

IPN page is exactly the same as the tutorial on easycfm

Ken


The ScareCrow

#2 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 14 July 2003 - 11:00 AM

txn_id is unique per payment. payer_id is the buyer's account number and is thus not unique per payment.

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users