Re: [WebDNA] PayPal IPN - solved
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103338
interpreted = N
texte = [!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3DReference: https://www.paypal.com/cgi-bin/webscr?cmd=3Dp/xcl/rec/ipn-intr=o-outsideENABLE IPN IN YOUR PAYPAL ACCOUNT1) Log Into your PayPal acct.2) Go to "Profile", and under "Selling Preferences" click "Instant Paymen=t Notification"3) Click "Edit Settings" button4) Enter your "Notification URL" (doesn't need to be https) where your IP=N code will live5) Choose "IPN messages - Receive IPN messages (Enabled)" and Save.=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D[/!][!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3DRECEIVING IPN DATA FROM PAYPAL1) When a payment is made to your PayPal account your IPN Notification UR=L page expects to receive=20a string very similar to this:mc_gross=3D19.95&protection_eligibility=3DEligible&address_status=3Dconfi=rmed&payer_id=3DLPLWNMTBWMFAY&tax=3D0.00&address_street=3D1+Main+St&payme=nt_date=3D20%3A12%3A59+Jan+13%2C+2009+PST&payment_status=3DCompleted&char=set=3Dwindows-1252&address_zip=3D95131&first_name=3DTest&mc_fee=3D0.88&ad=dress_country_code=3DUS&address_name=3DTest+User¬ify_version=3D2.6&cus=tom=3D&payer_status=3Dverified&address_country=3DUnited+States&address_ci=ty=3DSan+Jose&quantity=3D1&verify_sign=3DAtkOfCXbDm2hu0ZELryHFjY-Vb7PAUvS=6nMXgysbElEn9v-1XcmSoGtf&payer_email=3Dgpmac_1231902590_per%40paypal.com&=txn_id=3D61E67681CH3238416&payment_type=3Dinstant&last_name=3DUser&addres=s_state=3DCA&receiver_email=3Dgpmac_1231902686_biz%40paypal.com&payment_f=ee=3D0.88&receiver_id=3DS8XGHLYDW9T3S&txn_type=3Dexpress_checkout&item_na=me=3D&mc_currency=3DUSD&item_number=3D&residence_country=3DUS&test_ipn=3D=1&handling_amount=3D0.00&transaction_subject=3D&payment_gross=3D19.95&shi=pping=3D0.002) You must echo this string back to paypal along with an additional name=/value pair=20"cmd=3D_notify-validate"3) You can either save this string directly to a .db for later or break o=ut the vars via=20[formvariables], whichever works best for you.=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D[/!][text]content=3D[!][/!][formvariables][name]=3D[url][value][/url]&[/formvariables]cmd=3D_not=ify-validate[!][/!][/text][text]response=3D[!][/!][TCPconnect host=3Dwww.paypal.com&port=3D443&ssl=3DT][!][/!][TCPsend skipheader=3DT]POST /cgi-bin/webscr HTTP/1.0[unURL]%0D%0A[/u=nURL][!][/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[unURL=]%0D%0A[/unURL][!][/!]Content-Type: application/x-www-form-urlencoded[unURL]%0D%0A[/unURL][=!][/!]Content-Length: [countChars][content][/countChars][unURL]%0D%0A[/unUR=L][!][/!][unURL]%0D%0A[/unURL][!][/!][content][unURL]%0D%0A[/unURL][!][/!][/TCPSend][!][/!][/TCPconnect][/text][!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3DYour IPN Notification URL will receive a [response] from PayPal of simply= VERIFIED or INVALID.Process your data accordingly.To prevent fraud, Paypal suggests that you1) Check the "payment_status" is "Completed"2) Check that "txn_id" has not been previously processed3) Check that "receiver_email" is your Primary PayPal email4) Check that "payment_amount"/"payment_currency" are correct=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D[/!]
Associated Messages, from the most recent to the oldest:
[!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3DReference: https://www.paypal.com/cgi-bin/webscr?cmd=3Dp/xcl/rec/ipn-intr=o-outsideENABLE IPN IN YOUR PAYPAL ACCOUNT1) Log Into your PayPal acct.2) Go to "Profile", and under "Selling Preferences" click "Instant Paymen=t Notification"3) Click "Edit Settings" button4) Enter your "Notification URL" (doesn't need to be https) where your IP=N code will live5) Choose "IPN messages - Receive IPN messages (Enabled)" and Save.=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D[/!]
[!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3DRECEIVING IPN DATA FROM PAYPAL1) When a payment is made to your PayPal account your IPN Notification UR=L page expects to receive=20a string very similar to this:mc_gross=3D19.95&protection_eligibility=3DEligible&address_status=3Dconfi=rmed&payer_id=3DLPLWNMTBWMFAY&tax=3D0.00&address_street=3D1+Main+St&payme=nt_date=3D20%3A12%3A59+Jan+13%2C+2009+PST&payment_status=3DCompleted&char=set=3Dwindows-1252&address_zip=3D95131&first_name=3DTest&mc_fee=3D0.88&ad=dress_country_code=3DUS&address_name=3DTest+User¬ify_version=3D2.6&cus=tom=3D&payer_status=3Dverified&address_country=3DUnited+States&address_ci=ty=3DSan+Jose&quantity=3D1&verify_sign=3DAtkOfCXbDm2hu0ZELryHFjY-Vb7PAUvS=6nMXgysbElEn9v-1XcmSoGtf&payer_email=3Dgpmac_1231902590_per%40paypal.com&=txn_id=3D61E67681CH3238416&payment_type=3Dinstant&last_name=3DUser&addres=s_state=3DCA&receiver_email=3Dgpmac_1231902686_biz%40paypal.com&payment_f=ee=3D0.88&receiver_id=3DS8XGHLYDW9T3S&txn_type=3Dexpress_checkout&item_na=me=3D&mc_currency=3DUSD&item_number=3D&residence_country=3DUS&test_ipn=3D=1&handling_amount=3D0.00&transaction_subject=3D&payment_gross=3D19.95&shi=pping=3D0.002) You must echo this string back to paypal along with an additional name=/value pair=20"cmd=3D_notify-validate"3) You can either save this string directly to a .db for later or break o=ut the vars via=20
[formvariables], whichever works best for you.=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D[/!]
[text]content=3D
[!][/!]
[formvariables][name]=3D
[url][value][/url]&[/formvariables]cmd=3D_not=ify-validate
[!][/!][/text]
[text]response=3D
[!][/!][TCPconnect host=3Dwww.paypal.com&port=3D443&ssl=3DT]
[!][/!][TCPsend skipheader=3DT]POST /cgi-bin/webscr HTTP/1.0
[unurl]%0D%0A[/u=nURL]
[!][/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[unURL=]%0D%0A[/unURL]
[!][/!]Content-Type: application/x-www-form-urlencoded
[unurl]%0D%0A[/unURL][=!][/!]Content-Length:
[countchars][content][/countChars]
[unurl]%0D%0A[/unUR=L]
[!][/!]
[unurl]%0D%0A[/unURL]
[!][/!][content]
[unurl]%0D%0A[/unURL]
[!][/!][/TCPSend]
[!][/!][/TCPconnect][/text]
[!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3DYour IPN Notification URL will receive a [response] from PayPal of simply= VERIFIED or INVALID.Process your data accordingly.To prevent fraud, Paypal suggests that you1) Check the "payment_status" is "Completed"2) Check that "txn_id" has not been previously processed3) Check that "receiver_email" is your Primary PayPal email4) Check that "payment_amount"/"payment_currency" are correct=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D[/!]
"Dan Strong"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
emailer setup (1997)
WebCat2 several catalogs? (1997)
New public beta available (1997)
Locking up with WebCatalog... (1997)
[format xs] freeze (1997)
More news on 5.0 (2003)
SSL, WebSTAR, WebCatalog (1998)
Prices coming up 0.00 (2001)
Location of Browser Info.txt file (1997)
[WebDNA] WebDNA as cgi app (was WebSite Examples) (2008)
Multiple Pulldowns/Gary (1997)
Formulas.db + Users.db (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Repeating Fields (1997)
WC2.0 Memory Requirements (1997)
trouble updating records in database (1998)
Ready to h[url]!!! (1999)
line breaks in sendmail (1998)
Purchase Plugin Missing (1996)
Is [thisurl] http or https? (1998)