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/l1ya87slllbw/plugin/13/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AZL3Ks8cubZhzZYvsxB_9vif047Bg6EjC9E9SPquLzlHFFlslyTBtGAvUgBApDo4sL84qKOY-NdEFDkS");
script.setAttribute("data-currency", "HUF");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNDQ0YzU2ZTlkNTZlNGJmYTg3YzNlOTY2OWUxY2QyMzA4NzU4ZWJhOWIyYTA4ZTc0ZjMzNTNhYTBlZGVjNDA2YnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTk6Mzk6MTguNTg4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9CdnFUZXJPT3I0a1ZSdkk3UWFXa0lmRnRHaU5qaEZWaEZEdFRyOS03T19jT1FJeXRET2I5LUZtQnNTaHNsc0paT3JTZWFRLWhMVk9Yb1otZjR0UGY3RmMzeFRnIn19");
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", "AZL3Ks8cubZhzZYvsxB_9vif047Bg6EjC9E9SPquLzlHFFlslyTBtGAvUgBApDo4sL84qKOY-NdEFDkS");
script.setAttribute("data-currency", "HUF");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNDQ0YzU2ZTlkNTZlNGJmYTg3YzNlOTY2OWUxY2QyMzA4NzU4ZWJhOWIyYTA4ZTc0ZjMzNTNhYTBlZGVjNDA2YnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTk6Mzk6MTguNTg4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9CdnFUZXJPT3I0a1ZSdkk3UWFXa0lmRnRHaU5qaEZWaEZEdFRyOS03T19jT1FJeXRET2I5LUZtQnNTaHNsc0paT3JTZWFRLWhMVk9Yb1otZjR0UGY3RmMzeFRnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66071fde77e79', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66071fde77e79', 'paypal', 'buynow', 'rect', 'gold');
});
}