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/bms894nnplfo/plugin/59/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ASO0zdMJ0UmqI0nSeBMBiCFmaZv42jVIOh0R_2NQA5JcL_X4hGFU0ycktAUHFZFOh0NNBrOtjJra0m3v");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiY2M4YzExNTAwZTJlMGExZDc1YTA4ZTMxZDE5MTE0ZjMwOGViMDVhNmJiM2YwNWNkODBjM2NkNWJjMjkwYWMzMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDFUMjI6Mjc6MjMuNDE3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9EWDdGS3V5dGg1RUFoZmVIR1B1VWU0V2I1R3VqWTdfNFZQTzdhZTltRVBCLU0zei1JU1ZWVzZWQjZIWnZ0aWJDekU0clhVM1VTekl4bVBrTFVEbi1maUNKNnpRIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('64791f8899313', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('64791f8899313', 'paypal', 'buynow', 'rect', 'gold');
});
}