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

General IPN Problem Options
wadsta11
#1 Posted : Monday, May 02, 2005 6:28:31 PM
Rank: Starting Member

Groups: Registered

Joined: 5/2/2005
Posts: 2
Location: ,
I am have the same problem as many other are having. I have IPN and AutoReturn enabled, and PDT off. I once had a website in which the IPN and my database integration worked perfectly. It has been about a year now, and I have lost all of my previous coding to take from. Here are my code samples, can anyone let me know what is wrong with this: _____________________Form Page_____________________ <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick-subscriptions"> <input type="hidden" name="business" value="my@email.com"> <input type="hidden" name="item_name" value="Subscription"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="a3" value="8.00"> <input type="hidden" name="p3" value="1"> <input type="hidden" name="t3" value="M"> <input type="hidden" name="src" value="1"> <input type="hidden" name="sra" value="1"> <input type="hidden" name="notify_url" value="http://www.mysite.com/ipn.cfm"> <input type="hidden" name="return" value="http://www.mysite.com/return.cfm"> <input type="hidden" name="rm" value="1"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-subscribe.gif" border="0" name="submit" alt="PayPal Payments - Fast, easy, secure!"></td> </form> _____________________My IPN Page_____________________ <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> <CFHTTP URL="https://www.paypal.com/cgi-bin/webscr?#str#" METHOD="GET" RESOLVEURL="false"></CFHTTP> <CFIF #CFHTTP.FileContent# is "VERIFIED"> <cfif FORM.payment_status eq "Completed"> <cfif #FORM.RECEIVER_EMAIL# eq "my@email.com"> <cfif #FORM.mc_gross# gte "8"> <--- Update the database ---> </cfif> </cfif> </cfif> </cfif> I have tested this on Elite and it says my IPN is not responding. Simple fix? Can't remember. Any help would be appreciated tremendously! - WaDsTa
Sponsor  
 
wadsta11
#2 Posted : Wednesday, May 04, 2005 10:14:03 PM
Rank: Starting Member

Groups: Registered

Joined: 5/2/2005
Posts: 2
Location: ,
I have read every forum post on this subject. I now have the CFHTTP.FileContent posting as INVALID ever time the page is loaded. It seems as if the form variables are not being passed to the ipn. It comes up with the error:

&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
Error resolving parameter FORM.RECEIVER_EMAIL

The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;

Here is my code for the subscription button:

&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
&lt;form action="https://www.paypal.com/cgi-bin/webscr" method="post"&gt;
&lt;input type="hidden" name="cmd" value="_xclick-subscriptions"&gt;
&lt;input type="hidden" name="business" value="me@yahoo.com"&gt;
&lt;input type="hidden" name="item_name" value="Yearly Subscription"&gt;
&lt;input type="hidden" name="no_shipping" value="1"&gt;
&lt;input type="hidden" name="no_note" value="1"&gt;
&lt;input type="hidden" name="currency_code" value="USD"&gt;
&lt;input type="hidden" name="a3" value="84.00"&gt;
&lt;input type="hidden" name="p3" value="1"&gt;
&lt;input type="hidden" name="t3" value="Y"&gt;
&lt;input type="hidden" name="src" value="1"&gt;
&lt;input type="hidden" name="sra" value="1"&gt;
&lt;input type="hidden" name="return" value="http://www.mysite.com/paypal.cfm"&gt;
&lt;input type="hidden" name="rm" value="1"&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;

Here is my IPN page:

&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
&lt;cfset x = GetHttpRequestData()&gt;
&lt;CFSET str="cmd=_notify-validate&" & x.content&gt;
&lt;CFHTTP URL="https://www.paypal.com/cgi-bin/webscr?#str#" METHOD="get" RESOLVEURL="false"&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;

I have triend the PayPal code, but I'm set back even farther in finding the solution...Please help!

- WaDsTa
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.295 seconds.