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/2ik9wb1bcb1n/plugin/3/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AU5-MTgq2QhN49_PdU7MeOy6cu5ZX3l340fAsj6usP8r4ju7iATtPTJObk07NqReX_fdo1-t-Ex1k8SB");
script.setAttribute("data-currency", "VND");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNGIyYTI3MTljMjJlODUxMjJjZjg5MzcwNjcxY2Q4N2I0NDM1YTMzY2FhNGY2YTA0OWFjZDcwZmYxZTE1N2JmMHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDEtMDZUMTQ6Mjk6MjkuODM5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9RaVhuYnBIYVNTVHhvN2RCb3o5VFp5cThiMEtkRUlqVktSOVJGTUc5YkZpdUtjaUQyYmZVWUxGbW0zcmpGMHlDaWRrNHNucjJIWHU5dkoxNWVwYy04ZkhYNE5nIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65997103c40c5', 'paypal', 'buynow', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65997103c40c5', 'paypal', 'buynow', 'rect', 'blue');
});
}