|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/16/2004 Posts: 4 Location: ,
|
I am recieving multiple IPNs and I know that is supposed to happen until paypal receives a 200 OK from me.
Problem is, not sure what 200 OK is and it must not be sending one now.
I was going to work around this by checking for a unique ID of some sort and only processing the first one, however, the TXN_ID keeps changing. Any techniques on how to filter the IPNs to process only first one OR send 200 OK?
Thanks in advance!
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/17/2004 Posts: 45 Location: ,
|
U MUST BE POSTING TO THE WRONG URL
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/16/2004 Posts: 4 Location: ,
|
<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>
<cffile action="append" file="MY PHYSICAL LOCATION HERE\paypal_log.txt" output="#str#">
<CFHTTP URL="http://www.paypal.com/cgi-bin/webscr?#str#" METHOD="get" RESOLVEURL="false"> </CFHTTP>
<cfif parameterexists(CFHTTP.FileContent)> <cffile action="append" file="MY PHYSICAL LOCATION HERE\paypal_log.txt" output="#CFHTTP.FileContent#"> </cfif>
As you can see I am using paypal_log.txt to test my page. I have making purchases and watching the log. I wont paste the log but here is what it ends up looking like.
cmd=_notify-validate&txn_type=subscr%5Fpayment PLUS A BUNCH MORE cmd=_notify-validate&txn_type=subscr%5Fsignup PLUS A BUNCH MORE VERIFIED VERIFIED cmd=_notify-validate&txn_type=subscr%5Fsignup PLUS A BUNCH MORE VERIFIED cmd=_notify-validate&txn_type=subscr%5Fsignup PLUS A BUNCH MORE cmd=_notify-validate&txn_type=subscr%5Fpayment PLUS A BUNCH MORE VERIFIED VERIFIED
I receive signups and payments and VERIFIEDs multiple times so the 200 OK must not be being passed back. if there was a unique txn_id for each purchase, I wouldnt have a problem but it generates a new one everytime the ipn hits.
Also, notice that its sendind to the non-ssl address. And I am using subscriptions.
Thanks for any help you guys can give!
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/17/2004 Posts: 45 Location: ,
|
whats this... while you are are busy appending a file, in comes another post from (source). try moving that code down and by the way, use their try/catch error handling when accessing a file
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/16/2004 Posts: 4 Location: ,
|
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.195 seconds.