Wix Pay API Failing

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 occurring on line 299 of the Comp Report page file.

Please help!

@yisrael-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.

This issue and similar cases currently under investigation by Wix. Hold on.

@admin30811 This issue should now be resolved. Let us know if it’s still not working for you. Thanks.

@marlowe-shaeffer Yes it is working now. Thank you so much! Just for awareness, what was wrong/changed?

@admin30811 I don’t know the details, but they identified the issue and rolled back the latest commit. Thanks for letting me know it’s working!

This issue is now resolved.