{"id":3348,"date":"2011-03-15T00:11:18","date_gmt":"2011-03-14T18:41:18","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=3348"},"modified":"2024-01-02T18:37:06","modified_gmt":"2024-01-02T13:07:06","slug":"paypal-integration-auto-redirecting-to-application-after-processing-payment","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/paypal-integration-auto-redirecting-to-application-after-processing-payment\/","title":{"rendered":"Paypal Integration : Auto redirecting to application after processing payment"},"content":{"rendered":"<p>Hi,<\/p>\n<p>In my recent grails project, i needed to return back to the application after processing payment at the paypal website. I searched a lot about it. Then i found the solution to do so and thought it worth sharing.<\/p>\n<p>\nHere are the steps i followed:-<\/p>\n<p><strong>1. The Paypal button:- <\/strong><br \/>\nThis is the code for putting the paypal button in any web-page<\/p>\n<pre>\r\n<form method=\"post\" action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\">\r\n    \r\n    \r\n    \r\n    \r\n    \r\n    \r\n    \r\n    \r\n    \r\n    \r\n    \r\n    <img decoding=\"async\" loading=\"lazy\" border=\"0\" alt=\"\" width=\"1\" height=\"1\" src=\"\/blog\/wp-ttn-blog\/uploads\/2011\/03\/pixel.gif\">\r\n    \r\n<\/form>\r\n<\/pre>\n<p>Here:<br \/>\n The email of merchant&#8217;s account or the seller account, the account to which payment is to be made and the email by which the account is registered is given in the hidden field &#8220;business&#8221;.<\/p>\n<pre>\r\n \r\n<\/pre>\n<p>The URL to which we want application to return after processing payment is provided in the hidden field with the name &#8220;return&#8221; i.e. <\/p>\n<pre><\/pre>\n<p>This completes the application side implementation for paypal.<br \/>\n<br \/>\n<strong>2. Paypal Account Configuration<\/strong><br \/>\nNow we have to configure the Merchant&#8217;s account to Auto-redirect to the provided URL after processing the payment.<\/p>\n<p>   Steps to configure account are:-<br \/>\n   <br \/>\n   1. Log in to Paypal Account<br \/>\n   2. Click the Profile Link in sub-menu of  My Account.<br \/>\n   <img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2011\/03\/Profile-Summary-PayPal_1300126550721.png\" alt=\"\" width=\"665\" height=\"85\" class=\"alignnone size-full wp-image-3353\" \/><br \/>\n<br \/>\n  3. Under &#8220;Selling Preferences&#8221; click &#8216;Website Payment Preferences&#8217; link.<br \/>\n<a href=\"\/blog\/wp-ttn-blog\/uploads\/2011\/03\/Profile-Summary-PayPal_1300126570607.png\"><img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2011\/03\/Profile-Summary-PayPal_1300126570607.png\" alt=\"\" width=\"500\" height=\"230\" class=\"alignnone size-full\" \/><\/p>\n<p>\n   4. Select the Auto-Return radio button to enable the auto return feature. <\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2011\/03\/Website-Payment-Preferences-PayPal_1300126988327.png\"><img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2011\/03\/Website-Payment-Preferences-PayPal_1300126988327.png\" alt=\"\" width=\"500\" height=\"280\" class=\"alignnone size-full\" \/><\/p>\n<p>\nThis enables the auto-redirect feature in the paypal account.<br \/>\n<br \/>\nThis worked for me.<br \/>\nHope it helps.<br \/>\n<br \/>\nVishal Sahu<br \/>\nvishal@intelligrape.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, In my recent grails project, i needed to return back to the application after processing payment at the paypal website. I searched a lot about it. Then i found the solution to do so and thought it worth sharing. Here are the steps i followed:- 1. The Paypal button:- This is the code for [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":5},"categories":[7],"tags":[712,711,710,709],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/3348"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=3348"}],"version-history":[{"count":2,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/3348\/revisions"}],"predecessor-version":[{"id":59924,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/3348\/revisions\/59924"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=3348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=3348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=3348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}