const options = {
auth: {
txId: container.getAttribute("txId"),
timestamp: container.getAttribute("timestamp"),
authCode: container.getAttribute("authCode"),
},
};
const iframe = new PaymentForm("#payment-form-wrapper-int", options);
iframe.run();
document.getElementById("submit")
.addEventListener("click", async (event) => {
event.preventDefault();
const token = await iframe.getToken();
}
const options = {
auth: {
txId: container.getAttribute("txId"),
timestamp: container.getAttribute("timestamp"),
authCode: container.getAttribute("authCode"),
},
};
const iframe = new PaymentForm("#payment-form-wrapper-int", options);
iframe.run();
document.getElementById("submit")
.addEventListener("click", async (event) => {
event.preventDefault();
const token = await iframe.getToken();
}