Good afternoon,
This morning out of nowhere, the WixPay API stopped working as expected. I have not made any changes to the code in months, but for some reason the .then result is not firing after calling "startPayment". Please see below:
wixPay.startPayment(payment.id, {
"showThankYouPage": false
})
.then((payment_result) => {
if (payment_result.status === "Successful"){
//Do a thing
}
else if (payment_result.status !== "Cancelled"){
//Show Error
}
})
Instead, after a payment, the WixPay is showing the default thank you page, which I have specified for it not to do. The only console error does show a related issue within the paymentsSDKFactory.ts code.
My investigation is showing that the promise resolution of the payment modal is breaking, which is why there is no .then handler.
This is triggered on line 299 of the Comp Report page file.
Please help!
This issue is now resolved. Thanks for reporting.
May I know how was this resolved? I'm encountering the same issue. It seems that result statuses are not being returned so I can't show my lightbox upon successful payment.
@Marlowe (Wix) I know you've helped our site previously, could you possibly direct me to the right place? This is causing a huge issue on our site right now.