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/rh6xum1lhyf7/plugin/4/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AUZAarK-1H0ATGcL74N9KpAEQBINWfMKA5I5q0CGQNOMz9vE0BXDESYBYohGqmopeowRWNjB2EWuiDSy");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMmQwNzc0NjdkNGZjNWQxOTY4YzFiNTdkN2JkZTA4ZmUyZDhhNjY0MGM2MGEwNWVmOTcyZjI3Y2MyYTg5MDczYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMDMtMzBUMDM6MjM6MTMuODk0MTQ1NDk0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9MWWV6VWl3OF9DUlVXYS1BSnhwa1UwR0Q0UGFReGFiT3VPbHhScXdDRlRaTG5BRmtUVm52UlJRMnlJb2MyWmo1b0diN1BMYkcxMXV1a0NRbUlfQ01Ja2owa0xnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('67e8c5c489ee6', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('67e8c5c489ee6', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('67e8c5c489ee6', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('67e8c5c489ee6', 'paypal', 'buynow', 'rect', 'gold');
});
}