{"id":3151,"date":"2022-03-04T18:36:09","date_gmt":"2022-03-04T18:36:09","guid":{"rendered":"http:\/\/legallyprotectyourcraft.com\/?page_id=3151"},"modified":"2022-03-04T18:36:37","modified_gmt":"2022-03-04T18:36:37","slug":"llc-flat","status":"publish","type":"page","link":"https:\/\/legallyprotectyourcraft.com\/en\/llc-flat\/","title":{"rendered":"LLC &#8211; Flat"},"content":{"rendered":"<div class=\"fw-page-builder-content\">function initPayPalButton() {<br \/>\n paypal.Buttons({<br \/>\n style: {<br \/>\n shape: &#8216;rect&#8217;,<br \/>\n color: &#8216;gold&#8217;,<br \/>\n layout: &#8216;vertical&#8217;,<br \/>\n label: &#8216;paypal&#8217;,<br \/>\n },<br \/>\n createOrder: function(data, actions) {<br \/>\n return actions.order.create({<br \/>\n purchase_units: [{&#8220;amount&#8221;:{&#8220;currency_code&#8221;:&#8221;USD&#8221;,&#8221;value&#8221;:800}}]<br \/>\n });<br \/>\n },<br \/>\n onApprove: function(data, actions) {<br \/>\n return actions.order.capture().then(function(orderData) {<br \/>\n \/\/ Full available details<br \/>\n console.log(&#8216;Capture result&#8217;, orderData, JSON.stringify(orderData, null, 2));<br \/>\n \/\/ Show a success message within this page, e.g.<br \/>\n const element = document.getElementById(&#8216;paypal-button-container&#8217;);<br \/>\n element.innerHTML = &#8221;;<br \/>\n element.innerHTML = &#8216;<\/p>\n<h3>Thank you for your payment!<\/h3>\n<p>&#8216;;<br \/>\n \/\/ Or go to another URL: actions.redirect(&#8216;thank_you.html&#8217;);<br \/>\n });<br \/>\n },<br \/>\n onError: function(err) {<br \/>\n console.log(err);<br \/>\n }<br \/>\n }).render(&#8216;#paypal-button-container&#8217;);<br \/>\n }<br \/>\n initPayPalButton();<\/p>\n<p><!-- c022576650ed0bdcb8eec715bb09b155 --><\/div>","protected":false},"excerpt":{"rendered":"<p>function initPayPalButton() { paypal.Buttons({ style: { shape: &#8216;rect&#8217;, color: &#8216;gold&#8217;, layout: &#8216;vertical&#8217;, label: &#8216;paypal&#8217;, }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{&#8220;amount&#8221;:{&#8220;currency_code&#8221;:&#8221;USD&#8221;,&#8221;value&#8221;:800}}] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(orderData) { \/\/ Full available details console.log(&#8216;Capture result&#8217;, orderData, JSON.stringify(orderData, null, 2)); \/\/ Show a success message within this page, e.g. const element = document.getElementById(&#8216;paypal-button-container&#8217;); [&hellip;]<\/p>","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"visual-builder-template.php","meta":{"footnotes":""},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/legallyprotectyourcraft.com\/en\/wp-json\/wp\/v2\/pages\/3151"}],"collection":[{"href":"https:\/\/legallyprotectyourcraft.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/legallyprotectyourcraft.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/legallyprotectyourcraft.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/legallyprotectyourcraft.com\/en\/wp-json\/wp\/v2\/comments?post=3151"}],"version-history":[{"count":4,"href":"https:\/\/legallyprotectyourcraft.com\/en\/wp-json\/wp\/v2\/pages\/3151\/revisions"}],"predecessor-version":[{"id":3155,"href":"https:\/\/legallyprotectyourcraft.com\/en\/wp-json\/wp\/v2\/pages\/3151\/revisions\/3155"}],"wp:attachment":[{"href":"https:\/\/legallyprotectyourcraft.com\/en\/wp-json\/wp\/v2\/media?parent=3151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}