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

2 Pages 12>
IPN dont work for me Options
Matthew Bourke
#1 Posted : Wednesday, April 30, 2003 11:24:39 PM
Rank: Starting Member

Groups: Registered

Joined: 4/29/2003
Posts: 4
Location: ,
Hi I have 2 pages 1 that first sends off the order and th IPN now my order goes through and the person pays but nothing gets sent to my ipn.cfm if ya make an order and pay ya only end up in ya paypal account centre and nothing happens to my IPN.cfm page which has set's the order as fullfilled automatically any1 know why these are the 2 pages i have ============================================= this is the first page that sends the order page1 it seems to work fine =========================================== <cfform action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="webmaster@interactiveonline.com.au"> <cfoutput> <input type="hidden" name="item_name" value="#getMaxBlah.maxID#"> <input type="hidden" name="amount" value="#NumberFormat(total_cost,'__.__')#"> <input type="hidden" name="invoice" value="#getMaxBlah.maxID#"> <input type="hidden" name="notify_url" value="http://www.mattbourke.com/wob/paypalservermsg.cfm"> </cfoutput> =============================== this is whats on the ipn.cfm and nothing gets sent to it =================================== <!--- read post from PayPal system and add 'cmd' ---> <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> <!--- post back to PayPal system to validate ---> <CFHTTP URL="https://www.paypal.com/cgi-bin/webscr?#str#" METHOD="GET" RESOLVEURL="false"> </CFHTTP> <!--- assign posted variables to local variables ---> <!--- note: additional IPN variables also available -- see IPN documentation ---> <CFSET item_name=FORM.item_name> <CFSET receiver_email=FORM.receiver_email> <CFSET payment_status=FORM.payment_status> <CFSET payment_gross=FORM.payment_gross> <CFSET txn_id=FORM.txn_id> <CFSET invoice=FORM.invoice> <CFSET payer_email=FORM.payer_email> <CFIF IsDefined("FORM.item_number")> <CFSET item_number=FORM.item_number> </CFIF> <!--- check notification validation ---> <CFIF #CFHTTP.FileContent# is "VERIFIED"> <!--- check that payment_status=Completed ---> <!--- <cfif FORM.payment_status eq "Completed"> ---> <cfparam name="form.paid" default="yes"> <!--- check that txn_id has not been previously processed ---> <!--- check that receiver_email is your email address ---> <!--- process payment ---> <cfquery name="updateTable" datasource="myDSN"> UPDATE tblorder SET paid = #form.paid# WHERE id = #form.invoice# </cfquery> <!--- send your self an email telling you about the order ---> <cfmail from="webmaster@interactiveonline.com.au" to="webmaster@interactiveonline.com.au" server="mail.interactiveonline.com.au" subject="Paypal Payment was made!"> An order was placed by: #FORM.first_name#' #FORM.last_name# Order Number: #FORM.invoice# Purchase Price: #DOLLARFORMAT(FORM.PAYMENT_GROSS)# PayPal Fee: #DollarFORMAT(FORM.PAYMENT_FEE)# ========================== Profit Fee: #DollarFormat(Evaluate("#FORM.PAYMENT_GROSS# - #FORM.PAYMENT_FEE#"))# A Reminder Email: http://www.worldofboxing.com.au </cfmail> <cflocation url="http://www.mattbourke.com/wob/index.cfm" addtoken="No"> <CFELSEIF #CFHTTP.FileContent# is "INVALID"> There has been an error please contact the admin webmaster@interactiveonline.com.au <!--- log for investigation ---> <CFELSE> There has been an error please contact the admin webmaster@interactiveonline.com.au <!--- error ---> </CFIF> ============================== if some1 can help me out i would be very greatfull thank you www.worldofboxing.com.au the home of boxing
Sponsor  
 
paypal_pb
#2 Posted : Thursday, May 01, 2003 12:20:59 AM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Can you test by posting this form to your script: http://www.paypaldev.org/topic.asp?TOPIC_ID=1658

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
Matthew Bourke
#3 Posted : Sunday, May 04, 2003 3:42:08 AM
Rank: Starting Member

Groups: Registered

Joined: 4/29/2003
Posts: 4
Location: ,
get an error





===================================================
There has been an error please contact the admin webmaster@interactiveonline.com.au
===================================================

