if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn02.plentymarkets.com/0mx738cqevf1/plugin/10/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AdKh3U55XBrlYet93ChJs6Oakgb2f34jG-yP4XWJab45dRC-rxnl_0uJYv35vta9nk-tqXL2KDFs8K3k");
script.setAttribute("data-currency", "THB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNzMyNTliM2Y5OTQ3YWY4NDRjZTQ4OTBjZjg5OTY4ZDBlNTdhYjU4YzRkNTI0NmU5ZGNiYzY4Mzg5NTk4MzY3OHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMDMtMTdUMTg6MjY6NTEuMzM2NDMyODc5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU0xdTM5dnNRaW9pVjRLMDVlVVB1X0gxT0Z6SjdnLXcyMm0yR2VtRjNNUUlpV2ZlZWE4c0x1Z2wwazZMOGdzd2h3Z0kxeEwxM3hYY2I5SFZndmx1VEQzOFJ5RnVRIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AdKh3U55XBrlYet93ChJs6Oakgb2f34jG-yP4XWJab45dRC-rxnl_0uJYv35vta9nk-tqXL2KDFs8K3k");
script.setAttribute("data-currency", "THB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNzMyNTliM2Y5OTQ3YWY4NDRjZTQ4OTBjZjg5OTY4ZDBlNTdhYjU4YzRkNTI0NmU5ZGNiYzY4Mzg5NTk4MzY3OHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMDMtMTdUMTg6MjY6NTEuMzM2NDMyODc5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU0xdTM5dnNRaW9pVjRLMDVlVVB1X0gxT0Z6SjdnLXcyMm0yR2VtRjNNUUlpV2ZlZWE4c0x1Z2wwazZMOGdzd2h3Z0kxeEwxM3hYY2I5SFZndmx1VEQzOFJ5RnVRIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('67d86d1d5b9e1', 'paylater', 'paypal', 'pill', 'black');
});
} else {
renderPayPalButtons('67d86d1d5b9e1', 'paylater', 'paypal', 'pill', 'black');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('67d86d1d5b9e1', 'paypal', 'buynow', 'pill', 'black');
});
} else {
renderPayPalButtons('67d86d1d5b9e1', 'paypal', 'buynow', 'pill', 'black');
}