I've been working on a "Vue" application that serves as an order form. In the final step, when you opt to make a direct payment, you get redirected to a secure payment page which opens in a new browser tab.
const url = "/api/es/orders/" + this.functionalId
globalAxios
.put(url, payload, config)
.then(res => {
if (res.data.dev_code) {
if (this.selectedResume === "payment") {
const urlPayment = Config.PAYMENT_URL + res.data.dev_code
window.open(urlPayment, "_blank")
}
}
})
.catch(error => console.log(error))
The issue I'm facing is that this redirection works on all devices except for mobile phones. Do you know why this might be happening? Is there anything specific I need to include or change for it to work on mobile? What could I possibly be doing wrong?
Thank you everyone for taking the time to read this and offer your help!