{"id":27466,"date":"2023-05-10T07:23:34","date_gmt":"2023-05-10T12:23:34","guid":{"rendered":"https:\/\/baelks2673.org\/?page_id=27466"},"modified":"2023-05-10T07:23:36","modified_gmt":"2023-05-10T12:23:36","slug":"dues-payment","status":"publish","type":"page","link":"https:\/\/baelks2673.org\/?page_id=27466","title":{"rendered":"Dues Payment"},"content":{"rendered":"[et_pb_section fb_built=&#8221;1&#8243; theme_builder_area=&#8221;post_content&#8221; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221;][et_pb_row _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; type=&#8221;4_4&#8243; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]\n<p>Welcome to the Dues Payments page.\u00a0 From here you can select which type of dues you would like to pay.\u00a0 Payments are secure and none of your information is retained.\u00a0 There is a convenience fee added into the payment.<\/p>\n[\/et_pb_text][et_pb_text _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; theme_builder_area=&#8221;post_content&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]\n<p>&nbsp;<\/p>\n<p><!-- Add meta tags for mobile and IE --><\/p>\n<p><!-- Set up a container element for the button --><\/p>\n<div id=\"paypal-button-container\"><\/div>\n<p><!-- Include the PayPal JavaScript SDK --><\/p>\n<p><script src=\"https:\/\/www.paypal.com\/sdk\/js?client-id=test&amp;currency=USD\"><\/script><br \/>\n<script>\n        \/\/ Render the PayPal button into #paypal-button-container\n        paypal.Buttons({<\/p>\n<p>            \/\/ Call your server to set up the transaction\n            createOrder: function(data, actions) {\n                return fetch('\/demo\/checkout\/api\/paypal\/order\/create\/', {\n                    method: 'post'\n                }).then(function(res) {\n                    return res.json();\n                }).then(function(orderData) {\n                    return orderData.id;\n                });\n            },<\/p>\n<p>            \/\/ Call your server to finalize the transaction\n            onApprove: function(data, actions) {\n                return fetch('\/demo\/checkout\/api\/paypal\/order\/' + data.orderID + '\/capture\/', {\n                    method: 'post'\n                }).then(function(res) {\n                    return res.json();\n                }).then(function(orderData) {\n                    \/\/ Three cases to handle:\n                    \/\/   (1) Recoverable INSTRUMENT_DECLINED -> call actions.restart()\n                    \/\/   (2) Other non-recoverable errors -> Show a failure message\n                    \/\/   (3) Successful transaction -> Show confirmation or thank you<\/p>\n<p>                    \/\/ This example reads a v2\/checkout\/orders capture response, propagated from the server\n                    \/\/ You could use a different API or structure for your 'orderData'\n                    var errorDetail = Array.isArray(orderData.details) && orderData.details[0];<\/p>\n<p>                    if (errorDetail && errorDetail.issue === 'INSTRUMENT_DECLINED') {\n                        return actions.restart(); \/\/ Recoverable state, per:\n                        \/\/ https:\/\/developer.paypal.com\/docs\/checkout\/integration-features\/funding-failure\/\n                    }<\/p>\n<p>                    if (errorDetail) {\n                        var msg = 'Sorry, your transaction could not be processed.';\n                        if (errorDetail.description) msg += '\\n\\n' + errorDetail.description;\n                        if (orderData.debug_id) msg += ' (' + orderData.debug_id + ')';\n                        return alert(msg); \/\/ Show a failure message (try to avoid alerts in production environments)\n                    }<\/p>\n<p>                    \/\/ Successful capture! For demo purposes:\n                    console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));\n                    var transaction = orderData.purchase_units[0].payments.captures[0];\n                    alert('Transaction '+ transaction.status + ': ' + transaction.id + '\\n\\nSee console for all available details');<\/p>\n<p>                    \/\/ Replace the above to show a success message within this page, e.g.\n                    \/\/ const element = document.getElementById('paypal-button-container');\n                    \/\/ element.innerHTML = '';\n                    \/\/ element.innerHTML = '<\/p>\n<h3>Thank you for your payment!<\/h3>\n<p><p>\n';\n                    \/\/ Or go to another URL:  actions.redirect('thank_you.html');\n                });\n            }<\/p>\n<p>        }).render('#paypal-button-container');\n    <\/script>\n<\/p>\n<p>&nbsp;<\/p>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the Dues Payments page.\u00a0 From here you can select which type of dues you would like to pay.\u00a0 Payments are secure and none of your information is retained.\u00a0 There is a convenience fee added into the payment.&nbsp; &nbsp;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-27466","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/baelks2673.org\/index.php?rest_route=\/wp\/v2\/pages\/27466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/baelks2673.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/baelks2673.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/baelks2673.org\/index.php?rest_route=\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/baelks2673.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27466"}],"version-history":[{"count":2,"href":"https:\/\/baelks2673.org\/index.php?rest_route=\/wp\/v2\/pages\/27466\/revisions"}],"predecessor-version":[{"id":27469,"href":"https:\/\/baelks2673.org\/index.php?rest_route=\/wp\/v2\/pages\/27466\/revisions\/27469"}],"wp:attachment":[{"href":"https:\/\/baelks2673.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}