Jump to content


No response from IPN

  • This topic is locked This topic is locked
1 reply to this topic

#1 MatthewD



  • Members
  • Pip
  • 2 posts

Posted 10 October 2005 - 09:07 AM

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])#">


<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 -->

<!-- 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.--->
<!-- ERROR -->
<!---This usually means that something went wrong along the way, you can use this area to log it and keep for your records.--->

<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">

An order was placed by: #FORM.first_name#' #FORM.last_name#

Item Purchased:
Profit Fee: #DollarFormat(Evaluate(FORM.PAYMENT_GROSS - FORM.PAYMENT_FEE))#

A Reminder Email:

I get a mail when testing with eliteweaver.co.uk but that test tool shows I am not sending them a reciept.



#2 MatthewD



  • Members
  • Pip
  • 2 posts

Posted 10 October 2005 - 09:10 AM

Just to add, I've tested using the following post from this forum. This post gives me a response, but IPN does not.

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


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users