its from the "&lt;CFELSEIF #CFHTTP.FileContent# is "INVALID"&gt;" section :(

www.worldofboxing.com.au the home of boxing
paypal_pb
#4 Posted : Monday, May 05, 2003 3:19:58 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Can you fix such that no error occurs?

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
Matthew Bourke
#5 Posted : Tuesday, May 06, 2003 3:11:14 AM
Rank: Starting Member

Groups: Registered

Joined: 4/29/2003
Posts: 4
Location: ,
" Can you fix such that no error occurs?" huh ?


it doesnt matter if there is a error or not PayPal dont send anything to it to get an error

or does paypal just not do what it says cos of an error ?

as paypal sends you to ya paypal account once ya paid and not display the ipn error

Please help this is sending me insane

www.worldofboxing.com.au the home of boxing
paypal_pb
#6 Posted : Tuesday, May 06, 2003 2:26:03 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Can you try testing by setting the "return" URL to your script? That way you can see what errors are occuring. Example:

https://www.paypal.com/xclick/business=webmaster@interactiveonline.com.au&notify_url=http://www.mattbourke.com&amount=0.01&return=http://www.mattbourke.com/wob/paypalservermsg.cfm

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
simoneanne
#7 Posted : Wednesday, May 14, 2003 2:01:42 PM
Rank: Starting Member

Groups: Registered

Joined: 5/14/2003
Posts: 9
Location: ,
This isn't working for me either. I've run the test form on my ipn.cfm page to make sure my script is working right. I fixed all the errors in my script and then tried to run it live on PP. My return works and the payment goes through, but my ipn script isn't being run. Nothing goes into my database and the confirmation emails I set up don't get sent. Is there something else I should be doing?

Please help!
paypal_pb
#8 Posted : Wednesday, May 14, 2003 5:33:53 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Can you try settign "return" to point to your script:

&lt;input type="hidden" name="return" value="http://www.mattbourke.com/wob/paypalservermsg.cfm"&gt;

Then the Continue button will post the IPN fields to your script and you can see if your script is erroring.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
simoneanne
#9 Posted : Thursday, May 15, 2003 1:06:39 PM
Rank: Starting Member

Groups: Registered

Joined: 5/14/2003
Posts: 9
Location: ,
Thank you for the suggestion. My IPN page is being hit. However, now when I verify that the payment is valid I don't get "VERIFIED" or "INVALID". I get a page that says "You have requested an outdated version of PayPal. This error often results from the use of bookmarks ..."

I made sure I was sending all the variables in a "Post". Is there something else I should be doing?

Why am I getting this page?

Thanks.

-- Simone
paypal_pb
#10 Posted : Thursday, May 15, 2003 2:52:02 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
There's a problem with what you are posting to PayPal. Are you using the sample code we provide?

http://www.paypal.com/ipn

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
simoneanne
#11 Posted : Thursday, May 15, 2003 3:14:00 PM
Rank: Starting Member

Groups: Registered

Joined: 5/14/2003
Posts: 9
Location: ,
I tried it, but now I'm getting the standard PayPal login page.
paypal_pb
#12 Posted : Thursday, May 15, 2003 8:17:44 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Are you using the sample code provided?

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
Chadd
#13 Posted : Friday, May 16, 2003 6:36:33 PM
Rank: Starting Member

Groups: Registered

Joined: 5/16/2003
Posts: 4
Location: ,
I have tried everything in these friggen forums and nothing works. why doesnt paypal have an exact script (IPN.CFM) file and all the users need to do is add in their info. man paypal would be cool if they offered a little more help to the businesses.


Can anyone please let me copy their IPN script for subscription that actually works. Please help nothing is working. i get eliteweaver to show that i am posting incorrect script but that is it.

this link doesnt work http://jshop.homeip.net/buy_paypal_ipn.cfm
simoneanne
#14 Posted : Sunday, May 18, 2003 10:44:57 AM
Rank: Starting Member

Groups: Registered

Joined: 5/14/2003
Posts: 9
Location: ,
Yes, I'm using the sample script and I'm getting the standard PP Login page.
denny1
#15 Posted : Wednesday, May 21, 2003 2:43:35 PM
Rank: Starting Member

Groups: Registered

Joined: 5/21/2003
Posts: 4
Location: ,
I have tried everything too with the exact same problems listed in this forum. I know my code is correct according to the paypal documentation. I am not receiving the data from paypal to my ipn.cfm template. I am not receiving any error messages on the server either. I am puzzled. The code is simple. Has anyone got this working? If so I would love to see the code.
simoneanne
#16 Posted : Wednesday, May 21, 2003 5:03:31 PM
Rank: Starting Member

Groups: Registered

Joined: 5/14/2003
Posts: 9
Location: ,
I got it working for a little while, but it was posting to my IPN page twice. I used the code that Robert posted in the CF forum: http://webforums.macrome...=7&threadid=513311.

When I changed the return variable to another page, it's not posting at all anymore.

I'm about to change my return variable back to the ipn page and just check for duplicates. I'm truly baffled.

-- Simone
paypal_pb
#17 Posted : Wednesday, May 21, 2003 6:52:08 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
If it works OK off of the "return" URL, it should work OK with the "notify_url".

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
denny1
#18 Posted : Wednesday, May 21, 2003 9:42:32 PM
Rank: Starting Member

Groups: Registered

Joined: 5/21/2003
Posts: 4
Location: ,
Finally got it working..can't believe the amount of time it took though. I couldn't get either the PayPal code or EasyCfm code to work all day.
paypal_pb
#19 Posted : Wednesday, May 21, 2003 11:34:45 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
That's good to hear.

What seemed to be the stumbling block?

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
denny1
#20 Posted : Thursday, May 22, 2003 12:03:30 AM
Rank: Starting Member

Groups: Registered

Joined: 5/21/2003
Posts: 4
Location: ,
This code worked for me. It seems it requires an "if" statement within the loop.

EX:

&lt;cfset str = "cmd=_notify-validate"&gt;
&lt;cfloop index="TheField" list="#Form.FieldNames#"&gt;
&lt;cfset str = str & "#LCase(TheField)#=#URLEncodedFormat(Evaluate(TheField))#"&gt;
&lt;cfif TheField IS "PAYMENT_STATUS" AND IsDefined("FORM.payment_date")&gt;
&lt;CFSET str = str & "&payment_date=#URLEncodedFormat(Form.payment_date)#"&gt;
&lt;/cfif&gt;
&lt;/cfloop&gt;

The form requires 3 hidden fields that the documentation does not provide.

They are:

&lt;input type="hidden" name="notify_url" value="http://www.whatever.com/cart/ipn.cfm"&gt;

&lt;input type="hidden" name="return" value="http://www.whatever.com/mythankyoupage.html"&gt;

&lt;input type="hidden" name="rm" value="1"&gt;
Users browsing this topic
Guest
2 Pages 12>
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.443 seconds.