# WixPay API Failing

**URL:** <https://forum.wixstudio.com/t/wixpay-api-failing/7940>\
**Category:** Ask the community\
**Created:** [September 26, 2021, 10:38pm UTC](https://forum.wixstudio.com/t/wixpay-api-failing/7940 "2021-09-26T22:38:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![admin30811](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/admin30811/32/9049_2.png) [@admin30811](https://forum.wixstudio.com/u/admin30811)\
**Post date:** [September 26, 2021, 10:38pm UTC](https://forum.wixstudio.com/t/wixpay-api-failing/7940/1 "2021-09-26T22:38:41Z")

</div>

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:

```javascript
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.

![](https://us1.discourse-cdn.com/wix/original/3X/4/3/432111adbe7046f1002ce66121283edb829af62b.png)

My investigation is showing that the promise resolution of the payment modal is breaking, which is why there is no .then handler.

 ![](https://us1.discourse-cdn.com/wix/original/3X/5/5/55f1ccf951f1ba805af64922d8de70fcbf216aa0.png)

This is triggered on line 299 of the Comp Report page file.

Please help!

---

<div class="post-metadata">

**Author:** ![admin30811](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/admin30811/32/9049_2.png) [@admin30811](https://forum.wixstudio.com/u/admin30811)\
**Post date:** [September 26, 2021, 11:22pm UTC](https://forum.wixstudio.com/t/wixpay-api-failing/7940/2 "2021-09-26T23:22:12Z")

</div>

@marlowe-shaeffer 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.

---

<div class="post-metadata">

**Author:** ![marlowe-shaeffer](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/marlowe-shaeffer/32/669_2.png) [@marlowe-shaeffer](https://forum.wixstudio.com/u/marlowe-shaeffer)\
**Post date:** [September 27, 2021, 3:25pm UTC](https://forum.wixstudio.com/t/wixpay-api-failing/7940/3 "2021-09-27T15:25:55Z")

</div>

I’ve escalated this internally, and someone should either respond to your ticket or contact you via email. Thanks.

---

<div class="post-metadata">

**Author:** ![admin30811](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/admin30811/32/9049_2.png) [@admin30811](https://forum.wixstudio.com/u/admin30811)\
**Post date:** [September 27, 2021, 3:49pm UTC](https://forum.wixstudio.com/t/wixpay-api-failing/7940/4 "2021-09-27T15:49:31Z")

</div>

Hey @marlowe-shaeffer . Someone emailed me a few minutes ago to say that they are escalating the “showThankYouPage: False” not working. This isn’t really the issue here (it isn’t working, but is not the primary problem). The PaymentResult is not being returned after the startPayment method completes, so I can’t act on the payment results. Once the payment goes through, no event is being fired, and the “.then” block of the “startPayment” is not running at all.

---

<div class="post-metadata">

**Author:** ![marlowe-shaeffer](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/marlowe-shaeffer/32/669_2.png) [@marlowe-shaeffer](https://forum.wixstudio.com/u/marlowe-shaeffer)\
**Post date:** [September 27, 2021, 6:49pm UTC](https://forum.wixstudio.com/t/wixpay-api-failing/7940/5 "2021-09-27T18:49:43Z")

</div>

This issue is now resolved. Thanks for reporting.

---

<div class="post-metadata">

**Author:** ![Joma\_Semilla](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/joma_semilla/32/35143_2.png) [@Joma\_Semilla](https://forum.wixstudio.com/u/Joma_Semilla)\
**Post date:** [October 8, 2022, 11:48pm UTC](https://forum.wixstudio.com/t/wixpay-api-failing/7940/6 "2022-10-08T23:48:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![user561](https://avatars.discourse-cdn.com/v4/letter/u/e47c2d/32.png) [@user561](https://forum.wixstudio.com/u/user561)\
**Post date:** [October 6, 2023, 4:03am UTC](https://forum.wixstudio.com/t/wixpay-api-failing/7940/7 "2023-10-06T04:03:23Z")

</div>

Hi, this issue is still NOT resolved. “showThankYouPage: false” does not work and payment result status is not returned.
