YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

stopping IPN with 200 ok Options
r4nge
#1 Posted : Monday, May 17, 2004 4:00:42 AM
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!
Sponsor  
 
simplesimon
#2 Posted : Monday, May 17, 2004 9:23:15 AM
Rank: Starting Member

Groups: Registered

Joined: 5/17/2004
Posts: 45
Location: ,
U MUST BE POSTING TO THE WRONG URL
r4nge
#3 Posted : Monday, May 17, 2004 3:42:29 PM
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!
simplesimon
#4 Posted : Wednesday, May 19, 2004 1:03:15 AM
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
r4nge
#5 Posted : Wednesday, May 19, 2004 5:15:46 PM
Rank: Starting Member

Groups: Registered

Joined: 5/16/2004
Posts: 4
Location: ,
ok, good advice!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.147 seconds.