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/g2oj8gthlgej/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AUWRtLIC2tmYT2cEeQMF6XnZyRyzr8EleIqTXvB7s25Kt4gMzKw_oGkG962QkVa1_D06QIjpsKECqWf6");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOTU3MjhkMWY5NDYxNzdjYmRiNzkxODY2NTYzOTI2MGFlYzljMDZiNWUxZDUyNWVjNmU4ZDM5YTJiNmY5Y2VjY3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMDlUMDg6NTE6MDAuNzg1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBMc2phUHJsQ0RxYnppSDlTb0I3YjdCXzRKdzRxR3JQdWMyb21vNjhwTWdHOVFveEZadEFWQ0dXT1RvTXNyTVpTY1dFeGhqTVNwSk8tVHl4SzBzcmJBcm0xUjJnIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('663c8e7508845', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('663c8e7508845', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('663c8e7508845', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('663c8e7508845', 'paypal', 'buynow', 'rect', 'gold');
});
}