50% of payments fail in Wix Pay

Hi, We use Wix Pay for wholesale orders. We have a system on the website where an e-mail is sent to the user when a backend payment update event happens, and the status is also saved in a table.

It turns out that, for an unknown reason, about 50% of payments fail in recent months. Looking at August, September and October 2020 there are 5 successful payments and 6 failed ones. In July I had no failed ones and 6 successful ones, but 5 of those were test payments which I made myself.

There are basically 3 different kinds of effects

  1. Some users always get a failed payment when they try to place an order. However when we then send them an invoice with payment link, also from Wix, they are successful

  2. Some users are successful the first time

  3. Some get both a failed and a successful payment event (and email), which means they were successful but they also had a failed attempt?

I would like to understand this better what is happening here and adjust the javascript accordingly. Hope someone can help with this.