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/m1x9nqiuzy5l/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "Ac81FsHN5_ZcmYl8McbmfyD-8HQR9cQskI4t5LfHpX9eibZJDjPyzRhftDCuTNMf9n-fSHJ7vTdlzZSG");
script.setAttribute("data-currency", "THB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNzYxNGE3Mzg5MDE3NDU2ZWNkN2EzN2ExMTE3OTYzNDU0MDNiYjA5ZDU0MmI0MDhiMTY2MGU0ZDBiNDAzOGIwMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTY6MTk6NDAuNzA0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU94eHhXS2hobzhGWTVIYlUyd3JSTGlvSHZpaWpOUzBaYTRudEVZcGtsdFVCbWo5bkJtUV9LT3lGUXU1X3NqN1c2QjFmNkxMeGFPVXd3WHJEcFB5Y2FKdmR0T1VBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "Ac81FsHN5_ZcmYl8McbmfyD-8HQR9cQskI4t5LfHpX9eibZJDjPyzRhftDCuTNMf9n-fSHJ7vTdlzZSG");
script.setAttribute("data-currency", "THB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNzYxNGE3Mzg5MDE3NDU2ZWNkN2EzN2ExMTE3OTYzNDU0MDNiYjA5ZDU0MmI0MDhiMTY2MGU0ZDBiNDAzOGIwMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTY6MTk6NDAuNzA0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU94eHhXS2hobzhGWTVIYlUyd3JSTGlvSHZpaWpOUzBaYTRudEVZcGtsdFVCbWo5bkJtUV9LT3lGUXU1X3NqN1c2QjFmNkxMeGFPVXd3WHJEcFB5Y2FKdmR0T1VBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66059f1a4d1be', 'card', 'buynow', 'rect', 'black');
});
} else {
renderPayPalButtons('66059f1a4d1be', 'card', 'buynow', 'rect', 'black');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66059f1a4d1be', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('66059f1a4d1be', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66059f1a4d1be', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('66059f1a4d1be', 'paypal', 'buynow', 'rect', 'gold');
}