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/crx1rmvvvlv8/plugin/14/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AcLcwGNr_TyRvxsW_HM8eTFKCh1A3QbK9h_s3_vfzlOwLSq8T_7OSjUV2Rs1QZ_BvGgu8R5aRTGISVYa");
script.setAttribute("data-currency", "THB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiM2U5NzE5OTc3NTg0YjhhNTY0NTlmM2YwYTBlODhkMTAwYWZmNjI1NTU0YWU0MTIwMmRkNzA4MjVhMTI4OGViYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMDlUMTg6Mzg6NDMuNDgxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU94dktfR2hOZ2VibkZoQjUtR2QyWC1QRVpTRnZKN0VxbVBvSmNjYU9mU2FyMUdGZ1VRQVB6ZllwdmFtbzE1UDlERVhBa1pWNURqOVBicXJZelRqWUJpZENTVzVRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AcLcwGNr_TyRvxsW_HM8eTFKCh1A3QbK9h_s3_vfzlOwLSq8T_7OSjUV2Rs1QZ_BvGgu8R5aRTGISVYa");
script.setAttribute("data-currency", "THB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiM2U5NzE5OTc3NTg0YjhhNTY0NTlmM2YwYTBlODhkMTAwYWZmNjI1NTU0YWU0MTIwMmRkNzA4MjVhMTI4OGViYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMDlUMTg6Mzg6NDMuNDgxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU94dktfR2hOZ2VibkZoQjUtR2QyWC1QRVpTRnZKN0VxbVBvSmNjYU9mU2FyMUdGZ1VRQVB6ZllwdmFtbzE1UDlERVhBa1pWNURqOVBicXJZelRqWUJpZENTVzVRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('663d1ae173e3f', 'paylater', 'paypal', 'rect', 'white');
});
} else {
renderPayPalButtons('663d1ae173e3f', 'paylater', 'paypal', 'rect', 'white');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('663d1ae173e3f', 'paypal', 'buynow', 'rect', 'white');
});
} else {
renderPayPalButtons('663d1ae173e3f', 'paypal', 'buynow', 'rect', 'white');
}