{"id":43,"date":"2010-06-08T13:08:27","date_gmt":"2010-06-08T13:08:27","guid":{"rendered":"http:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/?p=43"},"modified":"2022-02-15T05:24:28","modified_gmt":"2022-02-15T05:24:28","slug":"plain-paypal-button-and-pdf-stamper-integration-guide","status":"publish","type":"post","link":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/plain-paypal-button-and-pdf-stamper-integration-guide-43","title":{"rendered":"PayPal Buy Now Button and PDF Stamper Integration Guide"},"content":{"rendered":"<p>The WP PDF Stamper plugin can be integrated with a plain PayPal Buy Now button so you can send a stamped copy of your eBook that you are selling after the customer makes a purchase.<\/p>\n<p>To use a PayPal Buy Now button with WP PDF Stamper, you need two pieces of information:<\/p>\n<ol>\n<li>The URL of the PDF eBook that you are selling<\/li>\n<li>The URL of the IPN handling script<\/li>\n<\/ol>\n<p>For this integration you simply have to specify the URL of the eBook that you are selling in the &#8220;custom&#8221; field of the button and set the &#8220;notify_url&#8221; value to the IPN (Instant Payment Notification) handling script that comes with the plugin. You can get the value of the IPN handling script URL from the &#8220;Integration Settings&#8221; menu of this plugin. \u00a0This URL should look similar to the following:<\/p>\n<pre>http:\/\/www.your-domain.com\/?pdfs_pp_ipn=process\n<\/pre>\n<p>You need to specify the URL of this IPN handling script in your PayPal button&#8217;s code (you specify this URL in the &#8220;notify_url&#8221; field). For example:<\/p>\n<pre>&lt;input name=\"notify_url\" type=\"hidden\" value=\"http:\/\/www.your-domain.com\/?pdfs_pp_ipn=process\" \/&gt;\n<\/pre>\n<p>This basically tells PayPal to send the payment confirmation notification to this script so the sale can be processed (stamp the eBook and email it to the buyer).<\/p>\n<p>There is one other piece of information that you need to include in the button which is the URL of the PDF eBook. This is the file that the plugin will make a copy of then stamp it with the customer details and send it via email. You can specify the URL of the PDF eBook in the &#8220;custom&#8221; field of the PayPal button. For example:<\/p>\n<pre>&lt;input name=\"custom\" type=\"hidden\" value=\"http:\/\/www.your-domain.com\/wp-content\/uploads\/my-ebook.pdf\" \/&gt;\n<\/pre>\n<h2>Example Button Code<\/h2>\n<p>The following is an example button code that shows how the button code looks<\/p>\n<ul>\n<li><a href=\"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-content\/uploads\/2010\/06\/pdf-stamper-plain-paypal-button.txt\" target=\"_blank\" rel=\"noopener noreferrer\">PayPal Buy Now Button Code Example<\/a><\/li>\n<\/ul>\n<h3>Integrating with a PayPal Hosted Button<\/h3>\n<p>If you are creating a PayPal Hosted Buy Now button from your PayPal account then you simply have to add the necessary information in the advanced variables section of the button. When you create your button on PayPal, from the &#8220;<strong>Merchant Services<\/strong>&#8221; menu, you will be able to specify some advanced variables in &#8220;Step 3&#8221; of the button creation process.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-45 size-full\" title=\"paypal_add_extra_variable\" src=\"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-content\/uploads\/2010\/06\/paypal_add_extra_variable.gif\" alt=\"Option to specify advanced variables\" width=\"444\" height=\"176\" srcset=\"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-content\/uploads\/2010\/06\/paypal_add_extra_variable.gif 444w, https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-content\/uploads\/2010\/06\/paypal_add_extra_variable-300x118.gif 300w\" sizes=\"(max-width: 444px) 100vw, 444px\" \/><\/p>\n<p>Go to the &#8220;<strong>Integration Settings<\/strong>&#8221; menu of this plugin and use the interface to generate the advanced variables code for your button. The following screenshot shows an example of this settings menu<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-211\" title=\"pdf-stamper-paypal-integration-settings\" src=\"http:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-content\/uploads\/2010\/06\/pdf-stamper-paypal-integration-settings.png\" alt=\"pdf-stamper-paypal-integration-settings\" width=\"450\" height=\"174\" srcset=\"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-content\/uploads\/2010\/06\/pdf-stamper-paypal-integration-settings.png 450w, https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-content\/uploads\/2010\/06\/pdf-stamper-paypal-integration-settings-300x116.png 300w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>Enter the URL of the eBook (PDF file) that you are selling then hit the &#8220;<strong>Generate Code<\/strong>&#8221; button and it will generate the code for you. The code will look similar to the following:<\/p>\n<pre>notify_url=http:\/\/www.your-domain.com\/?pdfs_pp_ipn=process\ncustom=http:\/\/www.your-domain-name.com\/wp-content\/uploads\/my-ebook.pdf\n<\/pre>\n<p>Once you have the code ready, check the &#8220;add advanced variables&#8221; checkbox in your PayPal button creation interface then copy and paste the code.<\/p>\n<p>After generating the PayPal button code, you can copy the button code and paste it on the eBook selling page of your site (your landing page).<\/p>\n<p>When someone makes a purchase using this button, the WP PDF Stamper plugin will stamp a copy of the original eBook with the customer details and send it to him via email.<\/p>\n\n\n<h2 class=\"wp-block-heading\">PayPal IPN Feature<\/h2>\n\n\n\n<p>The PayPal IPN feature needs to be enabled in your PayPal account for this to work. Normally, the IPN feature is enabled by default. If you disabled it before then you will need to re-enable that option. <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.youtube.com\/watch?v=eSgQgAjSVys\" target=\"_blank\" rel=\"noreferrer noopener\">This video tutorial<\/a> shows how to check and enable the IPN feature.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The WP PDF Stamper plugin can be integrated with a plain PayPal Buy Now button so you can send a stamped copy of your eBook that you are selling after the customer makes a purchase. To use a PayPal Buy Now button with WP PDF Stamper, you need two pieces of information: The URL of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[9],"tags":[10,27,6],"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/posts\/43"}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":2,"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":451,"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/posts\/43\/revisions\/451"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}