{"id":40995,"date":"2016-02-11T15:06:45","date_gmt":"2016-02-11T15:06:45","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=40995"},"modified":"2016-02-11T15:06:45","modified_gmt":"2016-02-11T15:06:45","slug":"paypal-auto-billing","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/","title":{"rendered":"Paypal Auto Billing"},"content":{"rendered":"<p>Sometimes, it is required in some system that they want an auto deduction system for commission, in case of multi vendor e-shop. Here is the solution if you are using paypal\u00a0payment gateway.<\/p>\n<p>There are two steps involved to achieve above functionality.<\/p>\n<p>At the very first, you have to ask for an agreement to your vendor, that can be accomplish by below code snippet.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40999\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal01.png\" alt=\"paypal01\" width=\"880\" height=\"694\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal01.png 880w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal01-250x197.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal01-300x237.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal01-768x606.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" loading=\"lazy\" \/><\/p>\n<p>By above code, vendor will be redirected to PayPal\u00a0login and pay page where he\/she has to agree the agreement. After vendor approve the agreement, then it will be redirected to <strong>return url.\u00a0<\/strong>On the return url, below code will be used to generate the\u00a0<strong>Billing Agreement Id\u00a0<\/strong>with the help of token returned by PayPal\u00a0in return url.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41000\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal02.png\" alt=\"paypal02\" width=\"812\" height=\"625\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal02.png 812w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal02-250x192.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal02-300x231.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal02-768x591.png 768w\" sizes=\"(max-width: 812px) 100vw, 812px\" loading=\"lazy\" \/><\/p>\n<p>By above code, merchant will get the billing agreement id, if everything goes fine and id\u00a0has to be saved for further use.<\/p>\n<p>To do the transaction by using billing agreement id, please follow the below code snippet<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41001\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal03.png\" alt=\"paypal03\" width=\"834\" height=\"630\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal03.png 834w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal03-250x189.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal03-300x227.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/paypal03-768x580.png 768w\" sizes=\"(max-width: 834px) 100vw, 834px\" loading=\"lazy\" \/><\/p>\n<p>The merchant can charge a variable amount from vendor account and vendor can cancel this agreement any time by logging into his\/her account.<\/p>\n<p><strong>For live site, don&#8217;t forget to replace the sandbox url with the live site url.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, it is required in some system that they want an auto deduction system for commission, in case of multi vendor e-shop. Here is the solution if you are using paypal\u00a0payment gateway. There are two steps involved to achieve above functionality. At the very first, you have to ask for an agreement to your vendor, <a href=\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":23,"featured_media":40972,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[211,365],"tags":[2716,2715,2073],"class_list":["post-40995","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-marketplace-2","category-paypal","tag-auto-payment","tag-billing-agreemnt","tag-paypal"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Paypal Auto Billing - Webkul Blog<\/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:\/\/webkul.com\/blog\/paypal-auto-billing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Paypal Auto Billing - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Sometimes, it is required in some system that they want an auto deduction system for commission, in case of multi vendor e-shop. Here is the solution if you are using paypal\u00a0payment gateway. There are two steps involved to achieve above functionality. At the very first, you have to ask for an agreement to your vendor, [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-11T15:06:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Avneesh Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Avneesh Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/\"},\"author\":{\"name\":\"Avneesh Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9\"},\"headline\":\"Paypal Auto Billing\",\"datePublished\":\"2016-02-11T15:06:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/\"},\"wordCount\":204,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png\",\"keywords\":[\"auto payment\",\"billing agreemnt\",\"paypal\"],\"articleSection\":[\"Marketplace\",\"paypal\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/\",\"url\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/\",\"name\":\"Paypal Auto Billing - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png\",\"datePublished\":\"2016-02-11T15:06:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Paypal Auto Billing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9\",\"name\":\"Avneesh Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Avneesh Kumar\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/avneesh\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Paypal Auto Billing - Webkul Blog","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:\/\/webkul.com\/blog\/paypal-auto-billing\/","og_locale":"en_US","og_type":"article","og_title":"Paypal Auto Billing - Webkul Blog","og_description":"Sometimes, it is required in some system that they want an auto deduction system for commission, in case of multi vendor e-shop. Here is the solution if you are using paypal\u00a0payment gateway. There are two steps involved to achieve above functionality. At the very first, you have to ask for an agreement to your vendor, [...]","og_url":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-02-11T15:06:45+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png","type":"image\/png"}],"author":"Avneesh Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Avneesh Kumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/"},"author":{"name":"Avneesh Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9"},"headline":"Paypal Auto Billing","datePublished":"2016-02-11T15:06:45+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/"},"wordCount":204,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png","keywords":["auto payment","billing agreemnt","paypal"],"articleSection":["Marketplace","paypal"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/paypal-auto-billing\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/","url":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/","name":"Paypal Auto Billing - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png","datePublished":"2016-02-11T15:06:45+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/paypal-auto-billing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/paypal-auto-billing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Paypal Auto Billing"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9","name":"Avneesh Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Avneesh Kumar"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/avneesh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/40995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=40995"}],"version-history":[{"count":1,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/40995\/revisions"}],"predecessor-version":[{"id":41003,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/40995\/revisions\/41003"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/40972"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=40995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=40995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=40995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}