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/shnuxd70ih03/plugin/53/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AXNVf5cWtv3mlf6AXP0-_BXbpRBOaO-K_8Aj5DSFuWanIWKZ5dWRTWtmgnKD6eWOOVsYBM_w_C_niC3x");
script.setAttribute("data-currency", "NOK");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMjJlYThmMzA0NDIxMjhhMmQ4MGFhZDI3YTYzZjFiMjBiYTgzMGQwNTQzYWIwNmQzMWJhMmI2NTUzMDc3YTMxYnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMDJUMTI6Mjc6MTEuNDQ2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1WSEZ2c2g0dTUxSXM1a0Vab3FPWm5DRzIyN1MxWS1NSXZVUUV1M1Axdzh2c3V2NUxkQzlnWGd6Yktza25PMmNEMmpCemtyNUNNQ0J5eHFOaTh1bHJzVEpMN1RRIn19");
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", "AXNVf5cWtv3mlf6AXP0-_BXbpRBOaO-K_8Aj5DSFuWanIWKZ5dWRTWtmgnKD6eWOOVsYBM_w_C_niC3x");
script.setAttribute("data-currency", "NOK");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMjJlYThmMzA0NDIxMjhhMmQ4MGFhZDI3YTYzZjFiMjBiYTgzMGQwNTQzYWIwNmQzMWJhMmI2NTUzMDc3YTMxYnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMDJUMTI6Mjc6MTEuNDQ2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1WSEZ2c2g0dTUxSXM1a0Vab3FPWm5DRzIyN1MxWS1NSXZVUUV1M1Axdzh2c3V2NUxkQzlnWGd6Yktza25PMmNEMmpCemtyNUNNQ0J5eHFOaTh1bHJzVEpMN1RRIn19");
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('66338b42ee8a6', 'card', 'buynow', 'rect', 'black');
});
} else {
renderPayPalButtons('66338b42ee8a6', 'card', 'buynow', 'rect', 'black');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66338b42ee8a6', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('66338b42ee8a6', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66338b42ee8a6', 'paypal', 'buynow', 'pill', 'gold');
});
} else {
renderPayPalButtons('66338b42ee8a6', 'paypal', 'buynow', 'pill', 'gold');
}