|
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
|
|
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:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 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. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Here is my code for the subscription button:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <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="me@yahoo.com"> <input type="hidden" name="item_name" value="Yearly 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="84.00"> <input type="hidden" name="p3" value="1"> <input type="hidden" name="t3" value="Y"> <input type="hidden" name="src" value="1"> <input type="hidden" name="sra" value="1"> <input type="hidden" name="return" value="http://www.mysite.com/paypal.cfm"> <input type="hidden" name="rm" value="1"> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Here is my IPN page:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <cfset x = GetHttpRequestData()> <CFSET str="cmd=_notify-validate&" & x.content> <CFHTTP URL="https://www.paypal.com/cgi-bin/webscr?#str#" METHOD="get" RESOLVEURL="false"> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I have triend the PayPal code, but I'm set back even farther in finding the solution...Please help!
- WaDsTa
|