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/h48ph1zqy7tg/plugin/9/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AbFUvHcRSPn3k3vybSrGVn0h61dX7OIscbup1d0f3hcrjuTWBhLD3FrFEM-HZkF9BJsOqRg6qxNmoUiJ");
script.setAttribute("data-currency", "TWD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNGQ2NmNjM2UwMGQ1ZTlmM2IzNTYwNzUyNTJhNDJhYjA3N2IwZGExMTJiMjIzNDYxNzBkYmZlM2RiNDQ0NDZmM3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTQ6MjI6MTguMzU4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBaLVhVeWpRaGFzUG5tTE9ZZWQ3OFZtRDRxRVF4M0lONHZwaFNkZ2I5M25SWjNYR3J6Nng4UmhHSmFlQm1zUzRrYVFVM19KeFdxXzE4ODh4emdDQVpFenZ0SXh3In19");
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", "AbFUvHcRSPn3k3vybSrGVn0h61dX7OIscbup1d0f3hcrjuTWBhLD3FrFEM-HZkF9BJsOqRg6qxNmoUiJ");
script.setAttribute("data-currency", "TWD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNGQ2NmNjM2UwMGQ1ZTlmM2IzNTYwNzUyNTJhNDJhYjA3N2IwZGExMTJiMjIzNDYxNzBkYmZlM2RiNDQ0NDZmM3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTQ6MjI6MTguMzU4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBaLVhVeWpRaGFzUG5tTE9ZZWQ3OFZtRDRxRVF4M0lONHZwaFNkZ2I5M25SWjNYR3J6Nng4UmhHSmFlQm1zUzRrYVFVM19KeFdxXzE4ODh4emdDQVpFenZ0SXh3In19");
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('6606d27a57537', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('6606d27a57537', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6606d27a57537', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('6606d27a57537', 'paypal', 'buynow', 'rect', 'gold');
}