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/a018wp6dam26/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AdJngWaBd8AohIvCIbVDQrHIvFhjKgQAW3DOWDlRFDwd_5FzrYr_3-aZGQ9G0q315G0ru14suGGxhoC4");
script.setAttribute("data-currency", "THB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjNiYTBjZGMxZDkxMjA4YzRlMjJiM2E5YWQ4YzkxYmNhMmYwMmM2ZTA1MjAzY2JkZGYxZDk5MWViOGU0ZjQ1MnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMDgtMTdUMTU6NTc6MDQuODk5ODc2ODg3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBoZUJIc3RySklMbVBsY2FxaGZoMVVkRFV6SGU2TDFwdWFmR1o4R1VVcVpXa1o1MmxoWEZvUEgxWFdzWWxyc2VCQTEwMi1LZmVOV09xXzFwbmZZM3JnMzVtcGxBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('68a1ff2dede43', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('68a1ff2dede43', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('68a1ff2dede43', 'paypal', 'paypal', 'rect', 'silver');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('68a1ff2dede43', 'paypal', 'paypal', 'rect', 'silver');
});
}