EasyCFM.COM ColdFusion Forums / Bug Reports! / PayPal IPN Question

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: PayPal IPN Question

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts first

01-10-2003 @ 9:11 PM
Send P.M.
My Gravatar!
Powered by Gravatar
Posts: 4542
Joined: Jan 2002

Email me the entire script to: webmaster@easycfm.com

I'll take a look and see if ithere is a problem with it... Wink

Pablo Varando
"In my early years SPAM was good, not!"

01-10-2003 @ 9:28 AM
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 2
Joined: Jan 2003

PayPal tutorial was excellent!!!

I have gotten my paypal stuff all set up and have used the tutorial that I copied off of this site. It works like a champ as far as getting the e-mail to users that I need to see it via an e-mail post. I also have the funds added to my account and get the variable information back correctly.

However, I started the IPN two days ago and paypal is still hitting my cf code on my server. I know this because I have two <cfmail> tags that are being hit every time the script runs to inform me of all the purchase information. I read through the PayPal IPN manual it states that you will see that PayPal will hit your server until it gets an HTTP 200 post back to it confirming all is well from your server.
If I am not mistaken is this piece of code doint just that? :
<CFHTTP URL="https://www.paypal.com/cgi-bin/webscr?#str#" METHOD="GET" RESOLVEURL="false">
<cfparam name="Product_ID" default="0">
<cfparam name="Form.receiver_email" default="">
<cfparam name="Form.item_name" default="">
<cfparam name="Form.item_number" default="">
<cfparam name="Form.quantity" default="">
<cfparam name="Form.invoice" default="">
<cfparam name="Form.custom" default="">
<cfparam name="Form.payment_status" default="">
<cfparam name="Form.pending_reason" default="">
<cfparam name="Form.payment_date" default="">
<cfparam name="Form.payment_gross" default="">
<cfparam name="Form.payment_fee" default="">
<cfparam name="Form.txn_id" default="">
<cfparam name="Form.txn_type" default="">
<cfparam name="Form.first_name" default="">
<cfparam name="Form.last_name" default="">
<cfparam name="Form.address_street" default="">
<cfparam name="Form.address_city" default="">
<cfparam name="Form.address_state" default="">
<cfparam name="Form.address_zip" default="">
<cfparam name="Form.address_country" default="">
<cfparam name="Form.address_status" default="">
<cfparam name="Form.payer_email" default="">
<cfparam name="Form.payer_status" default="">
<cfparam name="Form.payment_type" default="">
<cfparam name="Form.notify_version" default="">
<cfparam name="Form.verify_sign" default="">

I have even captured the value of #str#, and it looks great to me as well.

Can someone please tell me on that script from this site, what else I need to do so that PayPal will only hit my cf code the first time. Smile

Any help would be greatly and hugely appreciated.

Thank you guys!!!!!

Website Designed and Developed by Pablo Varando.