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/6o3z34d57y8p/plugin/18/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AQIyP2ay3GgoX85E6qZzmt6G6YBrNnDmsBpkPMDu9vyZ9zO7AxN8d2BasJ74Rvj1OK-3jwxpGMVw3l8P");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiN2QxODE3NWIwNjc2ZjA5ZGQwNDYxYjc4OTE1NzA0MTQzMjZlMGUxN2NhMGJlY2Q4MGY5MTE5NGJjNGM4Y2E1MHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMDk6NTg6MDcuNjI5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1ybDctUW4wYU1ISjhXcFBrajMtc081MVEyZ3ZIUXFIV1lBN1dDV2pCbG5Wc1pfOWQ0UzlhQmR3Zzk1ZHpsdjk1eG9qLVJOakx0RER1T3JoUWJ4QU9MSktZcS1RIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('660690af4211f', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('660690af4211f', 'paypal', 'buynow', 'rect', 'gold');
});
}