algo como
js
mounted() {
const script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/gh/efipay/js-payment-token-efi/dist/payment-token-efi-umd.min.js';
script.onload = () => {
console.log('EfiPay script loaded');
};
script.onerror = () => {
console.error('Failed to load EfiPay script');
};
document.head.appendChild(script);
}
mounted() {
const script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/gh/efipay/js-payment-token-efi/dist/payment-token-efi-umd.min.js';
script.onload = () => {
console.log('EfiPay script loaded');
};
script.onerror = () => {
console.error('Failed to load EfiPay script');
};
document.head.appendChild(script);
}