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/llqs9o7bcs7z/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AUH4vs7aZ3pYsqAsJ-l7TmxAt8jvckagy3G9AetqPfMjlrcU0MpAw500chTVPEcp47kcQNDz_BTM-PHI");
script.setAttribute("data-currency", "SEK");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDI1ZTlhZDJlMTg2YmQxYmZiYjc3YzYyMjU5ZjdhYzhiNjk4Mjc1MTlmZmMzYTExNmIxNmNmMTZhZWQyNDM5ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjVUMDA6Mzc6MTkuNDE5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU91bWt0cmwyaW1MSGNVN2F0TEVnb0UtaUVMWGE0OVU4c0MyWm5kLUhSU0cySHJwUlYxcHFLenc5WVJDTEs5aWUwcUJwT1M0VGg1S3owZmVMOV9aNGhHRUEwQ1RBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AUH4vs7aZ3pYsqAsJ-l7TmxAt8jvckagy3G9AetqPfMjlrcU0MpAw500chTVPEcp47kcQNDz_BTM-PHI");
script.setAttribute("data-currency", "SEK");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDI1ZTlhZDJlMTg2YmQxYmZiYjc3YzYyMjU5ZjdhYzhiNjk4Mjc1MTlmZmMzYTExNmIxNmNmMTZhZWQyNDM5ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjVUMDA6Mzc6MTkuNDE5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU91bWt0cmwyaW1MSGNVN2F0TEVnb0UtaUVMWGE0OVU4c0MyWm5kLUhSU0cySHJwUlYxcHFLenc5WVJDTEs5aWUwcUJwT1M0VGg1S3owZmVMOV9aNGhHRUEwQ1RBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6629b2125595c', 'paypal', 'pay', 'rect', 'gold');
});
} else {
renderPayPalButtons('6629b2125595c', 'paypal', 'pay', 'rect', 'gold');
}