{"id":4028,"date":"2023-08-01T10:35:48","date_gmt":"2023-08-01T10:35:48","guid":{"rendered":"https:\/\/creativeresonance.eu\/?page_id=4028"},"modified":"2023-08-02T12:39:08","modified_gmt":"2023-08-02T12:39:08","slug":"test","status":"publish","type":"page","link":"https:\/\/creativeresonance.eu\/index.php\/test\/","title":{"rendered":"test"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4028\" class=\"elementor elementor-4028\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-46635b1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"46635b1\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-afa8358\" data-id=\"afa8358\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-054ab70 elementor-widget elementor-widget-html\" data-id=\"054ab70\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<html>\n  <head>\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n  <\/head>\n  <body>\n    <!-- Replace \"test\" with your own sandbox Business account app client ID -->\n    <script src=\"https:\/\/www.paypal.com\/sdk\/js?client-id=AWHkw8e0flGfjIQFJpseq_YV97ZyKQXay5Wc5AB_Z3p7di2t0uHwLZCPqV4zdvms9OaqZigkIf0RplVI&currency=EUR\"><\/script>\n    <!-- Set up a container element for the button -->\n    <div id=\"paypal-button-container\"><\/div>\n    <script>\n      paypal.Buttons({\n        \/\/ Order is created on the server and the order id is returned\n        createOrder() {\n          return fetch(\"\/my-server\/create-paypal-order\", {\n            method: \"POST\",\n            headers: {\n              \"Content-Type\": \"application\/json\",\n            },\n            \/\/ use the \"body\" param to optionally pass additional order information\n            \/\/ like product skus and quantities\n            body: JSON.stringify({\n              cart: [\n                {\n                  sku: \"YOUR_PRODUCT_STOCK_KEEPING_UNIT\",\n                  quantity: \"YOUR_PRODUCT_QUANTITY\",\n                },\n              ],\n            }),\n          })\n          .then((response) => response.json())\n          .then((order) => order.id);\n        },\n        \/\/ Finalize the transaction on the server after payer approval\n        onApprove(data) {\n          return fetch(\"\/my-server\/capture-paypal-order\", {\n            method: \"POST\",\n            headers: {\n              \"Content-Type\": \"application\/json\",\n            },\n            body: JSON.stringify({\n              orderID: data.orderID\n            })\n          })\n          .then((response) => response.json())\n          .then((orderData) => {\n            \/\/ Successful capture! For dev\/demo purposes:\n            console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));\n            const transaction = orderData.purchase_units[0].payments.captures[0];\n            alert(`Transaction ${transaction.status}: ${transaction.id}\\n\\nSee console for all available details`);\n            \/\/ When ready to go live, remove the alert and show a success message within this page. For example:\n            \/\/ const element = document.getElementById('paypal-button-container');\n            \/\/ element.innerHTML = '<h3>Thank you for your payment!<\/h3>';\n            \/\/ Or go to another URL:  window.location.href = 'thank_you.html';\n          });\n        }\n      }).render('#paypal-button-container');\n    <\/script>\n  <\/body>\n<\/html>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"postBodyCss":"","postBodyMargin":[],"postBodyPadding":[],"postBodyBackground":{"backgroundType":"classic","gradient":""},"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-4028","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/creativeresonance.eu\/index.php\/wp-json\/wp\/v2\/pages\/4028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creativeresonance.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/creativeresonance.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/creativeresonance.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/creativeresonance.eu\/index.php\/wp-json\/wp\/v2\/comments?post=4028"}],"version-history":[{"count":13,"href":"https:\/\/creativeresonance.eu\/index.php\/wp-json\/wp\/v2\/pages\/4028\/revisions"}],"predecessor-version":[{"id":4084,"href":"https:\/\/creativeresonance.eu\/index.php\/wp-json\/wp\/v2\/pages\/4028\/revisions\/4084"}],"wp:attachment":[{"href":"https:\/\/creativeresonance.eu\/index.php\/wp-json\/wp\/v2\/media?parent=4028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}