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

CFHTTP error after the IPN return Options
MUSICIANMP3
#1 Posted : Saturday, November 06, 2004 10:16:33 PM
Rank: Starting Member

Groups: Registered

Joined: 11/6/2004
Posts: 2
Location: ,
Hello, I'm having a problem with updating my database after the IPN return is made. The error is an Invalid transaction returned.#CFHTTP.FileContent# Why I would get a CFHTTP error when the IPN is returned to my site? I’m at my wits end I hope someone can help thanks. This generates the error to the shopper <cfelse> <!--- log for investigation ---> <cfset logmess = "#DateStamp# Invalid transaction returned.#CFHTTP.FileContent#"> <cfset message = "There was a problem processing your order. Please contact technical support."> <cfset attributes.step = "error"> </cfif> This is the form I'm submitting to PayPal. <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="rm" value="0"> <input type="hidden" name="bn" value="shop.MusicianMP3"> <input type="hidden" name="business" value="#GetSettings.CCMerchantPassword#"> <input type="hidden" name="item_name" value="#Request.AppSettings.SiteName# Order"> <input type="hidden" name="currency_code" value="#Left(LSCurrencyFormat(10, "international"),3)#"> <input type="hidden" name="amount" value="#Total#"> <input type="hidden" name="custom" value="#attributes.BasketNum#^#Session.User_ID#"> <cflock scope="SESSION" timeout="15" type="READONLY"> </cflock> <input type="hidden" name="notify_url" value="#Request.AppSettings.StoreURL#index.cfm?fuseaction=shopping.checkout&step=ipn"> <input type="hidden" name="return" value="#Request.AppSettings.StoreURL#index.cfm?fuseaction=shopping.checkout&step=ipn&PayPalCust=Yes"> <input type="hidden" name="cancel_return" value="#Request.AppSettings.StoreURL#index.cfm?fuseaction=shopping.basket"> <input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> MUSICIANMP3
Sponsor  
 
MUSICIANMP3
#2 Posted : Monday, November 08, 2004 10:07:28 PM
Rank: Starting Member

Groups: Registered

Joined: 11/6/2004
Posts: 2
Location: ,
My problem is posting back to the IPN. My server does not seem to be allowing me to use CFHTTP to post back to the IPN system after a successful transaction to my cart. I even tried posting with my firewall off, has anybody dealt with this issue using coldfusion MX?

Thanks,


<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by MUSICIANMP3
[br]Hello,

I'm having a problem with updating my database after the IPN return is made. The error is an Invalid transaction returned.#CFHTTP.FileContent#

Why I would get a CFHTTP error when the IPN is returned to my site? I’m at my wits end I hope someone can help thanks.


This generates the error to the shopper


&lt;cfelse&gt;
&lt;!--- log for investigation ---&gt;
&lt;cfset logmess = "#DateStamp# Invalid transaction returned.#CFHTTP.FileContent#"&gt;
&lt;cfset message = "There was a problem processing your order. Please contact technical support."&gt;
&lt;cfset attributes.step = "error"&gt;

&lt;/cfif&gt;

This is the form I'm submitting to PayPal.

&lt;form action="https://www.paypal.com/cgi-bin/webscr" method="post"&gt;
&lt;input type="hidden" name="cmd" value="_xclick"&gt;
&lt;input type="hidden" name="rm" value="0"&gt;
&lt;input type="hidden" name="bn" value="shop.MusicianMP3"&gt;
&lt;input type="hidden" name="business" value="#GetSettings.CCMerchantPassword#"&gt;
&lt;input type="hidden" name="item_name" value="#Request.AppSettings.SiteName# Order"&gt;
&lt;input type="hidden" name="currency_code" value="#Left(LSCurrencyFormat(10, "international"),3)#"&gt;
&lt;input type="hidden" name="amount" value="#Total#"&gt;
&lt;input type="hidden" name="custom" value="#attributes.BasketNum#^#Session.User_ID#"&gt;
&lt;cflock scope="SESSION" timeout="15" type="READONLY"&gt;
&lt;/cflock&gt;
&lt;input type="hidden" name="notify_url" value="#Request.AppSettings.StoreURL#index.cfm?fuseaction=shopping.checkout&step=ipn"&gt;
&lt;input type="hidden" name="return" value="#Request.AppSettings.StoreURL#index.cfm?fuseaction=shopping.checkout&step=ipn&PayPalCust=Yes"&gt;
&lt;input type="hidden" name="cancel_return" value="#Request.AppSettings.StoreURL#index.cfm?fuseaction=shopping.basket"&gt;
&lt;input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"&gt;
&lt;/form&gt;


MUSICIANMP3
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

MUSICIANMP3
WebAlterations
#3 Posted : Monday, December 06, 2004 3:50:04 PM
Rank: Starting Member

Groups: Registered

Joined: 12/6/2004
Posts: 3
Location: ,
i ran into the same problem with the CFHTTP command.. are you hosting the IPN yourself, or going through another company for hosting ?

--
Eric
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.265 seconds.