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/2ik9wb1bcb1n/plugin/3/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AU5-MTgq2QhN49_PdU7MeOy6cu5ZX3l340fAsj6usP8r4ju7iATtPTJObk07NqReX_fdo1-t-Ex1k8SB");
script.setAttribute("data-currency", "DKK");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNjZjZDA4YWUzYmIzNTQ5YjcxNGY1M2E1MzQyNmUwNzRkZDQxNDBiZDBlZDI2YjIxMGIxNTAxNmZlYTEwYTlmZnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTEtMDNUMTE6MjA6NDUuMTYyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9jM1JCYWdLZ0IzZkNySmdFQmFzTldKeFJuX3hubTVwUFdGcmxhSTg1akNCR1hOZ2dCcHRyR1o4em00VHdrNW5NQWNLTzI2TV95WVE4ekNGRjRKUFpsVWhZaWNRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6544e39150b2d', 'paypal', 'buynow', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6544e39150b2d', 'paypal', 'buynow', 'rect', 'blue');
});
}