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/51qt7ldaagpe/plugin/9/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AfslQana4f4CQjHvRBnUc6vBJg5jgJuZFwM-SbrTiGKUAqB7MrxQv3QWFdQ6U1h7ogMDokT1DNBzRxMw");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZTZjNTI1ZDdkYWM5YzMyOGFiMDJlMzZjYjRmMjIyYjI1NWNlZDBlMWExZjVmMzY3ODk2Y2I4NWYwZTdjZGJhN3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDgtMDhUMDQ6MTQ6MzAuNzQzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU56c0FuRmxmTGEteldYU19rQ2thQnlUbkZFVC1RR1l6UjVYRmFWOXozYlhMREt4WkxJRVVvemV1UUdyOVBxNjZYbWxOV0VLMklMdERyNU9zWDBXeGtEcnZKV2hRIn19");
script.setAttribute("data-user-id-token", "eyJraWQiOiJiODYwOWZkYTdlOTY0YzllYWY5Y2EwNTRmYWNkNTU1OCIsInR5cCI6IkpXVCIsImFsZyI6IkVTMjU2In0.eyJpc3MiOiJodHRwczovL2FwaS5wYXlwYWwuY29tIiwic3ViIjoiUTVCVFdaWlFIWUhVVSIsImFjciI6WyJjbGllbnQiXSwic2NvcGUiOlsiQnJhaW50cmVlOlZhdWx0Il0sIm9wdGlvbnMiOnt9LCJheiI6ImRjZzAyLnBoeCIsImV4dGVybmFsX2lkIjpbIlBheVBhbDpRNUJUV1paUUhZSFVVIiwiQnJhaW50cmVlOnpia2p3dmhyNGtkOW53amMiXSwiZXhwIjoxNzIzMDkyNzMxLCJpYXQiOjE3MjMwOTE4MzEsImp0aSI6IlUyQUFQVk50MHB2UWc0U2RtWTloZ2Rta0lhZXR0YkJuLW5HT2VzOFM4ck83Wkc2dmRhdFp3cG00cVRlSXFTYWFlZjZ2eDgtOEZOb0xib3RhNXJHX2ZXNDBSSEpoUDFrUzdrWW4xa1ViSzFVOGhFRVhwckwxMnVFeFdGZFE0ZVpBIn0.n2p2OtHyMlNR5orExWqPOss1o9T8C0wWXdugR5hp5WfmSoEvcqZR87nSQ-4DwqoH1HIKMBwdX7pEG5NTksGQ8g");
script.setAttribute("data-merchant-id", "E5EDVQ7DKDNLQ");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
script.setAttribute("sandbox", "");
script.setAttribute("googlePayComponent", 0);
script.setAttribute("applePayComponent", 0);
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.src = "https://cdn02.plentymarkets.com/51qt7ldaagpe/plugin/9/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AfslQana4f4CQjHvRBnUc6vBJg5jgJuZFwM-SbrTiGKUAqB7MrxQv3QWFdQ6U1h7ogMDokT1DNBzRxMw");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZTZjNTI1ZDdkYWM5YzMyOGFiMDJlMzZjYjRmMjIyYjI1NWNlZDBlMWExZjVmMzY3ODk2Y2I4NWYwZTdjZGJhN3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDgtMDhUMDQ6MTQ6MzAuNzQzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU56c0FuRmxmTGEteldYU19rQ2thQnlUbkZFVC1RR1l6UjVYRmFWOXozYlhMREt4WkxJRVVvemV1UUdyOVBxNjZYbWxOV0VLMklMdERyNU9zWDBXeGtEcnZKV2hRIn19");
script.setAttribute("data-user-id-token", "eyJraWQiOiJiODYwOWZkYTdlOTY0YzllYWY5Y2EwNTRmYWNkNTU1OCIsInR5cCI6IkpXVCIsImFsZyI6IkVTMjU2In0.eyJpc3MiOiJodHRwczovL2FwaS5wYXlwYWwuY29tIiwic3ViIjoiUTVCVFdaWlFIWUhVVSIsImFjciI6WyJjbGllbnQiXSwic2NvcGUiOlsiQnJhaW50cmVlOlZhdWx0Il0sIm9wdGlvbnMiOnt9LCJheiI6ImRjZzAyLnBoeCIsImV4dGVybmFsX2lkIjpbIlBheVBhbDpRNUJUV1paUUhZSFVVIiwiQnJhaW50cmVlOnpia2p3dmhyNGtkOW53amMiXSwiZXhwIjoxNzIzMDkyNzMxLCJpYXQiOjE3MjMwOTE4MzEsImp0aSI6IlUyQUFQVk50MHB2UWc0U2RtWTloZ2Rta0lhZXR0YkJuLW5HT2VzOFM4ck83Wkc2dmRhdFp3cG00cVRlSXFTYWFlZjZ2eDgtOEZOb0xib3RhNXJHX2ZXNDBSSEpoUDFrUzdrWW4xa1ViSzFVOGhFRVhwckwxMnVFeFdGZFE0ZVpBIn0.n2p2OtHyMlNR5orExWqPOss1o9T8C0wWXdugR5hp5WfmSoEvcqZR87nSQ-4DwqoH1HIKMBwdX7pEG5NTksGQ8g");
script.setAttribute("data-merchant-id", "E5EDVQ7DKDNLQ");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
script.setAttribute("sandbox", "");
script.setAttribute("googlePayComponent", 0);
script.setAttribute("applePayComponent", 0);
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66b44b77a214f', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('66b44b77a214f', 'paypal', 'buynow', 'rect', 'gold');
}