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/cj55hindoc9t/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AUtx5bvr_gPS_kMeTkCAIiCkH1GqJfCL5alafKSfhrm69cUjNLPnGdjAEiDBGe9-TXkxw9yWOR-QMPmC");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzMyNzlkZDA1Y2JjYThiYWRhMzVhZTdjY2I2NjFhN2Y4NDM5YmRkMTAzNDBjMWNhYmNiNTlmYzJlNDM5ZGMyOHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMDRUMTI6NTA6MjMuNzE0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU16WllGcnBpaEFFdGViOUVzT182OU9WbjlIZi1EUFVQZGkyNnNFWG9wc2ZadTh5NHJ1SVVIV0RPSXp2Z3FHT0JpeG9QNnM3UnRGMzFSNXRXSHN3Q0dzcFdqRkhBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AUtx5bvr_gPS_kMeTkCAIiCkH1GqJfCL5alafKSfhrm69cUjNLPnGdjAEiDBGe9-TXkxw9yWOR-QMPmC");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzMyNzlkZDA1Y2JjYThiYWRhMzVhZTdjY2I2NjFhN2Y4NDM5YmRkMTAzNDBjMWNhYmNiNTlmYzJlNDM5ZGMyOHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMDRUMTI6NTA6MjMuNzE0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU16WllGcnBpaEFFdGViOUVzT182OU9WbjlIZi1EUFVQZGkyNnNFWG9wc2ZadTh5NHJ1SVVIV0RPSXp2Z3FHT0JpeG9QNnM3UnRGMzFSNXRXSHN3Q0dzcFdqRkhBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6453aca32f1fd', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6453aca32f1fd', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6453aca32f1fd', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6453aca32f1fd', 'paypal', 'buynow', 'rect', 'gold');
});
}