{"id":6,"date":"2020-10-05T08:28:46","date_gmt":"2020-10-05T08:28:46","guid":{"rendered":"http:\/\/payment.hkcollege.edu.hk\/index.php\/products\/"},"modified":"2020-12-03T14:31:14","modified_gmt":"2020-12-03T14:31:14","slug":"products","status":"publish","type":"page","link":"https:\/\/payment.hkcollege.edu.hk\/index.php\/products\/","title":{"rendered":"HK College"},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>\u4e92\u52d5\u5f15\u85a6\u71df\u92b7\u5b78 (\u5168\u8cbb\uff09<\/strong><\/td><\/tr><tr><td>\n<!-- Load Stripe.js on your website. -->\n<script src=\"https:\/\/js.stripe.com\/v3\"><\/script>\n\n<!-- Create a button that your customers click to complete their purchase. Customize the styling to suit your branding. -->\n<button style=\"background-color:#6772E5;color:#FFF;padding:8px 12px;border:0;border-radius:4px;font-size:1em\" id=\"checkout-button-price_1Ht5SKBSgZCYbAyNQdAnjiSA\" role=\"link\" type=\"button\">\n  Checkout\n<\/button>\n\n<div id=\"error-message\"><\/div>\n\n<script>\n(function() {\n  var stripe = Stripe('pk_live_51HoNDWBSgZCYbAyNOrlgLQ1Imnakapaq0nvz6cM5ixz7J3MPZzQwGWNsO85l7xN9z0AirdOexShNvAYr0iuH7NBq00oPYG1Z2a');\n\n  var checkoutButton = document.getElementById('checkout-button-price_1Ht5SKBSgZCYbAyNQdAnjiSA');\n  checkoutButton.addEventListener('click', function () {\n    \/\/ When the customer clicks on the button, redirect\n    \/\/ them to Checkout.\n    stripe.redirectToCheckout({\n      lineItems: [{price: 'price_1Ht5SKBSgZCYbAyNQdAnjiSA', quantity: 1}],\n      mode: 'payment',\n      \/\/ Do not rely on the redirect to the successUrl for fulfilling\n      \/\/ purchases, customers may not always reach the success_url after\n      \/\/ a successful payment.\n      \/\/ Instead use one of the strategies described in\n      \/\/ https:\/\/stripe.com\/docs\/payments\/checkout\/fulfill-orders\n      successUrl: window.location.protocol + '\/\/payment.hkcollege.edu.hk\/index.php\/payment-confirmation\/',\n      cancelUrl: window.location.protocol + '\/\/payment.hkcollege.edu.hk\/index.php\/payment-failed\/',\n    })\n    .then(function (result) {\n      if (result.error) {\n        \/\/ If `redirectToCheckout` fails due to a browser or network\n        \/\/ error, display the localized error message to your customer.\n        var displayError = document.getElementById('error-message');\n        displayError.textContent = result.error.message;\n      }\n    });\n  });\n})();\n<\/script>\n<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>\u4e92\u52d5\u5f15\u85a6\u71df\u92b7\u5b78 (\u7b2c\u4e00\u671f\uff09<\/strong><\/td><\/tr><tr><td>\n<!-- Load Stripe.js on your website. -->\n<script src=\"https:\/\/js.stripe.com\/v3\"><\/script>\n\n<!-- Create a button that your customers click to complete their purchase. Customize the styling to suit your branding. -->\n<button style=\"background-color:#6772E5;color:#FFF;padding:8px 12px;border:0;border-radius:4px;font-size:1em\" id=\"checkout-button-price_1HsqPkBSgZCYbAyNQHS6FjQV\" role=\"link\" type=\"button\">\n  Checkout\n<\/button>\n\n<div id=\"error-message\"><\/div>\n\n<script>\n(function() {\n  var stripe = Stripe('pk_live_51HoNDWBSgZCYbAyNOrlgLQ1Imnakapaq0nvz6cM5ixz7J3MPZzQwGWNsO85l7xN9z0AirdOexShNvAYr0iuH7NBq00oPYG1Z2a');\n\n  var checkoutButton = document.getElementById('checkout-button-price_1HsqPkBSgZCYbAyNQHS6FjQV');\n  checkoutButton.addEventListener('click', function () {\n    \/\/ When the customer clicks on the button, redirect\n    \/\/ them to Checkout.\n    stripe.redirectToCheckout({\n      lineItems: [{price: 'price_1HsqPkBSgZCYbAyNQHS6FjQV', quantity: 1}],\n      mode: 'payment',\n      \/\/ Do not rely on the redirect to the successUrl for fulfilling\n      \/\/ purchases, customers may not always reach the success_url after\n      \/\/ a successful payment.\n      \/\/ Instead use one of the strategies described in\n      \/\/ https:\/\/stripe.com\/docs\/payments\/checkout\/fulfill-orders\n      successUrl: window.location.protocol + '\/\/payment.hkcollege.edu.hk\/index.php\/payment-confirmation\/',\n      cancelUrl: window.location.protocol + '\/\/payment.hkcollege.edu.hk\/index.php\/payment-failed\/',\n    })\n    .then(function (result) {\n      if (result.error) {\n        \/\/ If `redirectToCheckout` fails due to a browser or network\n        \/\/ error, display the localized error message to your customer.\n        var displayError = document.getElementById('error-message');\n        displayError.textContent = result.error.message;\n      }\n    });\n  });\n})();\n<\/script> \n<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>\u4e92\u52d5\u5f15\u85a6\u71df\u92b7\u5b78 (\u6700\u5f8c\u4e00\u671f\uff09<\/strong><\/td><\/tr><tr><td>\n<!-- Load Stripe.js on your website. -->\n<script src=\"https:\/\/js.stripe.com\/v3\"><\/script>\n\n<!-- Create a button that your customers click to complete their purchase. Customize the styling to suit your branding. -->\n<button style=\"background-color:#6772E5;color:#FFF;padding:8px 12px;border:0;border-radius:4px;font-size:1em\" id=\"checkout-button-price_1HsqQUBSgZCYbAyNPPy6iXbU\" role=\"link\" type=\"button\">\n  Checkout\n<\/button>\n\n<div id=\"error-message\"><\/div>\n\n<script>\n(function() {\n  var stripe = Stripe('pk_live_51HoNDWBSgZCYbAyNOrlgLQ1Imnakapaq0nvz6cM5ixz7J3MPZzQwGWNsO85l7xN9z0AirdOexShNvAYr0iuH7NBq00oPYG1Z2a');\n\n  var checkoutButton = document.getElementById('checkout-button-price_1HsqQUBSgZCYbAyNPPy6iXbU');\n  checkoutButton.addEventListener('click', function () {\n    \/\/ When the customer clicks on the button, redirect\n    \/\/ them to Checkout.\n    stripe.redirectToCheckout({\n      lineItems: [{price: 'price_1HsqQUBSgZCYbAyNPPy6iXbU', quantity: 1}],\n      mode: 'payment',\n      \/\/ Do not rely on the redirect to the successUrl for fulfilling\n      \/\/ purchases, customers may not always reach the success_url after\n      \/\/ a successful payment.\n      \/\/ Instead use one of the strategies described in\n      \/\/ https:\/\/stripe.com\/docs\/payments\/checkout\/fulfill-orders\n      successUrl: window.location.protocol + '\/\/payment.hkcollege.edu.hk\/index.php\/payment-confirmation\/',\n      cancelUrl: window.location.protocol + '\/\/payment.hkcollege.edu.hk\/index.php\/payment-failed\/',\n    })\n    .then(function (result) {\n      if (result.error) {\n        \/\/ If `redirectToCheckout` fails due to a browser or network\n        \/\/ error, display the localized error message to your customer.\n        var displayError = document.getElementById('error-message');\n        displayError.textContent = result.error.message;\n      }\n    });\n  });\n})();\n<\/script>\n<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e92\u52d5\u5f15\u85a6\u71df\u92b7\u5b78 (\u5168\u8cbb\uff09 Checkout \u4e92\u52d5\u5f15\u85a6\u71df\u92b7\u5b78 (\u7b2c\u4e00\u671f\uff09 Checkout \u4e92\u52d5\u5f15\u85a6\u71df\u92b7\u5b78 (\u6700\u5f8c\u4e00\u671f\uff09 Checkout<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/payment.hkcollege.edu.hk\/index.php\/wp-json\/wp\/v2\/pages\/6"}],"collection":[{"href":"https:\/\/payment.hkcollege.edu.hk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/payment.hkcollege.edu.hk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/payment.hkcollege.edu.hk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/payment.hkcollege.edu.hk\/index.php\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":28,"href":"https:\/\/payment.hkcollege.edu.hk\/index.php\/wp-json\/wp\/v2\/pages\/6\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/payment.hkcollege.edu.hk\/index.php\/wp-json\/wp\/v2\/pages\/6\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/payment.hkcollege.edu.hk\/index.php\/wp-json\/wp\/v2\/media?parent=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}