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/a392fx7fx160/plugin/5/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AYxz1-FgJZfJDmp2zZHt197MZ_6O0b5baY3qsWIoIiQrnQ1xrZM2NCkS5SjeaHCAQ9hl2_Sp2aOwnYEc");
script.setAttribute("data-currency", "RUB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNDM0MDQ3OTA0MTRkNmE0MDU2MGQxODgyNTY2OTM3MDk5ZTQ5MWZkODliMjFhZDRkMzZjN2NkZjlkZDBlNzc4OHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTItMzFUMDA6MDk6MjMuMjIyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU55c0Q4T3ZUUGNJRkNsMFVFbTBmLVhVVlhhNDAxbmlsc3BwSG9qNkV0bWg1YWV2WjI0Q0g3M3BucFdpcUEtT09oYkJJRy16NlNiRXdnNzF2VWhOZTVoVXQ5ZUpnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6590b7d4b1dbf', 'paypal', 'buynow', 'pill', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6590b7d4b1dbf', 'paypal', 'buynow', 'pill', 'gold');
});
}