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/ab0enl3g5d6f/plugin/6/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AStDJZqESfNUfEIrX02pwSfNKuUfhjwjgNdwuRfXC_eRmFnQK5Vy3mXaRuf5P2ajGWMCcUhnF42uL3uS");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjkxYjI4OGRkNjZhMzgzODVkNDZlNjQ5NmRlY2VmMTg4ZTQyNGY2YTAxYmFmYTI5MjViYjE3Njg2YWI0MGI4Y3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTItMTdUMDE6Mjk6NDYuNjYwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5IWWF0d3R1NEpBZmdfdDI1dFh1cFFFZW1yZl96SGNiX253OXg4dE9WSjNJZUFORnNyQ3V0WnhsNWZsbHFSN25rdzF2V0dWSGtWRS1NMlB4WjFKdnRlekE5ZGZBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AStDJZqESfNUfEIrX02pwSfNKuUfhjwjgNdwuRfXC_eRmFnQK5Vy3mXaRuf5P2ajGWMCcUhnF42uL3uS");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjkxYjI4OGRkNjZhMzgzODVkNDZlNjQ5NmRlY2VmMTg4ZTQyNGY2YTAxYmFmYTI5MjViYjE3Njg2YWI0MGI4Y3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTItMTdUMDE6Mjk6NDYuNjYwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5IWWF0d3R1NEpBZmdfdDI1dFh1cFFFZW1yZl96SGNiX253OXg4dE9WSjNJZUFORnNyQ3V0WnhsNWZsbHFSN25rdzF2V0dWSGtWRS1NMlB4WjFKdnRlekE5ZGZBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('657e543b4fa2c', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('657e543b4fa2c', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('657e543b4fa2c', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('657e543b4fa2c', 'paypal', 'buynow', 'rect', 'gold');
}