{"id":67720,"date":"2021-07-27T09:32:26","date_gmt":"2021-07-27T13:32:26","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/automating-digital-delivery-with-paypal-payment-processing-system-classic-asp\/"},"modified":"2021-07-27T09:32:26","modified_gmt":"2021-07-27T13:32:26","slug":"automating-digital-delivery-with-paypal-payment-processing-system-classic-asp","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=67720","title":{"rendered":"Automating Digital Delivery with Paypal Payment Processing System #Classic ASP"},"content":{"rendered":"<p>Brought from: http:\/\/salearningschool.com\/displayArticle.php?table=Articles&amp;articleID=1283&amp;title=Automating%20Digital%20Delivery%20with%20Paypal%20Payment%20Processing%20System<\/p>\n<p>the time-period: 2007 &#8211; 2008<\/p>\n<p>\nIn the past, I implemented an automatic notification and digital product delivery system with Paypal Payment Processing System. The concept is, when a person buys products from your web-sites, he gets his products automatically as email attachments after you have confirmed the transaction. The most important part is &#8211; collecting payment data and buyer information from Paypal to ensure that the transaction is legitimate and the payment really went through. You can use either Paypal IPN or Paypal PDT to collect these data and email products on successful verification. Either will\/should work. For me, PDT worked alright. Check the following web-pages\/documents. Also, from PDT section, check the sample examples. For me the sample example with ASP\/VBSCript worked alright.\n<\/p>\n<ul>\n<li> <a href=\"https:\/\/www.paypalobjects.com\/WEBSCR-560-20090302-1\/en_US\/CA\/pdf\/PP_OrderManagement_IntegrationGuide.pdf\" target=\"new\" rel=\"noopener\">Paypal Order Management Guide<\/a><\/li>\n<li> <a href=\"http:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=p\/xcl\/rec\/ipn-code-outside\" target=\"new\" rel=\"noopener\">IPN Code Sample<\/a>\n<\/li>\n<li> From the first link, also check PDT code sample<\/li>\n<\/ul>\n<p>\nIn the past, I have worked with MiraServ, and Moneris payment processing systems. You can find short-notes and video tutorials in this web-site on them. Just search through our web-sites.\n<\/p>\n<p> A relevant code in ASP is provided below. The code collects the payer&#8217;s information just after someone has paid. The code also checks, if the payment was successful, if so prints some details about the transaction and the payer<\/p>\n<p>The flow of actions (in terms of code and operations)<\/p>\n<ul>\n<li> Create a paypal button, provide return URL for successful payment and canceled payment.<\/li>\n<li>In your successful payment page, write down the following code<\/li>\n<li>Your paypal account needs to be configured properly to make the following code work &#8211; consult the documents as listed above<\/li>\n<li> You need to use the authentication code from your paypal account to\/in the following code<\/li>\n<li> The follwing code section\n<pre>\r\nauthToken = \"ytrtyrtr45654hgfhgfjhfsfdsfdsfds;ljlk\" 'auth code for your paypal account\r\n\ttxToken = Request.Querystring(\"tx\") 'as sent from paypal \r\n\r\nquery = \"cmd=_notify-synch&amp;tx=\" &amp; txToken &amp; \"&amp;at=\" &amp; authToken\r\n\r\n\tset objectHttp = Server.CreateObject(\"Microsoft.XMLHTTP\")\r\n\tobjectHttp.open \"POST\", \"http:\/\/www.paypal.com\/cgi-bin\/webscr\", false\r\n\tobjectHttp.setRequestHeader \"Content-type\", \"application\/x-www-form-urlencoded\"\r\n\tobjectHttp.Send query\r\n<\/pre>\n<p>submits to the paypal to grab transaction details. (remember, after payment the control is required to come to this page, then based on authentication code and tx-id, the code grabs detail transaction information)\n<\/li>\n<\/ul>\n<pre style=\"padding:10px;font-size:13px\">\r\n&lt;% @LANGUAGE=\"VBScript\" %&gt;\r\n&lt;%\t\r\n\tDim query\r\n\tDim objectHttp\r\n\tDim strQuerystring\r\n\tDim i, result\r\n\tDim firstName, lastName, itemName, curGross, mcCurrency, email\r\n\tDim authToken, txToken\r\n\tDim strParts, intParts, aParts\r\n\tDim strResults, strKey, strValue\r\n\t\r\n\r\n\tauthToken = \"ytrtyrtr45654hgfhgfjhfsfdsfdsfds;ljlk\" 'auth code for your paypal account\r\n\ttxToken = Request.Querystring(\"tx\") 'as sent from paypal \r\n\r\n\tquery = \"cmd=_notify-synch&amp;tx=\" &amp; txToken &amp; \"&amp;at=\" &amp; authToken\r\n\r\n\tset objectHttp = Server.CreateObject(\"Microsoft.XMLHTTP\")\r\n\tobjectHttp.open \"POST\", \"http:\/\/www.paypal.com\/cgi-bin\/webscr\", false\r\n\tobjectHttp.setRequestHeader \"Content-type\", \"application\/x-www-form-urlencoded\"\r\n\tobjectHttp.Send query\r\n\r\n\tstrQuerystring = objectHttp.responseText\r\n\r\n\tIf Mid(strQuerystring,1,7) = \"SUCCESS\" Then\r\n\t\tstrQuerystring = Mid(strQuerystring,9)\r\n\t\tstrParts = Split(strQuerystring, vbLf)\r\n\t\tintParts = UBound(strParts) - 1\r\n\t\tReDim strResults(intParts, 1)\r\n\t\tFor i = 0 To intParts\r\n\t\t\taParts = Split(strParts(i), \"=\")\r\n\t\t\tstrKey = aParts(0)\r\n\t\t\tstrValue = aParts(1)\r\n\t\t\tstrResults(i, 0) = strKey\r\n\t\t\tstrResults(i, 1) = strValue\r\n\r\n\t\t\tSelect Case strKey\r\n\t\t\t\tCase \"first_name\"\r\n\t\t\t\t\tfirstName = strValue\r\n\t\t\t\tCase \"last_name\"\r\n\t\t\t\t\tlastName = strValue\r\n\t\t\t\tCase \"item_name\"\r\n\t\t\t\t\titemName = strValue\r\n\t\t\t\tCase \"mc_gross\"\r\n\t\t\t\t\tcurGross = strValue\r\n\t\t\t\tCase \"mc_currency\"\r\n\t\t\t\t\tmcCurrency = strValue\r\n\t\t\t\tCase \"payer_email\"\r\n\t\t\t\t\temail = strValue\r\n\t\t\t\t\temail = Replace(email, \"%40\", \"@\")\r\n\t\t\tEnd Select\r\n\t\tNext\r\n\r\n\t\temail = Replace(email, \"%40\", \"@\")\r\n\t\tResponse.Write(\"<table width=\"60%\"><tbody><tr><td><br \/> <p>We have received your order<\/p>\")\r\n\t\tResponse.Write(\"<b>Details<\/b><br \/>\")\r\n\t\tResponse.Write(\"<ul><li>Name: \" &amp; firstName &amp; \" \" &amp; lastName &amp; \"<\/li>\")\r\n\t\tResponse.Write(\"<li>Description: \" &amp; itemName &amp; \"<\/li>\")\r\n\t\tResponse.Write(\"<li>Amount: \" &amp; mcCurrency &amp; \" \" &amp; curGross &amp; \"<\/li>\")\r\n\t\tResponse.Write(\"<li>Email: \" &amp; email &amp; \"<\/li><\/ul>\")\r\n\t\tResponse.Write(\"<br \/><a href=\"http:\/\/justetc.com\">Home Page<\/a><\/td><\/tr><\/tbody><\/table>\")\r\n\r\n\t\t'send email to customer\r\n\t\tDim myObject\r\n\t\tSet myObject = Server.CreateObject(\"CDO.Message\")\r\n\r\n\t\t'set the To and From \r\n\t\tmyObject.To = email\r\n\t\tmyObject.From = \"webmaster@justetc.net\"\r\n\t\tmyObject.Bcc = \"sayed@justetc.net\"\r\n\t\t\r\n\t\tmyObject.Subject = \"Please download your product\"\r\n\t\tmyObject.TextBody = \"Dear Customer, Thank you for purchasing from us. Download from the link belownn\"\r\n\t\tmyObject.AddAttachment \"http:\/\/www.justetc.net\/test.pdf\"\r\n\t\tmyObject.Send()\r\n\r\n\t\t'Set objects to \"nothing\" to free up the computer memory \r\n\t\tSet myObject = nothing\r\n\r\n\t\t'send email to the seller\r\n\t\tSet myObject = Server.CreateObject(\"CDO.Message\")\r\n\r\n\t\t'set the To and From properties\r\n\t\tmyObject.To = \"webmaster@justetc.net\"\r\n\t\tmyObject.From = \"webmaster@justetc.net\"\r\n\t\tmyObject.Bcc = \"sayed@justetc.net\"\r\n\t\t\r\n\r\n\t\tmyObject.Subject = \"You got one customer: Product emailed to the customer\"\r\n\t\tmyObject.TextBody = \"Customer email address: \" &amp; email\t\t\r\n\t\tmyObject.Send()\r\n\r\n\t\t'Set your objects to \"nothing\" to free up the computer memory\r\n\t\tSet myObject = nothing\r\n\r\n\r\n\t\tElse\r\n\t\t'log \r\n\t\tResponse.Write(\"ERROR\")\r\n\tEnd If\r\n\r\n%&gt;\r\n<\/pre>\n<p> From: http:\/\/sitestree.com\/?p=3716<br \/> Categories:Classic ASP<br \/>Tags:<br \/> Post Data:2016-07-16 10:05:06<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brought from: http:\/\/salearningschool.com\/displayArticle.php?table=Articles&amp;articleID=1283&amp;title=Automating%20Digital%20Delivery%20with%20Paypal%20Payment%20Processing%20System the time-period: 2007 &#8211; 2008 In the past, I implemented an automatic notification and digital product delivery system with Paypal Payment Processing System. The concept is, when a person buys products from your web-sites, he gets his products automatically as email attachments after you have confirmed the transaction. The most important part &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=67720\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-67720","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":69995,"url":"http:\/\/bangla.sitestree.com\/?p=69995","url_meta":{"origin":67720,"position":0},"title":"Automating Digital Delivery with Paypal Payment Processing System #17","author":"Author-Check- Article-or-Video","date":"August 23, 2021","format":false,"excerpt":"Just recently, I have implemented an automatic notification and digital product delivery system with Paypal Payment Processing System. The concept is, when a person buys products from your web-sites, he gets his products automatically as email attachments after you have confirmed the transaction. The most important part is - collecting\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":69880,"url":"http:\/\/bangla.sitestree.com\/?p=69880","url_meta":{"origin":67720,"position":1},"title":"Automating Digital Delivery with Paypal Payment Processing System #19","author":"Author-Check- Article-or-Video","date":"August 21, 2021","format":false,"excerpt":"In the past, I implemented an automatic notification and digital product delivery system with Paypal Payment Processing System. The concept is, when a person buys products from your web-sites, he gets his products automatically as email attachments after you have confirmed the transaction. The most important part is - collecting\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":21791,"url":"http:\/\/bangla.sitestree.com\/?p=21791","url_meta":{"origin":67720,"position":2},"title":"E-money #User Submitted","author":"Author-Check- Article-or-Video","date":"March 6, 2021","format":false,"excerpt":"E-money is the virtual money that takes transaction via the electric medium on the network system. The world is emerging the E-commerce is the system of buying and selling the goods, products, services, media, information etc and payment via the emoney system like mastercard, visa card, pioneer, paypal, skrill, and\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16584,"url":"http:\/\/bangla.sitestree.com\/?p=16584","url_meta":{"origin":67720,"position":3},"title":"Social and Cultural Awareness for IT jobs","author":"Sayed","date":"January 1, 2020","format":false,"excerpt":"Automating Inequalityhttps:\/\/virginia-eubanks.com\/books\/ Weapons of Math Destruction https:\/\/weaponsofmathdestructionbook.com\/ ******************* Sayed Ahmed BSc. Eng. in Comp. Sc. & Eng. (BUET) MSc. in Comp. Sc. (U of Manitoba, Canada) MSc. in Data Science and Analytics (Ryerson University, Canada) Linkedin: https:\/\/ca.linkedin.com\/in\/sayedjustetc Blog: http:\/\/Bangla.SaLearningSchool.com, http:\/\/SitesTree.com Online and Offline Training: http:\/\/Training.SitesTree.com FB Group on Learning\/Teaching: https:\/\/www.facebook.com\/banglasalearningschool\u2026","rel":"","context":"In &quot;AI ML DS RL DL NN NLP Data Mining Optimization&quot;","block_context":{"text":"AI ML DS RL DL NN NLP Data Mining Optimization","link":"http:\/\/bangla.sitestree.com\/?cat=1910"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23697,"url":"http:\/\/bangla.sitestree.com\/?p=23697","url_meta":{"origin":67720,"position":4},"title":"magento paypal integration #Root","author":"Author-Check- Article-or-Video","date":"April 2, 2021","format":false,"excerpt":"From: http:\/\/sitestree.com\/?p=2854 Categories:RootTags: Post Data:2015-10-26 08:19:52 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali: http:\/\/Bangla.SaLearningSchool.com http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) Shop Online: https:\/\/www.ShopForSoul.com\/ Medium: https:\/\/medium.com\/@SayedAhmedCanada","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":69993,"url":"http:\/\/bangla.sitestree.com\/?p=69993","url_meta":{"origin":67720,"position":5},"title":"Is there a payment processing system like this? #17","author":"Author-Check- Article-or-Video","date":"August 23, 2021","format":false,"excerpt":"I am not sure that any bank offers such systems\/services...Just wondering ..how useful will it be if you do not have to go to the bank to deposit your cheques? I think, it will be a very useful software\/service for many especially for many business owners. How the software\/service will\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67720"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67720\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67720"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}