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/32itjw7xltx8/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AZusJUegaXkadg6Dgzx9To6OBM2-r07I0ct2OkqLLifAKa0Vnx8krZayCTPUcWdl_gwyPSisa55zCbvy");
script.setAttribute("data-currency", "NOK");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMjYxMWNlZTNmNjQyNzM2NjRjNzI1Y2MwZjU4ZTI3ZTU3ZGZmODA1YTA3MTM2YWY5YzAzNGZiMTg0MmM4OTc1NXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDItMjRUMjI6MzI6NTUuMjYxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9xN0hRZ2t4bjhRZ2ZiT0lGRnVEVVh6RlBZYlRWZFJXdEh1ekp4UVBrU29mbXY1dWFKaDN6ZC16Q1dSREZNck5IdHNwaEVxNTdBcnlXVWdVbDZFYW1OYnExeHpBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65da739baf260', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65da739baf260', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65da739baf260', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65da739baf260', 'paypal', 'buynow', 'rect', 'gold');
});
}