Getting the Payment ID and total on mobile

Hi.
I have a code that gets the payment.id and the total amount paid and write them to the form submission table.
this code works perfectly when I run it from a computer but fails to run when I use it on mobile devices.
attached is the code I use.

await createMyPayment(name, charge, { firstName, lastName, phone, email, countryCode })
            .then((payment) => {
                wixPay.startPayment(payment.id, { "showThankYouPage": true })
                    .then((result) => {
                        console.log(result)
                        if (result.status === "Successful") {
                            
                                wixData.query("paymentForm07")
                                    .find()
                                    .then((results) => {
                                        let id = (results.items[0]._id)
                                        wixData.get("paymentForm07", id)
                                            .then((toUpdate) => {
                                                toUpdate._id = id
                                                toUpdate.paymentTransactionId = result.transactionId
                                                toUpdate.payment = charge;
                                                wixData.update("paymentForm07", toUpdate)
                                                    .then((result) => {
                                                        console.log(result)
                                                    })
                                                    .catch((err) => {
                                                        let errorMsg = err;
                                                    })
                                                    .catch((err) => {
                                                        let errorMsg = err;
                                                    })
                                            })
                                    })

                            sendEmail(order);
                            //submitLandingorder(order);
                            clearForm();
                        } else if (result.status === "Cancelled") {
                            wixData.query("paymentForm07")
                                .find()
                                .then((results) => {
                                    let id = (results.items[0]._id)
                                    wixData.get("paymentForm07", id)
                                        .then((toUpdate) => {
                                            toUpdate.payment = "תשלום בוטל";
                                            wixData.update("paymentForm07", toUpdate)
                                                .then((result) => {})
                                                .catch((err) => {
                                                    let errorMsg = err;
                                                })
                                                .catch((err) => {
                                                    let errorMsg = err;
                                                })
                                        })
                                })
                            clearForm();
                        } else if (result.status === "Failed") {
                            wixData.query("paymentForm07")
                                .find()
                                .then((results) => {
                                    let id = (results.items[0]._id)
                                    wixData.get("paymentForm07", id)
                                        .then((toUpdate) => {
                                            toUpdate.payment = "תשלום נכשל";
                                            wixData.update("paymentForm07", toUpdate)
                                                .then((result) => {})
                                                .catch((err) => {
                                                    let errorMsg = err;
                                                })
                                                .catch((err) => {
                                                    let errorMsg = err;
                                                })
                                        })
                                })
                        }
                    })
            })

    }i can submit the form and do the payment but I'm not getting the payment.id or the charge