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/szzh34htyqkf/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AYbERGAkPWktO8DZ51RFSrm1gRFF-OxIKDUyoHjjKE3iw3sRg9-Y4jd2Q-S9loQJpqbNqmdDcoD80RFU");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGM5OTBhY2U4OWJjNWQ0OGFkY2MxZGU0NTUxNjQyNmNmZTk2NWI1ZmIxZWVmYTkyNjE3ZjY0ZTNiOGRkMDI3MXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMTlUMjM6MDI6NTUuNjc0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5iV1Q2VHItU1BheWMxTUhPWXJueXRMbEVWN1RycG52dDVxOEczMWdfUTZrMGFuZ2lWRnQzR0wwRGItQ05ZSDlZcVZlcjZvSENxLVpxSU0yNVF1WDFWQVZSWW5RIn19");
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", "AYbERGAkPWktO8DZ51RFSrm1gRFF-OxIKDUyoHjjKE3iw3sRg9-Y4jd2Q-S9loQJpqbNqmdDcoD80RFU");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGM5OTBhY2U4OWJjNWQ0OGFkY2MxZGU0NTUxNjQyNmNmZTk2NWI1ZmIxZWVmYTkyNjE3ZjY0ZTNiOGRkMDI3MXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMTlUMjM6MDI6NTUuNjc0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5iV1Q2VHItU1BheWMxTUhPWXJueXRMbEVWN1RycG52dDVxOEczMWdfUTZrMGFuZ2lWRnQzR0wwRGItQ05ZSDlZcVZlcjZvSENxLVpxSU0yNVF1WDFWQVZSWW5RIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "pl_PL");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('664a90f46ff2f', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('664a90f46ff2f', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('664a90f46ff2f', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('664a90f46ff2f', 'paypal', 'buynow', 'rect', 'gold');
}