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/0zef0kd5dbv8/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AUcKPwY3sQTidz4ro72hrZXQB2XSOFHKMMW3DUsWcWLZiZP4y1ffLG9HyimN2xP9bWYTNv55b1vrs4go");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMzY0ZmZlNTUwZGUyZGNlNGNjZmNiNTQ4M2NlN2YxNTA2MWY2Y2ZlNDNlNGZlNjc1ZjY5MTlmNzE0MjhiNTJjZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMzFUMDY6NDI6NTguNjE4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU94MTAzcGhZTnNmcGhNQmVXVDg4RFByTlhMS2RybHJNVks4MXdsNllzc0U4UmlrUUpOM3BNa0lSYmNXdzB3b0N5ZXNxVFQ4c3hqUFNIVDRISTFvbVNaclFLZ2pnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "pl_PL");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AUcKPwY3sQTidz4ro72hrZXQB2XSOFHKMMW3DUsWcWLZiZP4y1ffLG9HyimN2xP9bWYTNv55b1vrs4go");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMzY0ZmZlNTUwZGUyZGNlNGNjZmNiNTQ4M2NlN2YxNTA2MWY2Y2ZlNDNlNGZlNjc1ZjY5MTlmNzE0MjhiNTJjZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMzFUMDY6NDI6NTguNjE4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU94MTAzcGhZTnNmcGhNQmVXVDg4RFByTlhMS2RybHJNVks4MXdsNllzc0U4UmlrUUpOM3BNa0lSYmNXdzB3b0N5ZXNxVFQ4c3hqUFNIVDRISTFvbVNaclFLZ2pnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "pl_PL");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6476f45b353cb', 'card', 'buynow', 'rect', 'black');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6476f45b353cb', 'card', 'buynow', 'rect', 'black');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6476f45b353cb', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6476f45b353cb', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6476f45b353cb', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6476f45b353cb', 'paypal', 'buynow', 'rect', 'gold');
});
}