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/t4l5octwuee2/plugin/46/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AcyTspgYPRL7TaHNM3Idm__b5Tsui6mnpg66XWBGsFZ7mRVo4NBHxtVu758fDnRNdFzoo6GG_QwN6xRv");
script.setAttribute("data-currency", "TWD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMzhhY2Q3MDAyNGE3NGE2ZjA4MDJjYTU2ZDRmOGNhYzg4OWI2N2YyZjZmZDU0OWI0NzRmN2RmZTQ4MDRlZmEyZnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMjA6MjQ6MTkuODk0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9ZRjJ1eW5mWTduRWljb1JvNktpbVZpWDhWODdBX21Udy1HSGJCenQycTAxWnVWaFFqM3E0bU9qSS14YmVlbl9jSm9lRjlQbHdnVU50Q1RjczV4YUh4b1BUcjB3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6605d1f37dff9', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6605d1f37dff9', 'paypal', 'buynow', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6605d1f37dff9', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6605d1f37dff9', 'paylater', 'paypal', 'rect', 'gold');
});
}