{"id":69880,"date":"2021-08-21T15:30:42","date_gmt":"2021-08-21T19:30:42","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/automating-digital-delivery-with-paypal-payment-processing-system-19\/"},"modified":"2021-08-21T15:30:42","modified_gmt":"2021-08-21T19:30:42","slug":"automating-digital-delivery-with-paypal-payment-processing-system-19","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=69880","title":{"rendered":"Automating Digital Delivery with Paypal Payment Processing System #19"},"content":{"rendered":"<p>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 &#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.<\/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><\/li>\n<li> From the first link, also check PDT code sample<\/li>\n<\/ul>\n<p>In 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.<\/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>authToken = \"ytrtyrtr45654hgfhgfjhfsfdsfdsfds;ljlk\" 'auth code for your paypal account txToken = Request.Querystring(\"tx\") 'as sent from paypal query = \"cmd=_notify-synch&amp;tx=\" &amp; txToken &amp; \"&amp;at=\" &amp; authToken set objectHttp = Server.CreateObject(\"Microsoft.XMLHTTP\")   objectHttp.open \"POST\", \"http:\/\/www.paypal.com\/cgi-bin\/webscr\", false objectHttp.setRequestHeader \"Content-type\", \"application\/x-www-form-urlencoded\" objectHttp.Send query<\/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)<\/li>\n<li><\/li>\n<\/ul>\n<pre style='padding:10px;font-size:13px'>&lt; %      Dim query   Dim objectHttp  Dim strQuerystring  Dim i, result   Dim firstName, lastName, itemName, curGross, mcCurrency, email  Dim authToken, txToken  Dim strParts, intParts, aParts  Dim strResults, strKey, strValue        authToken = &quot;ytrtyrtr45654hgfhgfjhfsfdsfdsfds;ljlk&quot; &#039;auth code for your paypal account   txToken = Request.Querystring(&quot;tx&quot;) &#039;as sent from paypal     query = &quot;cmd=_notify-synch&amp;tx=&quot; &amp; txToken &amp; &quot;&amp;at=&quot; &amp; authToken  set objectHttp = Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;) objectHttp.open &quot;POST&quot;, &quot;http:\/\/www.paypal.com\/cgi-bin\/webscr&quot;, false    objectHttp.setRequestHeader &quot;Content-type&quot;, &quot;application\/x-www-form-urlencoded&quot; objectHttp.Send query   strQuerystring = objectHttp.responseText    If Mid(strQuerystring,1,7) = &quot;SUCCESS&quot; Then       strQuerystring = Mid(strQuerystring,9)      strParts = Split(strQuerystring, vbLf)      intParts = UBound(strParts) - 1     ReDim strResults(intParts, 1)       For i = 0 To intParts           aParts = Split(strParts(i), &quot;=&quot;)          strKey = aParts(0)          strValue = aParts(1)            strResults(i, 0) = strKey           strResults(i, 1) = strValue         Select Case strKey              Case &quot;first_name&quot;                 firstName = strValue                Case &quot;last_name&quot;                  lastName = strValue             Case &quot;item_name&quot;                  itemName = strValue             Case &quot;mc_gross&quot;                   curGross = strValue             Case &quot;mc_currency&quot;                    mcCurrency = strValue               Case &quot;payer_email&quot;                    email = strValue                    email = Replace(email, &quot;%40&quot;, &quot;@&quot;)          End Select      Next        email = Replace(email, &quot;%40&quot;, &quot;@&quot;)      Response.Write(&quot;<table width='60%'><tr><td><br \/> We have received your order\")     Response.Write(\"<b>Details<\/b><br \/>\")      Response.Write(\"<ul><li>Name: \" &amp; firstName &amp; \" \" &amp; lastName &amp; \"<\/li>\")     Response.Write(\"<li>Description: \" &amp; itemName &amp; \"<\/li>\")        Response.Write(\"<li>Amount: \" &amp; mcCurrency &amp; \" \" &amp; curGross &amp; \"<\/li>\")      Response.Write(\"<li>Email: \" &amp; email &amp; \"<\/li><\/ul>\")        Response.Write(\"<br \/><a href='http:\/\/justetc.com'>Home Page<\/a><\/td><\/tr>\")        'send email to customer     Dim myObject        Set myObject = Server.CreateObject(\"CDO.Message\")       'set the To and From        myObject.To = email     myObject.From = \"webmaster@justetc.net\"     myObject.Bcc = \"sayed@justetc.net\"              myObject.Subject = \"Please download your product\"       myObject.TextBody = \"Dear Customer, Thank you for purchasing from us. Download from the link belownn\"       myObject.AddAttachment \"http:\/\/www.justetc.net\/test.pdf\"     myObject.Send()     'Set objects to \"nothing\" to free up the computer memory        Set myObject = nothing      'send email to the seller       Set myObject = Server.CreateObject(\"CDO.Message\")       'set the To and From properties     myObject.To = \"webmaster@justetc.net\"       myObject.From = \"webmaster@justetc.net\"     myObject.Bcc = \"sayed@justetc.net\"              myObject.Subject = \"You got one customer: Product emailed to the customer\"      myObject.TextBody = \"Customer email address: \" &amp; email              myObject.Send()     'Set your objects to \"nothing\" to free up the computer memory       Set myObject = nothing      Else        'log        Response.Write(\"ERROR\") End If%&gt;<\/table><\/pre>\n<p>From: http:\/\/sitestree.com\/?p=5281<br \/> Categories:19<br \/>Tags:<br \/> Post Data:2006-10-25 18:41:19<\/p>\n<pre><code>    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\"&gt;https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    (Big Data, Cloud, Security, Machine Learning): Courses: &lt;a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"&gt; http:\/\/Training.SitesTree.com&lt;\/a&gt; \n    In Bengali: &lt;a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\"&gt;http:\/\/Bangla.SaLearningSchool.com&lt;\/a&gt;\n    &lt;a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\"&gt;http:\/\/SitesTree.com&lt;\/a&gt;\n    8112223 Canada Inc.\/JustEtc: &lt;a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\"&gt;http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) &lt;\/a&gt;\n    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com'&gt; https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    Medium: &lt;a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"&gt; https:\/\/medium.com\/@SayedAhmedCanada &lt;\/a&gt;\n<\/code><\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8211; collecting payment data and buyer information &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=69880\">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_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1917],"tags":[],"class_list":["post-69880","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":69880,"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":67720,"url":"http:\/\/bangla.sitestree.com\/?p=67720","url_meta":{"origin":69880,"position":1},"title":"Automating Digital Delivery with Paypal Payment Processing System #Classic ASP","author":"Author-Check- Article-or-Video","date":"July 27, 2021","format":false,"excerpt":"Brought from: http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=1283&title=Automating%20Digital%20Delivery%20with%20Paypal%20Payment%20Processing%20System the time-period: 2007 - 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\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":69880,"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":23697,"url":"http:\/\/bangla.sitestree.com\/?p=23697","url_meta":{"origin":69880,"position":3},"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":69997,"url":"http:\/\/bangla.sitestree.com\/?p=69997","url_meta":{"origin":69880,"position":4},"title":"How to Integrate Paymentech Payment Processing Solution on Your eCommerce Shop #17","author":"Author-Check- Article-or-Video","date":"August 23, 2021","format":false,"excerpt":"How to Integrate Paymentech Payment Processing Solution on Your eCommerce Shop Sign up with paymentech. Get approval from them. Get an account with them Determine, how your software\/application will verify with their API: Username\/Password (preferred) or IP address Get the Username\/Password for them for verification with their API. You will\u2026","rel":"","context":"In &quot;C# - Misc&quot;","block_context":{"text":"C# - Misc","link":"http:\/\/bangla.sitestree.com\/?cat=1973"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":69340,"url":"http:\/\/bangla.sitestree.com\/?p=69340","url_meta":{"origin":69880,"position":5},"title":"Required Components for Internet Income #28","author":"Author-Check- Article-or-Video","date":"August 18, 2021","format":false,"excerpt":"Do you want to earn through your website? Well you want to start your own home business. In this category, we will provide you detailed information to meet your needs. We will provide information how you can earn through your website. We will also explore the opportunities for online based\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\/69880","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=69880"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69880\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69880"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}