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/m1x9nqiuzy5l/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "Ac81FsHN5_ZcmYl8McbmfyD-8HQR9cQskI4t5LfHpX9eibZJDjPyzRhftDCuTNMf9n-fSHJ7vTdlzZSG");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDk3ZGM0NmE1ZDU5YTgzNWZhOGM0ZjMzYTVlZDRjNDMzZGIyNjE4NTViMDhmMmVjM2E3ZWZmNGY2OTRkZWIwY3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjlUMDA6Mzc6MzkuOTI5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU11ajVxWG1TQ0Y2TEpVR3JNaWNzb3dyN1NzYnhwSDZ5c1dKeE9vc28zX2lSMDhBb0tHb0xYSnA4aDdEenNFZTVpblY5R2NhV3UxNnFEYWJnbjlVWDRPUGR4dmx3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "Ac81FsHN5_ZcmYl8McbmfyD-8HQR9cQskI4t5LfHpX9eibZJDjPyzRhftDCuTNMf9n-fSHJ7vTdlzZSG");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDk3ZGM0NmE1ZDU5YTgzNWZhOGM0ZjMzYTVlZDRjNDMzZGIyNjE4NTViMDhmMmVjM2E3ZWZmNGY2OTRkZWIwY3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjlUMDA6Mzc6MzkuOTI5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU11ajVxWG1TQ0Y2TEpVR3JNaWNzb3dyN1NzYnhwSDZ5c1dKeE9vc28zX2lSMDhBb0tHb0xYSnA4aDdEenNFZTVpblY5R2NhV3UxNnFEYWJnbjlVWDRPUGR4dmx3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662ef9a90ceb7', 'card', 'buynow', 'rect', 'black');
});
} else {
renderPayPalButtons('662ef9a90ceb7', 'card', 'buynow', 'rect', 'black');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662ef9a90ceb7', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('662ef9a90ceb7', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662ef9a90ceb7', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('662ef9a90ceb7', 'paypal', 'buynow', 'rect', 'gold');
}