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/6sqyjas90wqo/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AclHc5nva419haVJDXXshZl39HGNEBfCb6jYwIVkrMPf1DyBdaAoUaFQN1Ew8jNKxme-k6YzzSqJbIET");
script.setAttribute("data-currency", "RUB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZTQxZmVjODBlZmFlN2ZjNmQ0ZGE5MGM4NzgzNWMyMTg4OGU2MWI0MDJiYjU2ZmU2ZGE3MmJiMjkwMmNiOTZiY3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDItMjRUMjM6NTQ6NDEuNzAzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU83MWpIYmdBbUlGVkEyQnJWemFLMl9xdlJqOExpa1NYV3F5c2wyRDRqN0FuRzIxV1VZVVd4SUF5NHc2YmhiWG5YV25KVDlUNXpFTnZSUkFUVnJ2Z3AyRHBmSFdBIn19");
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", "AclHc5nva419haVJDXXshZl39HGNEBfCb6jYwIVkrMPf1DyBdaAoUaFQN1Ew8jNKxme-k6YzzSqJbIET");
script.setAttribute("data-currency", "RUB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZTQxZmVjODBlZmFlN2ZjNmQ0ZGE5MGM4NzgzNWMyMTg4OGU2MWI0MDJiYjU2ZmU2ZGE3MmJiMjkwMmNiOTZiY3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDItMjRUMjM6NTQ6NDEuNzAzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU83MWpIYmdBbUlGVkEyQnJWemFLMl9xdlJqOExpa1NYV3F5c2wyRDRqN0FuRzIxV1VZVVd4SUF5NHc2YmhiWG5YV25KVDlUNXpFTnZSUkFUVnJ2Z3AyRHBmSFdBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65da81c1d9331', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('65da81c1d9331', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65da81c1d9331', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('65da81c1d9331', 'paypal', 'buynow', 'rect', 'gold');
}