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/bmvuwg41eqyj/plugin/5/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AZBiYtWftySqmbN9TwKkrbAZYB7CBHtsoM6MIKKQUSfK7MO4PrSZsfQ4n2xqa9vWLQzC1UDBFf-G7Ft6");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNTIyZmIwNzYwYjdhN2Y3NDBkYjE1ODljNDY0ZDliNTk2YmE2N2FkZGVlNjQ3OTQwMmI4Nzc3Yjk5M2EyZTU0MnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDRUMDk6MzM6MTQuNDgzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU53Mm01Zmk1Qk1SdDlUa2NRdGt0WlAxRVVMQlZzLV9rVGJNTTRhUmtGXzJsMWlnZU85TV9TWXdUQmZoeHBjckdZcUtJbnVaWkpkczVaLWxrdXBRNU1WRS1qNVVRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "pl_PL");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647c60d643fde', 'paypal', 'buynow', 'rect', 'white');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647c60d643fde', 'paypal', 'buynow', 'rect', 'white');
});
}