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/8gpm1tc4al8c/plugin/20/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AXj48AoauWiV2deOL3pVxkvwGguQ805BqLHwtvZPnpcyd0tc-RTPIRMl8EM3wyq8htBGH7PjgE3AMnga");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNmRlMWVjNDg4YWM3ZDk2MDdjMTFlMzhhZDY4ZGM1NTc1ZmZmMTcxNDU3ODQyMGY4NWExY2FiOGVjODEwMjgwNHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMDVUMTk6MDQ6MjguNzY5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU51VUs5SW4tSDA4VnJ2LVdvdkY2d3U3Wk5PUUt4UV92NHUxU3JISk1XWF9tY2o0VmRERGw0d21EMWROV0pka0tWQzZCeHhtU1puUDd2SUYzWk1tRlhpSkI2V1dnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6637d83c5aa0c', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6637d83c5aa0c', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6637d83c5aa0c', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6637d83c5aa0c', 'paypal', 'buynow', 'rect', 'gold');
});
}