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/hmk3pe801ef7/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AdwaFu-FuMAeQnK_XSqhrDcW6E5Otgt4spcOQm5o6GZfl4qIVyp9gmiebm09Let2JBRob78ICI_pVrf3");
script.setAttribute("data-currency", "QAR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNDNmMDZlY2VlZDUwNTczNDA0YmEyMjFiNzQ5NGU2ZGMzMDFhODI2ODM2NzBhZjY0ZjdmZDk1MzhhZmJiNzdiYnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMDQtMDRUMDQ6NDU6NTkuODQzMDExOTE0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9OTmVmY3RkYW9Jd1JSbVVkMDlpVldQRC1QMTNGWk02V2ZrMzFtQjR0bVoySnRQNEZlTzdiTGxNemFScEVEOTBjWl9ac05NSi1zRF9LU0VzbmdWVFRSM1Z6VUdBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('67ef6d44b414e', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('67ef6d44b414e', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('67ef6d44b414e', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('67ef6d44b414e', 'paypal', 'buynow', 'rect', 'gold');
});
}