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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYWMxYWI4OTViYzQwOTdkZjU2YzcwOWJlNDcyODNlM2Q0M2Q2YzMxYjg0YTU4NGViYzFhNzQwZGY3MGY1YjQ1ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDgtMThUMjI6Mjg6NTEuNTU1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVA1MzI4eWk0dW5LU3pRMDhNckdHNFR0WVNKNUJZdFRyVS15RXlpTDh5WG1CeVY3TGpBaDdLUlNXRThnVXdQZFhtd3oteEdNaTZiNkltd3dMQi05MGxqVFRpSkFnIn19");
script.setAttribute("data-user-id-token", "eyJraWQiOiJiODYwOWZkYTdlOTY0YzllYWY5Y2EwNTRmYWNkNTU1OCIsInR5cCI6IkpXVCIsImFsZyI6IkVTMjU2In0.eyJpc3MiOiJodHRwczovL2FwaS5wYXlwYWwuY29tIiwic3ViIjoiUTVCVFdaWlFIWUhVVSIsImFjciI6WyJjbGllbnQiXSwic2NvcGUiOlsiQnJhaW50cmVlOlZhdWx0Il0sIm9wdGlvbnMiOnt9LCJheiI6ImRjZzE2LnNsYyIsImV4dGVybmFsX2lkIjpbIlBheVBhbDpRNUJUV1paUUhZSFVVIiwiQnJhaW50cmVlOnpia2p3dmhyNGtkOW53amMiXSwiZXhwIjoxNzI0MDIxNTE2LCJpYXQiOjE3MjQwMjA2MTYsImp0aSI6IlUyQUFOY3NUc0hqcDB1SGRKdnIyWDUwNlpNRmJESjE0Y2pvQUtKV0hTYkh3UGpLa2NlVDFobWNxOTZrdHJzbW14bE9MUW1ZdWpUeW5pSE1SNTVwYU0ySEJxWlFpZWE4c0EyTDl6U1V5a09Ea1M4WVV5UmdYeUUyTnB6d0pkNll3In0.H4hQ-4hi8i1Dvp-vbX0WiUR9umZ7LUBH82MkZ16SSwJ-_OLJO984mzA_UpxcOjGOHpOakLmOUebKeX9NxG5oQg");
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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYWMxYWI4OTViYzQwOTdkZjU2YzcwOWJlNDcyODNlM2Q0M2Q2YzMxYjg0YTU4NGViYzFhNzQwZGY3MGY1YjQ1ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDgtMThUMjI6Mjg6NTEuNTU1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVA1MzI4eWk0dW5LU3pRMDhNckdHNFR0WVNKNUJZdFRyVS15RXlpTDh5WG1CeVY3TGpBaDdLUlNXRThnVXdQZFhtd3oteEdNaTZiNkltd3dMQi05MGxqVFRpSkFnIn19");
script.setAttribute("data-user-id-token", "eyJraWQiOiJiODYwOWZkYTdlOTY0YzllYWY5Y2EwNTRmYWNkNTU1OCIsInR5cCI6IkpXVCIsImFsZyI6IkVTMjU2In0.eyJpc3MiOiJodHRwczovL2FwaS5wYXlwYWwuY29tIiwic3ViIjoiUTVCVFdaWlFIWUhVVSIsImFjciI6WyJjbGllbnQiXSwic2NvcGUiOlsiQnJhaW50cmVlOlZhdWx0Il0sIm9wdGlvbnMiOnt9LCJheiI6ImRjZzE2LnNsYyIsImV4dGVybmFsX2lkIjpbIlBheVBhbDpRNUJUV1paUUhZSFVVIiwiQnJhaW50cmVlOnpia2p3dmhyNGtkOW53amMiXSwiZXhwIjoxNzI0MDIxNTE2LCJpYXQiOjE3MjQwMjA2MTYsImp0aSI6IlUyQUFOY3NUc0hqcDB1SGRKdnIyWDUwNlpNRmJESjE0Y2pvQUtKV0hTYkh3UGpLa2NlVDFobWNxOTZrdHJzbW14bE9MUW1ZdWpUeW5pSE1SNTVwYU0ySEJxWlFpZWE4c0EyTDl6U1V5a09Ea1M4WVV5UmdYeUUyTnB6d0pkNll3In0.H4hQ-4hi8i1Dvp-vbX0WiUR9umZ7LUBH82MkZ16SSwJ-_OLJO984mzA_UpxcOjGOHpOakLmOUebKeX9NxG5oQg");
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('66c27788715de', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('66c27788715de', 'paypal', 'buynow', 'rect', 'gold');
}