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/5uerm8tyvphn/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AdI_N1WbuC_maqsecv_gpzA5D8Oxx8NfWSWs__qceUkFshm__djbaDEx244W2NiPNJYmgBiOEvyC9Gy6");
script.setAttribute("data-currency", "VND");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzcxOGYyYTg0YjJhN2FkOTVhNWZiOGY5NzI4MDBjZDAxMjViZTI1YmEyMjFmMGY2MTVhZGUxMzg4ZWVmNzY0NHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMTJUMDM6MjM6MTQuMzc0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5IV2U5VXJTYWllUFlnQ1Z0NFl5TG5nTU9PM2Z1STVlaDAtU0k3Q05sczV0c3ZFN1MwdDE4bE1KbHhoX3k4SXZ4N1JBbnFBcTBDWUFtQ0thanJ1a1J3NG80amp3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AdI_N1WbuC_maqsecv_gpzA5D8Oxx8NfWSWs__qceUkFshm__djbaDEx244W2NiPNJYmgBiOEvyC9Gy6");
script.setAttribute("data-currency", "VND");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzcxOGYyYTg0YjJhN2FkOTVhNWZiOGY5NzI4MDBjZDAxMjViZTI1YmEyMjFmMGY2MTVhZGUxMzg4ZWVmNzY0NHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMTJUMDM6MjM6MTQuMzc0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5IV2U5VXJTYWllUFlnQ1Z0NFl5TG5nTU9PM2Z1STVlaDAtU0k3Q05sczV0c3ZFN1MwdDE4bE1KbHhoX3k4SXZ4N1JBbnFBcTBDWUFtQ0thanJ1a1J3NG80amp3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65efcf1bb2185', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('65efcf1bb2185', 'paylater', 'paypal', 'rect', 'gold');
}