{"id":1362,"date":"2024-10-15T13:14:05","date_gmt":"2024-10-15T11:14:05","guid":{"rendered":"https:\/\/env-0241328.jcloud.ik-server.com\/?page_id=1362"},"modified":"2024-10-23T20:58:09","modified_gmt":"2024-10-23T18:58:09","slug":"bestellung-2-3","status":"publish","type":"page","link":"https:\/\/stellplatz.ch\/index.php\/fr\/bestellung-2-3\/","title":{"rendered":"Vous r\u00e9glerez l&#8217;achat du guide avec PayPal."},"content":{"rendered":"\n<div id=\"smart-button-container\">\n      <div style=\"text-align: center;\">\n        <div id=\"paypal-button-container\"><\/div>\n      <\/div>\n    <\/div>\n  <script src=\"https:\/\/www.paypal.com\/sdk\/js?client-id=AX13ovIiV2vk6-zlC3JnaQTE5IKNCg43Vacdrf4MQevfgjgklelDxjHMetFeQkTuozX3b2r23A4c1M3Q&amp;disable-funding=credit,card,venmo&amp;currency=CHF\" data-sdk-integration-source=\"button-factory\"><\/script>\n  <script>\n    function initPayPalButton() {\n      paypal.Buttons({\n        style: {\n          shape: 'rect',\n          color: 'gold',\n          layout: 'vertical',\n          label: 'paypal',\n          \n        },\n\n        createOrder: function(data, actions) {\n          return actions.order.create({\n            purchase_units: [{\"amount\":{\"currency_code\":\"CHF\",\"value\":8}}]\n          });\n        },\n\n        onApprove: function(data, actions) {\n          return actions.order.capture().then(function(orderData) {\n            \n            \/\/ Full available details\n            console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));\n            actions.redirect('https:\/\/stellplatz.ch\/Daten\/index.html');\n            \n          });\n        },\n\n        onError: function(err) {\n          console.log(err);\n        }\n      }).render('#paypal-button-container');\n    }\n    initPayPalButton();\n  <\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":true,"footnotes":""},"class_list":["post-1362","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/PaCltQ-lY","_links":{"self":[{"href":"https:\/\/stellplatz.ch\/index.php\/wp-json\/wp\/v2\/pages\/1362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stellplatz.ch\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/stellplatz.ch\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/stellplatz.ch\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/stellplatz.ch\/index.php\/wp-json\/wp\/v2\/comments?post=1362"}],"version-history":[{"count":4,"href":"https:\/\/stellplatz.ch\/index.php\/wp-json\/wp\/v2\/pages\/1362\/revisions"}],"predecessor-version":[{"id":1453,"href":"https:\/\/stellplatz.ch\/index.php\/wp-json\/wp\/v2\/pages\/1362\/revisions\/1453"}],"wp:attachment":[{"href":"https:\/\/stellplatz.ch\/index.php\/wp-json\/wp\/v2\/media?parent=1362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}