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

CF MX IPN NIGHTMARE Options
pixelabuser
#1 Posted : Friday, May 07, 2004 12:07:57 PM
Rank: Starting Member

Groups: Registered

Joined: 5/7/2004
Posts: 3
Location: ,
I need help. I will get right to the point on this one.... Below is the code I use to post to the IPN system. <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="me@me.com"> <input type="hidden" name="item_name" value="item"> <input type="hidden" name="item_number" value="itemnum"> <input type="hidden" name="amount" value="1.00"> <input type="hidden" name="shipping" value="0"> <input type="hidden" name="shipping2" value="0"> <input type="hidden" name="handling" value="0"> <input type="hidden" name="return" value="http://www.somedomain.net/ipn.cfm"> <input type="hidden" name="rm" value="2"> <input type="hidden" name="cancel_return" value="http://www.somedomain.net"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="custom" value="1234567890"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> It goes to paypal just fine, I can make the payment. I spent hours trying to figure out what the issue was here but it seems that paypal is not POSTING the ipn info to my ipn page. Instead it is coming to me in the URL bar how the hell do I get around this??? Is there a way to make it so they post to me? Here is some of the base IPN code. <cfset x = GetHttpRequestData()> <CFSET str="cmd=_notify-validate&" & x.content> <!-- post back to PayPal system to validate --> <CFHTTP redirect="yes" URL="https://www.paypal.com/cgi-bin/webscr?#str#" METHOD="get" RESOLVEURL="no" throwonerror="yes"> </CFHTTP> The GetHttpRequestData() function gathers form posts, not url data correct? Please help with this I am really banging my head here.. Like I mentioned above I am using CF MX 6.1 to be exact.
Sponsor  
 
ekerns
#2 Posted : Friday, May 07, 2004 1:52:55 PM
Rank: Starting Member

Groups: Registered

Joined: 5/5/2004
Posts: 7
Location: ,
You have the return URL pointing to your ipn script.

&lt;input type="hidden" name="return" value="http://www.somedomain.net/ipn.cfm"&gt;

Normally you use this to send the user to a thank you page or some other area of your site that confirms payment or whatever like this
&lt;input type="hidden" name="return" value="http://www.somedomain.net/thankyou.cfm"&gt;
pixelabuser
#3 Posted : Friday, May 07, 2004 1:59:19 PM
Rank: Starting Member

Groups: Registered

Joined: 5/7/2004
Posts: 3
Location: ,
I did just that, and I also specified the notify_url. the notify url points to the ipn script and the return script points to a thankyou page. I am getting really confused on this one. I view the source on the payment completed page and paypal appends the post data to the return url, weird??
There is also no sign of a post script in the source code of the pay completed page on paypal that posts to my IPN handler page.
Anyone have any ideas?
ekerns
#4 Posted : Friday, May 07, 2004 2:43:47 PM
Rank: Starting Member

Groups: Registered

Joined: 5/5/2004
Posts: 7
Location: ,
If you have payment data transfer on it will post the data to the return page. Turn it off and it wont. Paypal posts info to the ipn page but you would never see that unless you have the return URL pointng to the ipn page. I wasnt clear on whether or not you verified your ipn was being hit from paypal or if its just that you dont want the data in the url of the return page.
pixelabuser
#5 Posted : Friday, May 07, 2004 3:45:47 PM
Rank: Starting Member

Groups: Registered

Joined: 5/7/2004
Posts: 3
Location: ,
cool it works! Thanks for the help!
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.274 seconds.