if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn03.plentymarkets.com/zdh7dhw8nuee/plugin/4/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AQVttkfe9846FidNd5vpGXc9lGu5uKGwAvxyrJ0JBUNujkz3BaIGZ8gTtRTc5oHUBqSwSQ3rqSbouI5b");
script.setAttribute("data-currency", "NOK");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMDcyNjNjNDZjNGQ5MjJlYzlhMmYxOGZkNzY0ZGMzYTcyMDc0M2FlNzk2NWRhMzdkNDFjYzZlZDFmOTFjZGYzN3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTQ6MjM6MjYuMzUyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1ySjc3NG5lLXdrNG5GMWcwUTRJc3BYN2ZTTjdOLV9Xa1M2SFNudGNqbWRhYzBkYjNZOGxXU1RaWUJ6YUVQM2hIZTN4aVFQdEc0a1pheU5leGtORGktMkU3bHB3In19");
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", "AQVttkfe9846FidNd5vpGXc9lGu5uKGwAvxyrJ0JBUNujkz3BaIGZ8gTtRTc5oHUBqSwSQ3rqSbouI5b");
script.setAttribute("data-currency", "NOK");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMDcyNjNjNDZjNGQ5MjJlYzlhMmYxOGZkNzY0ZGMzYTcyMDc0M2FlNzk2NWRhMzdkNDFjYzZlZDFmOTFjZGYzN3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTQ6MjM6MjYuMzUyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1ySjc3NG5lLXdrNG5GMWcwUTRJc3BYN2ZTTjdOLV9Xa1M2SFNudGNqbWRhYzBkYjNZOGxXU1RaWUJ6YUVQM2hIZTN4aVFQdEc0a1pheU5leGtORGktMkU3bHB3In19");
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('6606d25be01a8', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('6606d25be01a8', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6606d25be01a8', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('6606d25be01a8', 'paypal', 'buynow', 'rect', 'gold');
}