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

No response from IPN Options
MatthewD
#1 Posted : Monday, October 10, 2005 2:07:32 PM
Rank: Starting Member

Groups: Registered

Joined: 10/10/2005
Posts: 2
Location: ,
Dear All, After a frustrating couple of days trying to get this to work I have to admit I'm stuck and need help. I'm trying to get IPN working with the sandbox site. I can get a response using a manual post to my page. I get no response when processing via paypal. The amount shows in my account, but no post to my ipn.cfm page. Here's the code - there is a mail at the bottom to send me anything that is received; <cfparam name=Form.FieldNames default=""> <cfparam name=Form.First_name default=""> <cfparam name=Form.last_name default=""> <cfparam name=Form.item_number default=""> <cfparam name=Form.payment_gross default="0"> <cfparam name=Form.payment_fee default="0"> <cfparam name=Form.item_name default=""> <cfparam name=Form.txn_id default=""> <cfparam name=Form.payment_status default=""> <cfparam name=Form.custom default=""> <!-------------------------------------------------------------------------------------------------- Remember, this is not a graphic interface - The IPN.CFM file should run in the background. It is only an interface between PayPal and your transaction complete, invalid or error steps. ---------------------------------------------------------------------------------------------------> <cfset x = GetHttpRequestData()> <cfset str="cmd=_notify-validate&" & x.content> <!---post back to PayPal for validation---> <cfhttp url="http://www.sandbox.paypal.com/cgi-bin/webscr?#str#" method="GET" resolveurl="no"> <CFLOOP INDEX="TheField" list="#Form.FieldNames#"> <CFSET str = str & "#LCase(TheField)#=#URLEncodedFormat(Form[TheField])#"> </CFLOOP> <CFSET payment_status= FORM.payment_status> <CFSET paypaltxID= FORM.txn_id> <CFSET ID=Form.custom> <cfset OrderCompleted=0> <!--- Payment verified ---> <CFIF #CFHTTP.FileContent# is "VERIFIED"> <!-- check that payment_status=Completed --> <cfif #FORM.payment_status# eq "Completed"> <!-- check that receiver_email is your email address (that money went into your account --> <cfif #FORM.RECEIVER_EMAIL# eq "name@email.com"> Paypal says the funds went into your account<br> <!-- Everything checked ok, add your action here (typically you would want to update your database here --> </cfif> </cfif> <CFELSEIF #CFHTTP.FileContent# is "INVALID"> <!-- The information is not valid, please investigate and trace invalid info --> Invalid Info<br> <!---Something that was purchased was invalid, either the order or the information provided. This is usually good to log in case someone is trying to purchase with stolen card numbers, etc. Here simply place a QUERY tag that insert the data above into a database.---> <CFELSE> <!-- ERROR --> <!---This usually means that something went wrong along the way, you can use this area to log it and keep for your records.---> </CFIF> <cfmail subject="Be The Change: DVD order confirmation" from="bethechange@websitesandstuff.co.uk" to="matthew@orcaspirit.co.uk"><cfmailparam name="Reply-To" value="orders@bethechange.org.uk"> http://www.eliteweaver.co.uk/cgi-bin/webscr?#str# An order was placed by: #FORM.first_name#' #FORM.last_name# Item Purchased: Item Number: #FORM.ITEM_NUMBER# Purchase Price: #DOLLARFORMAT(FORM.PAYMENT_GROSS)# PayPal Fee: #DollarFORMAT(FORM.PAYMENT_FEE)# Profit Fee: #DollarFormat(Evaluate(FORM.PAYMENT_GROSS - FORM.PAYMENT_FEE))# ========================== #ID# ======= #paypaltxID# ======= #ordercompleted# ======= A Reminder Email: http://www.mysite.com </cfmail> I get a mail when testing with eliteweaver.co.uk but that test tool shows I am not sending them a reciept. HELP! Cheers Matthew
Sponsor  
 
MatthewD
#2 Posted : Monday, October 10, 2005 2:10:34 PM
Rank: Starting Member

Groups: Registered

Joined: 10/10/2005
Posts: 2
Location: ,
Just to add, I've tested using the following post from this forum. This post gives me a response, but IPN does not.

&lt;form method="post" action="http://www.bethechange.org.uk/ipn.cfm" ID="Form1"&gt;
&lt;input type="hidden" name="mc_gross" value="0.01" ID="Hidden1"&gt;
&lt;input type="hidden" name="address_status" value="unconfirmed" ID="Hidden2"&gt;
&lt;input type="hidden" name="payer_id" value="QGVDAFGZ9XHLJ" ID="Hidden11"&gt;
&lt;input type="hidden" name="tax" value="0.00" ID="Hidden12"&gt;
&lt;input type="hidden" name="payment_date" value="13:50:26 Mar 11, 2004 PST" ID="Hidden13"&gt;
&lt;input type="hidden" name="address_street" value="1840 Embarcadero Road" ID="Hidden14"&gt;
&lt;input type="hidden" name="payment_status" value="Pending" ID="Hidden15"&gt;
&lt;input type="hidden" name="address_zip" value="94303" ID="Hidden16"&gt;
&lt;input type="hidden" name="first_name" value="Patrick" ID="Hidden17"&gt;
&lt;input type="hidden" name="address_name" value="Patrick Breitenbach" ID="Hidden18"&gt;
&lt;input type="hidden" name="notify_version" value="1.6" ID="Hidden19"&gt;
&lt;input type="hidden" name="custom" value="" ID="Hidden20"&gt;
&lt;input type="hidden" name="payer_status" value="unverified" ID="Hidden21"&gt;
&lt;input type="hidden" name="business" value="pb-pdn@paypal.com" ID="Hidden22"&gt;
&lt;input type="hidden" name="address_country" value="United States" ID="Hidden23"&gt;
&lt;input type="hidden" name="address_city" value="Palo Alto" ID="Hidden24"&gt;
&lt;input type="hidden" name="quantity" value="1" ID="Hidden25"&gt;
&lt;input type="hidden" name="verify_sign" value="AkU-lzGsIkV0gazwa9nDVpmsx9X0AMF3KqbmhBuM8UTVNO5CFNAptk78" ID="Hidden26"&gt;
&lt;input type="hidden" name="payer_email" value="pb-test@paypal.com" ID="Hidden27"&gt;
&lt;input type="hidden" name="txn_id" value="4MX09190KB7728256" ID="Hidden28"&gt;
&lt;input type="hidden" name="payment_type" value="instant" ID="Hidden29"&gt;
&lt;input type="hidden" name="last_name" value="Breitenbach" ID="Hidden30"&gt;
&lt;input type="hidden" name="address_state" value="CA" ID="Hidden31"&gt;
&lt;input type="hidden" name="receiver_email" value="pb-pdn@paypal.com" ID="Hidden32"&gt;
&lt;input type="hidden" name="receiver_id" value="WAT63H8628SRN" ID="Hidden33"&gt;
&lt;input type="hidden" name="pending_reason" value="verify" ID="Hidden34"&gt;
&lt;input type="hidden" name="txn_type" value="web_accept" ID="Hidden35"&gt;
&lt;input type="hidden" name="item_name" value="Test" ID="Hidden36"&gt;
&lt;input type="hidden" name="mc_currency" value="USD" ID="Hidden37"&gt;
&lt;input type="hidden" name="item_number" value="" ID="Hidden38"&gt;
&lt;input type="hidden" name="payment_gross" value="0.01" ID="Hidden39"&gt;
&lt;input type="submit" value="Test IPN" ID="Submit1" NAME="Submit1"&gt;
&lt;/form&gt;

Cheers
Matthew
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.142 seconds.