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

PDN NOT WORKING FOR SUBSCRIPTION PAYMENT Options
vikastailor
#1 Posted : Thursday, August 25, 2005 8:25:46 PM
Rank: Starting Member

Groups: Registered

Joined: 2/8/2005
Posts: 2
Location: ,
Im having major troubles trying to get PDN working! Heres the code that sends the information: <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <input type="hidden" name="cmd" value="_xclick-subscriptions"> <input type="hidden" name="business" value="vikastailor@Hotmail.com"> <input type="hidden" name="item_name" value="Link Exchange Services"> <input type="hidden" name="item_number" value="001"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://www.linkexchanged.com/advertising_confirmation_paypal.cfm"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="bn" value="PP-SubscriptionsBF"> <input type="hidden" name="a3" value="0.01"> <input type="hidden" name="p3" value="1"> <input type="hidden" name="t3" value="M"> <input type="hidden" name="src" value="1"> <input type="hidden" name="sra" value="1"> </form> Heres the code that the user should be redirected to after payment. This code was copied from the Paypal code. <!-- 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(Form[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> <CFIF IsDefined("FORM.auction_closing_date")> <CFSET str = str & "&subscr_date=#URLEncodedFormat(Form.auction_closing_date)#"> </CFIF> <!-- post back to PayPal system to validate --> <CFHTTP URL="https://www.sandbox.paypal.com/cgi-bin/webscr?#str#" METHOD="GET" RESOLVEURL="false"> </CFHTTP> <!-- assign posted variables to local variables --> <CFSET item_name=FORM.item_name> <CFSET payment_status=FORM.payment_status> <CFSET payment_amount=FORM.mc_gross> <CFSET payment_currency=FORM.mc_currency> <CFSET txn_id=FORM.txn_id> <CFSET receiver_email=FORM.receiver_email> <CFSET payer_email=FORM.payer_email> <CFIF IsDefined("FORM.item_number")> <CFSET item_number=FORM.item_number> </CFIF> <!-- check notification validation --> <CFIF #CFHTTP.FileContent# is "VERIFIED"> <!-- check that payment_status=Completed --> <!-- check that txn_id has not been previously processed --> <!-- check that receiver_email is your Primary PayPal email --> <!-- check that payment_amount/payment_currency are correct --> <!-- process payment --> <CFELSEIF #CFHTTP.FileContent# is "INVALID"> <!-- log for investigation --> <CFELSE> <!-- error --> </CFIF> In my profile, i have IPN turned on and the URL is http://www.linkexchanged...confirmation_paypal.cfm. under website preferences, nothing is turned on. ANYONE KNOW WHATS GOING ON! THIS IS DRIVING ME CRAZY!!!!! Vik Tailor
Sponsor  
 
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.145 seconds.