{"id":657,"date":"2022-04-20T20:37:08","date_gmt":"2022-04-21T03:37:08","guid":{"rendered":"https:\/\/www.portlanddogobedience.com\/?page_id=657"},"modified":"2022-04-20T21:17:39","modified_gmt":"2022-04-21T04:17:39","slug":"make-a-payment","status":"publish","type":"page","link":"https:\/\/www.portlanddogobedience.com\/?page_id=657","title":{"rendered":"Make a payment"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Pay annual club dues<\/strong><\/h2>\n\n\n\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=sb&#038;enable-funding=venmo&#038;currency=USD\" data-sdk-integration-source=\"button-factory\"><\/script>\n  <script>\n    function initPayPalButton() {\n      paypal.Buttons({\n        style: {\n          shape: 'pill',\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: [{\"description\":\"Pay annual dues\",\"amount\":{\"currency_code\":\"USD\",\"value\":5.5}}]\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\n            \/\/ Show a success message within this page, e.g.\n            const element = document.getElementById('paypal-button-container');\n            element.innerHTML = '';\n            element.innerHTML = '<h3>Thank you for your payment!<\/h3>';\n\n            \/\/ Or go to another URL:  actions.redirect('thank_you.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\n\n\n<h2 class=\"wp-block-heading\"><strong>Make a club donation<\/strong><\/h2>\n\n\n\n<form action=\"https:\/\/www.paypal.com\/donate\" method=\"post\" target=\"_top\">\n<input type=\"hidden\" name=\"hosted_button_id\" value=\"JH5T37AX2YHSQ\" \/>\n<input type=\"image\" src=\"https:\/\/www.paypalobjects.com\/en_US\/i\/btn\/btn_donateCC_LG.gif\" border=\"0\" name=\"submit\" title=\"PayPal - The safer, easier way to pay online!\" alt=\"Donate with PayPal button\" \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"https:\/\/www.paypal.com\/en_US\/i\/scr\/pixel.gif\" width=\"1\" height=\"1\" \/>\n<\/form>\n\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pay annual club dues Make a club donation<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-657","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.portlanddogobedience.com\/index.php?rest_route=\/wp\/v2\/pages\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.portlanddogobedience.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.portlanddogobedience.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.portlanddogobedience.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.portlanddogobedience.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=657"}],"version-history":[{"count":3,"href":"https:\/\/www.portlanddogobedience.com\/index.php?rest_route=\/wp\/v2\/pages\/657\/revisions"}],"predecessor-version":[{"id":660,"href":"https:\/\/www.portlanddogobedience.com\/index.php?rest_route=\/wp\/v2\/pages\/657\/revisions\/660"}],"wp:attachment":[{"href":"https:\/\/www.portlanddogobedience.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}