I’ve built a few sites using Wix Studio for my clients but I’m having a major issue with one particular site and a third party gateway i’ve integrated.
I have integrated this same gateway multiple times before without issue but alas here we are.
Basically, when payments are succcessful it comes up in the wix backend under orders as ‘payment pending’. My client is using this as a way for her clients to book her services and so when it comes up as pending, the service isn’t booked into her calendar but the client sees money is removed from their account and the gateway records to payment successfully and returns them to the thank you page. Some of the successful payments come through fine but an odd number of them come up payment pending. I have screenshots of my code that i’ll attach here if I can.
I’ve been trying to figure out what i’m doing wrong for two weeks and no luck. Now when i test, even the declined payments are showing up in orders as ‘payment pending’ even though i’ve not submitted any event using submitEvent() in the instance of a declined transaction.
Hey @thomasj, I filed a ticket with support via my partner dashboard and it amounted to naught. So I’m basically back at square one. I’ve also made a post on Discord but haven’t gotten any response either.
I’ll go ahead and try again with this link but I’m totally looking forward to your follow up response if you can provide me with any assistance. Thanks!
EDIT: I tried and the bot keeps pointing me to hiring a Wix Dev which I wouldn’t need as I’m developing the site as my client’s dev lol
Hello, I’m developing a Wix Payment Service Provider (PSP) Service Plugin and encountering an issue similar to the forum discussion:
Setup:
PSP plugin is configured and enabled in the Wix backend
createTransaction returns pluginTransactionId and redirectUrl to an external Next.js payment page
Payment flow works: customer is redirected, payment completes, and the order is created
Issue:
After payment, the order is created in Pending status, but wixPaymentProviderBackend.submitEvent() is not updating it to Paid.
Details:
submitEvent is called with:
wixTransactionId: correct transaction ID
pluginTransactionId: format {paymentHash}|{currency} (e.g., abc123|USD)
reasonCode: 5009 (Payment captured)
submitEvent returns {} (empty object) — same as BTCPayServer plugin, which works
Logs show “Successfully submitted event to Wix” but the order remains Pending
We’ve tried:
Various delays before calling submitEvent
Retry logic with progressive delays
Ensuring the order exists before submitting the event
Question:
Why might submitEvent return successfully but not update the order status? Is there a timing issue with external redirects, or are there additional requirements for the transaction object?
I can provide logs, code snippets, or additional details if needed.
Thank you.
@thomasj have you been able to solve this issue? If so can you share solution?
@Brandable have you been able to solve this issue? If so can you share solution?
(sorry to make two posts for this as new user i was not able to tag two users in one post)