if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn03.plentymarkets.com/b6frc44j1vgk/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AQNtkpTDcz3zvtgF1rm3qlHA5axDDZofRK59-xR8Cr_Jbd1KHf6ZjhYSAEFciF1lfCyQS5uvV7G6OJi4");
script.setAttribute("data-currency", "TWD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZWQ4Yjg4OTVkZjAxNWUzYjZiZTE5MGM0NzljYWE5ZDExNTY2YzZmODM1MGIzMjczZTk4YzcxNzhjYzMxZjFlMXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjBUMDM6MDE6MzkuNjQ2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU05Z0ViTHVKY3MxcEE1SzVscEN2aTlmc29WS0hJN3p3TU1pX2ZlWlFid0NYRWxNMHVHMll6aVo2cVRPN1B5T2szMEpWZXVuSEhwMWkxMWQ0djh0THFKWGEyWU13In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65fa5a8de62da', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65fa5a8de62da', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65fa5a8de62da', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65fa5a8de62da', 'paypal', 'buynow', 'rect', 'gold');
});
}