As someone else posted: I am having trouble with the IPN response as it always comes through with the CFHTTP.FileContent = "INVALID" instead of "VERIFIED".
I am using
http://www.eliteweaver.co.uk/testing/ipntest.php. I am using code posted here, tried 2 formats, both the same. I think str isn't EXACTLY what I get, therefore rejectedand an invalid response given. But why?
Any ideas?????
**********
<cfset x = GetHttpRequestData()>
<cfset str="cmd=_notify-validate&" & x.content>
<!---post back to PayPal for validation--->
<!---
https://www.paypal.com/cgi-bin/webscr?#str#
FOR TESTING
http://www.eliteweaver.c...esting/ipntest.php?#str# --->
<!--- other format:
<CFSET str="cmd=_notify-validate">
<CFLOOP INDEX="TheField" list="#form.fieldnames#">
<CFSET str = str & "#LCase(TheField)#=#URLEncodedFormat(Form[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="http://www.eliteweaver.co.uk/testing/ipntest.php?#str#" method="GET" resolveurl="no">
<cfdump var="#cfhttp.fileContent#">
**********