if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn09.plentymarkets.com/m16m8icxiam3/plugin/19/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AQ1r0BdlRUcog1igNZtM8rKob8hXhUnAzcZ4T2GNe_UQ1y6gWR7fKaqDzBAbzjG6IZZjzhRCSvmqIQ-x");
script.setAttribute("data-currency", "BHD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiY2U1OGI4NGE0ODFmMWU3MTQyMGM0YjI2YzhiM2U0ZjA4ZjY2MDMzZjliNzU1Y2Q4N2QzNWQ5ZTM4Y2IxYTg5Y3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTU6Mzk6MjYuMjk3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU45VUc3d3FZcFk3dFcwX1RYaUdtMGhrVzI1Q01FYkpEWlRneUlxZElxNWFaQlJSZDdDYU0tTXJza2RtQ0EteldsQm1zT2NPWGRhQndITFpiWDhSZ1RTUkg1Vk53In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66059c861ef45', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66059c861ef45', 'paypal', 'buynow', 'rect', 'gold');
});
}