{"id":168,"date":"2010-04-24T02:30:51","date_gmt":"2010-04-24T02:30:51","guid":{"rendered":"http:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/?p=168"},"modified":"2020-04-10T23:17:21","modified_gmt":"2020-04-10T23:17:21","slug":"plain-paypal-button-and-affiliate-plugin-integration","status":"publish","type":"post","link":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168","title":{"rendered":"Direct\/Plain\/Hosted PayPal Button and Affiliate Plugin Integration"},"content":{"rendered":"<p>There are two ways you can integrate a plain PayPal button with the WP Affiliate Platform plugin. Choose one of the following options:<\/p>\n<p><strong><span style=\"color: #800000;\">Some users tend to get confused because they try to follow everything that is on this page. Please only follow option 1 or option 2 (do not follow both of them at the same time)<\/span><\/strong><\/p>\n<h2>Option 1) Integrating PayPal Button Using PayPal&#8217;s PDT Feature (Easier Option)<\/h2>\n<p><strong>This integration is best suited for one time payments (&#8220;add to cart&#8221; and &#8220;buy now&#8221; type transactions)<\/strong><\/p>\n<p>This option takes advantage of the PayPal&#8217;s PDT (Payment Data Transfer) feature to receive the payment confirmation on the &#8220;Thank You&#8221; page and award the commission after a payment.<\/p>\n<p><iframe loading=\"lazy\" title=\"WordPress Affiliate Plugin and PayPal Button Integration\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/T1WaBDofcXo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p><iframe loading=\"lazy\" title=\"Testing the WordPrss Affiliate Plugin and PayPal Button Integration\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/m0UX5vKXeZU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p><strong>Step 1<\/strong>: Create a &#8220;Thank You&#8221; page in your WordPress (This is the page where you will send your customers thanking them for the purchase after they make a payment). Keep note of the URL of this page.<\/p>\n<p><strong>Step 2<\/strong>: Create your PayPal button as you normally do but make sure to use the URL of the &#8220;Thank You&#8221; page created in step 1 as the &#8220;Return URL&#8221; for this button. This page does not have to be the &#8220;Thank You&#8221; page&#8230; it can actually be the URL of any WordPress post or page on your site.<\/p>\n<p><strong>Step 3<\/strong>: Go to the settings menu of the <a href=\"http:\/\/www.tipsandtricks-hq.com\/?p=1474\" target=\"_blank\" rel=\"noopener noreferrer\">Affiliate Platform<\/a> plugin and find the &#8220;3rd Party Integration&#8221; section (see screenshot below). Check the &#8220;<strong>Enable 3rd Party Cart Integration<\/strong>&#8221; and fill out the &#8220;<strong>PayPal PDT Identity Token<\/strong>&#8221; field.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-372 size-full\" title=\"3rd-party-affiliate-integration-settings-sc\" src=\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc.gif\" alt=\"3rd Party Integration Settings Screenshot\" width=\"500\" height=\"152\" srcset=\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc.gif 500w, https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc-300x91.gif 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>Read <a href=\"http:\/\/www.tipsandtricks-hq.com\/forum\/topic\/how-do-i-setup-paypal-pdt-and-get-my-paypal-pdt-token-id\">this post<\/a> to learn how to get your PayPal PDT token.<\/p>\n<p>All done! Now, when your customers make a payment using the button your created in step 2 the affiliate platform plugin will award commission to the correct affiliate when this customer lands on the &#8220;Thank You&#8221; page after making a confirmed payment.<\/p>\n<p>==============<strong> Integration Steps for Option 1 Ends Here<\/strong> ===============<\/p>\n<h2>Option 2) Integrating PayPal Button Using PayPal&#8217;s IPN Feature (More suited for developers)<\/h2>\n<ul>\n<li><strong>This option is best suited for advanced users as it involves customizing and using some HTML code.<\/strong><\/li>\n<li><strong>This integration works for all types of transactions (one time payments and subscription\/recurring\u00a0payments)<\/strong><\/li>\n<\/ul>\n<p>The Affiliate Platform plugin comes with a basic IPN handling script. So in your PayPal button you just need to tell it to send the IPN notification to this plugin. This way the plugin will be notified by PayPal when someone pays you using that PayPal button. The affiliate plugin comes with a shortcode that makes this process very easy.<\/p>\n<p>Edit\u00a0the post or page (where you have your PayPal button), then insert the following shortcode inside the PayPal button code.<\/p>\n<p>[wp_aff_paypal_fields]<\/p>\n<p>When the button is rendered on the front-end of your site, the above shortcode will add the necessary variables to it.<\/p>\n<h3>Example PayPal Button Code<\/h3>\n<p>Your PayPal button code should look similar to one of the following examples (when you use the above mentioned shortcode):<\/p>\n<ul>\n<li><a href=\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/affiliate-plain-paypal-button-php.txt\" target=\"_blank\" rel=\"noopener noreferrer\">Example Button Code for PHP\u00a0(Plain button)<\/a><\/li>\n<li><a href=\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/06\/affiliate-hosted-paypal-button-php.txt\" target=\"_blank\" rel=\"noopener noreferrer\">Example Button Code for PHP (PayPal hosted button)<\/a><\/li>\n<\/ul>\n<p>If you are placing the PayPal button inside a WordPress post\/page via the WP Editor then make sure to enter the button code in the <strong>Text View<\/strong> (HTML code won&#8217;t work if you enter it in the visual view of the editor).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are two ways you can integrate a plain PayPal button with the WP Affiliate Platform plugin. Choose one of the following options: Some users tend to get confused because they try to follow everything that is on this page. Please only follow option 1 or option 2 (do not follow both of them at [&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":[12],"tags":[11,19],"class_list":{"0":"post-168","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-3rd-party-cart-integration","7":"tag-3rd-party-integration","8":"tag-wp-affiliate","9":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Direct\/Plain\/Hosted PayPal Button and Affiliate Plugin Integration - WordPress Affiliate Platform<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb\"},\"headline\":\"Direct\/Plain\/Hosted PayPal Button and Affiliate Plugin Integration\",\"datePublished\":\"2010-04-24T02:30:51+00:00\",\"dateModified\":\"2020-04-10T23:17:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168\"},\"wordCount\":560,\"commentCount\":20,\"image\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc.gif\",\"keywords\":[\"3rd party Integration\",\"WP Affiliate\"],\"articleSection\":[\"3rd Party Cart Integration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168\",\"url\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168\",\"name\":\"Direct\/Plain\/Hosted PayPal Button and Affiliate Plugin Integration - WordPress Affiliate Platform\",\"isPartOf\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc.gif\",\"datePublished\":\"2010-04-24T02:30:51+00:00\",\"dateModified\":\"2020-04-10T23:17:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#primaryimage\",\"url\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc.gif\",\"contentUrl\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc.gif\",\"width\":\"500\",\"height\":\"152\",\"caption\":\"3rd Party Integration Settings Screenshot\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#website\",\"url\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/\",\"name\":\"WordPress Affiliate Platform\",\"description\":\"Take control of your affiliates and drive more sales\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Direct\/Plain\/Hosted PayPal Button and Affiliate Plugin Integration - WordPress Affiliate Platform","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#article","isPartOf":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168"},"author":{"name":"admin","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb"},"headline":"Direct\/Plain\/Hosted PayPal Button and Affiliate Plugin Integration","datePublished":"2010-04-24T02:30:51+00:00","dateModified":"2020-04-10T23:17:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168"},"wordCount":560,"commentCount":20,"image":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#primaryimage"},"thumbnailUrl":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc.gif","keywords":["3rd party Integration","WP Affiliate"],"articleSection":["3rd Party Cart Integration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168","url":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168","name":"Direct\/Plain\/Hosted PayPal Button and Affiliate Plugin Integration - WordPress Affiliate Platform","isPartOf":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#primaryimage"},"image":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#primaryimage"},"thumbnailUrl":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc.gif","datePublished":"2010-04-24T02:30:51+00:00","dateModified":"2020-04-10T23:17:21+00:00","author":{"@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/plain-paypal-button-and-affiliate-plugin-integration-168#primaryimage","url":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc.gif","contentUrl":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-content\/uploads\/2010\/04\/3rd-party-affiliate-integration-settings-sc.gif","width":"500","height":"152","caption":"3rd Party Integration Settings Screenshot"},{"@type":"WebSite","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#website","url":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/","name":"WordPress Affiliate Platform","description":"Take control of your affiliates and drive more sales","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/#\/schema\/person\/b3a690506213824832751de546a340fb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wordpress-affiliate\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}