Pay API issue - invalid response status

Hello WIX team,

I started integration of WIX-pay API and received:
“Error: WixPayBackend.createPayment: can’t create payment, details:
invalid response status” error.

Code I used was copied from WIXcode API:

/**************************
 * backend code - pay.jsw *
 **************************/

import wixPay from 'wix-pay-backend';

export function createMyPayment() {
  return wixPay.createPayment({
    items: [{
      name: "Product Name",
      price: 9.99
    }],
    amount: 9.99
  });
}

/********************
 * client-side code *
 ********************/

import {createMyPayment} from 'backend/pay';
import wixPay from 'wix-pay';

export function myButton_click(event, $w) {
  createMyPayment()
    .then( (payment) => {
      wixPay.startPayment(payment.id);
    } );
}

What can be the reason for this response?

1 Like

I observed the same while trying to use API examples.
Is there any know issue with payment APIs?

Thanks

1 Like

I’m currently having the exact same issue when trying to call the createPayment function. It worked perfectly until this morning, when it suddenly stopped working and started returning errors:
“WixPayBackend.createPayment: invalid response status”
or
“WixPayBackend.createPayment: can’t create payment, details:\ninvalid response status”
I’m wondering what could have changed so suddenly on the backend side to break everything like this.
I am currently in a situation where I cannot charge my online customers anymore.

Could anyone help with that ?

1 Like

https://www.wix.com/velo/forum/coding-with-velo/why-am-i-getting-a-bind-error-from-my-back-end-code

1 Like

@annouira We are getting the same error message on our site. No changes made, started sometime in the last few hours.

1 Like

@admin30811 I hope it doesn’t have too much impact on your side. On my side, I’m really being unlukcy. I implemented the payment yesterday, got 2 succesful payments with it, and then this morning it started to fail. Just after I massively advertised my new online payment solution :frowning:
I really hope Wix team is working hard on find a fix for that ASAP.
I would have expected the status page to show this incident in some way though: https://status.wix.com/

@annouira
I ask myself, why the Wix-Status page is not included in the Velo-Menu-Bar?
https://status.wix.com/


Also → UPDATES ← is missing. As i can remember, there was a menu-option, called → UPDATES, or am i wrong?

1 Like

@annouira This has massive impact for us unfortunately. Our payments have been working (for the most part) since June 2020. Fingers crossed they solve this in the next few hours. We had payment issues in September, they fixed it within 24 hours

1 Like

@russian-dima Great suggestion! I’ll see if we can get it added.
In the meantime, the Status page has been updated.

2 Likes

@marlowe-shaeffer
Thanks would be great! Everyone would immediately know about ISSUES (on Wix side), if there are some, at current moment. This would avoid a big amount of confused users.
And this also would avoid → broken CODES (when users are trying to fix it → although the CODES were just fine).

1 Like

@admin30811 @annouira The issues with pay-backend should now be resolved. Let us know if you’re still seeing any errors.
Thanks for your patience!

2 Likes

@marlowe-shaeffer I can confirm it works on my end. Thank you for the update.

2 Likes

I want replace original booking form to my custom form is it possible? if it is possible then how?