Jump to content


Photo

CF MX IPN NIGHTMARE


  • This topic is locked This topic is locked
4 replies to this topic

#1 pixelabuser

pixelabuser

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 07 May 2004 - 07:07 AM

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.

#2 ekerns

ekerns

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 07 May 2004 - 08:52 AM

You have the return URL pointing to your ipn script.

<input type="hidden" name="return" value="http://www.somedomain.net/ipn.cfm">

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
<input type="hidden" name="return" value="http://www.somedomain.net/thankyou.cfm">

#3 pixelabuser

pixelabuser

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 07 May 2004 - 08:59 AM

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?

#4 ekerns

ekerns

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 07 May 2004 - 09:43 AM

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.

#5 pixelabuser

pixelabuser

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 07 May 2004 - 10:45 AM

cool it works! Thanks for the help!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users