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 tried 2 code 
formats, both the same. I think str isn't sending back EXACTLY what I get, 
therefore rejected as different and 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.co.uk/testing/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">

**********

It's saying my script never replied:

HTTP Status: HTTP/1.1 200 OK
IPN Received: Your script did not reply!

I have cfhttp doing other things on the server, so don't see why it wouldn't 
work here. Anyway, how did cfhttp.fileContent get the INVALID reply??? 

Here's the url in the cfhttp tag after receiving the orginal post:

http://www.eliteweaver.co.uk/testing/ipntest.php?cmd=_notify-validate&receiver_email=paypal%40yourdomain%2Ecom&receiver_id=S1D89I62CBYZ1&business=paypal%40yourdomain%2Ecom&item_name=Item%20Name&item_number=402&quantity=1&invoice=778671&custom=Custom&option_name1=Option&option_selection1=Selection&option_name2=Option&option_selection2=Selection&payment_status=Completed&payment_gross=24%2E99&payment_fee=1%2E02&mc_gross=24%2E99&mc_fee=1%2E02&mc_currency=USD&tax=0%2E00&txn_id=5QEEZUB4BI415B32W&txn_type=web%5Faccept&memo=PayPal%20Special%20Instructions%2FNote%20Field%2E&first_name=Thomas&last_name=Tester&address_street=21%20Test%20Street&address_city=Testopia&address_state=Testville&address_zip=123456&address_country=United&address_status=confirmed&address_owner=1&payer_email=paypal%40theirdomain%2Ecom&paypal_address_id=MQKQILDJSN8BC&payer_id=MFYK3Y5MEE9IV&payer_business_name=Test%20Company%20Ltd%2E&payer_status=verified&payment_type=instant&notify_version=1%2E6&verify_sign=48sY9zJkFf2X4xTatUKP3Vtan4C43sZmg9gYeeubwrMU%2DBWY2p41rBZp&subscr_effective=10%3A06%3A49%20Dec%2019%2C%202005%20PDT&period1=7%20d&period2=3%20w&period3=11%20m&amount1=1%2E99&amount2=6%2E49&amount3=19%2E99&mc_amount1=1%2E99&mc_amount2=6%2E49&mc_amount3=19%2E99&recurring=1&reattempt=1&retry_at=10%3A06%3A49%20Dec%2026%2C%202005%20PDT&username=QvIIZFya&password=iP487ItIuWqO2&subscr_id=S%2DUO43TD9EYTVC5KB3S&payment_date=10%3A06%3A49%20Dec%2019%2C%202005%20PDT&subscr_date=10%3A06%3A49%20Dec%2019%2C%202005%20PDT

Would the url encoding be a problem? or the length?

Does the Elite form just not work, or what? I can't see anything wrong except 
it thinks some items are not being posted back exactly the same, but when I use 
the "follow IPN" button my debugging output seems fine apart for urlencoding.

Any ideas???

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227393
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to