Below is part of the code I use for IPNs.
What I don't understand is that if I drop the "add payment date" part, the
IPN fails (INVALID). Why? Wouldn't form.payment_date be included in the
Form.FieldNames loop? What's the deal?
<!--- build response --->
<CFSET response = "cmd=_notify-validate">
<CFLOOP LIST="#Form.Fieldnames#" INDEX="f">
<!--- build validation response --->
<CFSET response = response & "&#LCASE(f)#=#URLEncodedFormat(Evaluate(f))#">
<!--- make local variables --->
<CFSET "#f#" = Evaluate(f)>
</CFLOOP>
<!--- add payment date --->
<CFIF IsDefined('FORM.payment_date')>
<CFSET response = response & "&payment_date=#URLEncodedFormat(Form.payment_date)#">
</CFIF>
<!--- send response back to PayPal --->
<CFHTTP URL="#paypal_verifyurl##response#" METHOD="GET" RESOLVEURL="false"></CFHTTP>
Tony Schreiber, Senior Partner Man and Machine, Limited
mailto:[EMAIL PROTECTED] http://www.technocraft.com
http://www.is300.net The Enthusiast's Home of the Lexus IS300 since 1999
***** PARTS STORE NOW OPEN ***** http://www.is300.net/store/
http://www.simplemessageboard.com Free Forum Software for Cold Fusion
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community.
http://www.fusionauthority.com/ads.cfm