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/xh04rjuajfy4/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AXA4T4Fn8iO3w6rgNs9kQU9uQKqWYU8PgtZHhyl0XAmbDkZEV1VFOgA9IAdQuMr2PMnA0k3ANgbHT5cO");
script.setAttribute("data-user-id-token", "");
script.setAttribute("data-merchant-id", "8ASFLARQWLLQN");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
script.setAttribute("sandbox", "1");
script.setAttribute("googlePayComponent", 0);
script.setAttribute("applePayComponent", 0);
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.src = "https://cdn03.plentymarkets.com/xh04rjuajfy4/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AXA4T4Fn8iO3w6rgNs9kQU9uQKqWYU8PgtZHhyl0XAmbDkZEV1VFOgA9IAdQuMr2PMnA0k3ANgbHT5cO");
script.setAttribute("data-user-id-token", "");
script.setAttribute("data-merchant-id", "8ASFLARQWLLQN");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
script.setAttribute("sandbox", "1");
script.setAttribute("googlePayComponent", 0);
script.setAttribute("applePayComponent", 0);
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6757290489243', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('6757290489243', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6757290489243', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('6757290489243', 'paypal', 'buynow', 'rect', 'gold');
}