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/z2h9l54m7125/plugin/10/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ATm-jgo75B2Pc4_08iKHnifY43-l__uek5DWr5nbZpbuBh-jjRWNTtyqGlt0itaaQc0Gs3yuwVnzjZXP");
script.setAttribute("data-currency", "RON");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzI1M2RlMTRlZGU3MWM4ZDM5OTFjMWE5OTJmNDY1OTZlMGZjY2E2MzAzMWZkYTc0NmM2MTk3OTc3N2RlZTQ3NXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTEtMDVUMTI6NDg6NDMuODIxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU42cG9pdXI5TU5Bd2dOMnkwRHNzaFRrUF9JSy1oVkRoZGdlbm9vN1Q0T2xhT3poTWFGVm12Zi0xMklVT0dOVEY5eTVycEdaNWhGNEgyTlFJRC1vOHkwcVNCRi1nIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65478f2ae2e91', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65478f2ae2e91', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65478f2ae2e91', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65478f2ae2e91', 'paypal', 'buynow', 'rect', 'gold');
});
}