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

Used Script To Test IPN.cfm Options
7079
#1 Posted : Thursday, May 04, 2006 2:24:33 PM
Rank: Starting Member

Groups: Registered

Joined: 5/3/2006
Posts: 3
Location: ,
I used the following page that tested my IPN script: http://www.eliteweaver.co.uk/testing/ipntest.php The analisys was that my script is not posting back to paypal. I am using scripts taht have been used by others that claim to work. I don't know what I am doing wrong. Can anyone help? I have been spinning my wheels on this for several days now and reading all kinds of different solutions online that are not working for me. Here is the code for my button: --------------------------------------------------------------------- <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="add" value="1"> <input type="hidden" name="rm" value="2"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="393@7079.net"> <input type="hidden" name="item_name" value="<cfoutput>#getProductDetails.CatStyle#</cfoutput>"> <input type="hidden" name="item_number" value="<cfoutput>#getColor.DetailID#</cfoutput>"> <input type="hidden" name="amount" value="<cfoutput>#DollarFormat(getProductDetails.Price)#</cfoutput>"> <input type="hidden" name="page_style" value="PayPal"> <input type="hidden" name="no_shipping" value="2"> <input type="hidden" name="return" value="http://www99.7079.net"> <input type="hidden" name="notify_url" value="http://www99.7079.net/Cart/ipn.cfm"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="bn" value="PP-ShopCartBF"> </form> --------------------------------------------------------------------- IPN.cfm --------------------------------------------------------------------- <!--- read post from PayPal system and add 'cmd' ---> <CFSET str="cmd=_notify-validate"> <CFLOOP INDEX="TheField" list="#Form.FieldNames#"> <CFSET str = str & "#LCase(TheField)#=#URLEncodedFormat(Evaluate(TheField))#"> </CFLOOP> <CFIF IsDefined("FORM.payment_date")> <CFSET str = str & "&payment_date=#URLEncodedFormat(Form.payment_date)#"> </CFIF> <CFIF IsDefined("FORM.subscr_date")> <CFSET str = str & "&subscr_date=#URLEncodedFormat(Form.subscr_date)#"> </CFIF> <!--- Next we will post that information back to PayPal to verify that this is a VALID order and that the values we have are correct. ---> <!--- post back to PayPal system to validate ---> <CFHTTP URL="www.paypal.com/cgi-bin/webscr?#str#" METHOD="GET" RESOLVEURL="false"> <!--- check notification validation ---> <CFIF #CFHTTP.FileContent# is "VERIFIED"> <!--- check that payment_status=Completed ---> <cfif FORM.payment_status eq "Completed"> <!--- check that receiver_email is your email address ---> <cfif #FORM.RECEIVER_EMAIL# eq "email@email.net"> <!--- process payment ---> <cftry> <cfquery name="qInsertOrder" datasource="myDatasource"> INSERT INTO Orders( receiver_email, payer_email, item_number, quantity, payment_status, payment_date, payment_gross, payment_fee, txn_id, txn_type, payment_type, payer_id ) VALUES( '#FORM.RECEIVER_EMAIL#', '#FORM.PAYER_EMAIL#', '#FORM.ITEM_NUMBER#', '#FORM.QUANTITY#', '#FORM.PAYMENT_STATUS#', #CreateODBCDateTime(Now())#, '#FORM.PAYMENT_GROSS#', '#FORM.PAYMENT_FEE#', '#FORM.TXN_ID#', '#FORM.TXN_TYPE#', '#FORM.PAYMENT_TYPE#', '#FORM.PAYER_ID#' ) </cfquery> <cfcatch> <!--- let's log all errors ---> <cffile action="append" file="c:\\inept.........\paypal_log.txt" output="Error order info"> </cfcatch> </cftry> </cfif> </cfif> </cfif> --------------------------------------------------------------------- I really need some help and if anyone can tell me why my code is not posting back to paypal, that would be greatly appreciated. Thanks,
Sponsor  
 
7079
#2 Posted : Thursday, May 11, 2006 12:07:10 PM
Rank: Starting Member

Groups: Registered

Joined: 5/3/2006
Posts: 3
Location: ,
What's the point of this site if no one actually responds to the posts? I thought the developers of this site are doing this to help people with resolving code issues and communicating with paypal. Can anyone please help?
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 1.9.3 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.155 seconds.