|
|
|
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
|
|
|
|
|
|
|
|
|
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
|
|
|
|
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 "<CFELSEIF #CFHTTP.FileContent# is "INVALID">" section :( www.worldofboxing.com.au the home of boxing
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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¬ify_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
|
|
|
|
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!
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
Can you try settign "return" to point to your script: <input type="hidden" name="return" value="http://www.mattbourke.com/wob/paypalservermsg.cfm"> 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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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:
<cfset str = "cmd=_notify-validate"> <cfloop index="TheField" list="#Form.FieldNames#"> <cfset str = str & "#LCase(TheField)#=#URLEncodedFormat(Evaluate(TheField))#"> <cfif TheField IS "PAYMENT_STATUS" AND IsDefined("FORM.payment_date")> <CFSET str = str & "&payment_date=#URLEncodedFormat(Form.payment_date)#"> </cfif> </cfloop>
The form requires 3 hidden fields that the documentation does not provide.
They are:
<input type="hidden" name="notify_url" value="http://www.whatever.com/cart/ipn.cfm">
<input type="hidden" name="return" value="http://www.whatever.com/mythankyoupage.html">
<input type="hidden" name="rm" value="1">
|
|
|
|
Guest
|