{"id":455,"date":"2024-10-19T00:00:41","date_gmt":"2024-10-18T17:00:41","guid":{"rendered":"https:\/\/payment.tftwadmin.online\/?page_id=455"},"modified":"2024-10-19T00:24:33","modified_gmt":"2024-10-18T17:24:33","slug":"checkout-3","status":"publish","type":"page","link":"https:\/\/payment.tftwadmin.online\/index.php\/checkout-3\/","title":{"rendered":"Checkout"},"content":{"rendered":"\n<!-- This loads the Collect Checkout JS file. Make sure to use your Checkout key. -->\n<script src=\"https:\/\/secure.networkmerchants.com\/token\/CollectCheckout.js\"\n        data-checkout-key=\"checkout_public_fG7RMXWPNx83Xwf3EFs7uW67WNr5sJ5M\"><\/script>\n\n<!-- This is the element on your page that we\u2019re using to trigger Collect Checkout. -->\n<button id=\"checkout_button\">Checkout Now<\/button>\n\n<!--\n    You must run CollectCheckout.redirectToCheckout to send the customer to your cart.\n    This is using a click on a specific div, but you can make this anything you like.\n    All configuration happens in an object passed into redirectToCheckout.\n-->\n<script>\ndocument.getElementById('checkout_button').addEventListener('click', function (e) {\n    CollectCheckout.redirectToCheckout({\n        lineItems: [{\n            sku: \"0001\",\n            quantity: 1\n        }],\n        type: \"sale\",\n        collectShippingInfo: true,\n        customerVault: {\n            addCustomer: true\n        },\n        successUrl: \"https:\/\/example.com\/receipt\/?transid={TRANSACTION_ID}\",\n        cancelUrl: \"https:\/\/example.com\/\",\n        receipt: {\n            showReceipt: true,\n            redirectToSuccessUrl: true\n        }\n    }).then((error) => {\n        console.log(error);\n    });\n});\n<\/script>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">payButton<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Checkout Now<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/payment.tftwadmin.online\/index.php\/wp-json\/wp\/v2\/pages\/455"}],"collection":[{"href":"https:\/\/payment.tftwadmin.online\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/payment.tftwadmin.online\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/payment.tftwadmin.online\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/payment.tftwadmin.online\/index.php\/wp-json\/wp\/v2\/comments?post=455"}],"version-history":[{"count":8,"href":"https:\/\/payment.tftwadmin.online\/index.php\/wp-json\/wp\/v2\/pages\/455\/revisions"}],"predecessor-version":[{"id":464,"href":"https:\/\/payment.tftwadmin.online\/index.php\/wp-json\/wp\/v2\/pages\/455\/revisions\/464"}],"wp:attachment":[{"href":"https:\/\/payment.tftwadmin.online\/index.php\/wp-json\/wp\/v2\/media?parent=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}