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/8gpm1tc4al8c/plugin/20/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AXj48AoauWiV2deOL3pVxkvwGguQ805BqLHwtvZPnpcyd0tc-RTPIRMl8EM3wyq8htBGH7PjgE3AMnga");
script.setAttribute("data-currency", "QAR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMWNhOTE0ZmQxNjU2M2Y3ODdjMmY3YzUxMjdiODA1ODgyNGUxNTQ3NzU2YWMyNWJlZDEzNmUzYWZlZDk4N2IwMHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDYtMDFUMjA6NDM6MDUuMDU0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5Ja3VhY2o3UDVnU2d3UU9XU3hyT1ZYVDA1OGVMcW14cjFrMWhidHJvdXVqOUVuS2Z4TGgtNDM4Z25Wd3hWZjRNaHlveFpaV0RFRmZQTmlDWGsxOEtuSGk1YS13In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('665b87d8adfdb', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('665b87d8adfdb', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('665b87d8adfdb', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('665b87d8adfdb', 'paypal', 'buynow', 'rect', 'gold');
});
}