YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Sandbox vs. Live (IPN Broke) Options
jscibona
#1 Posted : Monday, March 14, 2005 12:59:30 AM
Rank: Starting Member

Groups: Registered

Joined: 3/14/2005
Posts: 1
Location: ,
I am using a very simplified version of the IPN that works fine in sandbox mode but does not fire off the email when I send it live. Any ideas what I am doing wrong? test.cfm <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="john@thescibonas.org"> <input type="hidden" name="item_name" value="Test Number 2"> <input type="hidden" name="item_number" value="1234"> <input type="hidden" name="amount" value="0.01"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://www.thescibonas.org"> <input type="hidden" name="cancel_return" value="http://http://www.thescibonas.org"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="lc" value="US"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> ipn.cfm <!-- read post from PayPal system and add 'cmd' --> <CFSET str="cmd=_notify-validate"> <CFLOOP INDEX="TheField" list="#Form.FieldNames#"> <CFSET str = str & "#LCase(TheField)#=#URLEncodedFormat(Evaluate(TheField))#"> </CFLOOP> <CFIF IsDefined("FORM.payment_date")> <CFSET str = str & "&payment_date=#URLEncodedFormat(Form.payment_date)#"> </CFIF> <CFIF IsDefined("FORM.subscr_date")> <CFSET str = str & "&subscr_date=#URLEncodedFormat(Form.subscr_date)#"> </CFIF> <!-- post back to PayPal system to validate --> <CFHTTP URL="https://www.paypal.com/cgi-bin/webscr?#str#" METHOD="GET" RESOLVEURL="false"> </CFHTTP> <!-- check notification validation --> <CFIF #CFHTTP.FileContent# is "VERIFIED"> <!-- check that payment_status=Completed --> <cfif FORM.payment_status eq "Completed"> <!-- check that receiver_email is your email address --> <cfif #FORM.RECEIVER_EMAIL# eq "john@thescibonas.org"> <!-- process payment --> <!--- send user an email ---> <cfmail server="scriptmail.intermedia.net" from="john@thescibonas.org" to="#FORM.payer_email#" subject="Test Subject"> Test Message </cfmail> </cfif> </cfif> </CFIF>
Sponsor  
 
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.134 seconds.