Change payment status using code

Hello,

I’ve created a payment handler Website cause the local payment isn’t supported at wix and I’m sending the link to the user by email…

Now when a successful pavement is made the user redirected to wix thanks page with prams { myWixWebsite.com /thanks?pay=success& orderId =15 }

How to use the Order ID Parameter to change payment status to “paid”.

2 Likes

When you mention local payments, do you actually mean manual/offline payments like cash etc?

As currently Wix Paid Plans does not support offline payments like that and they have to be marked as paid manually in Wix Stores for example.

See here for more info.
https://www.wix.com/corvid/reference/wix-paid-plans.html#PurchaseResult
Payment status in Wix Pay. One of:

  • “Successful”: Payment was successfully received.

  • “Pending”: Payment is pending payment provider approval.

  • “Failed”: Payment has failed.

  • “Chargeback”: Payment is chargeback.

  • “Refunded”: Payment was fully refunded.

  • “Offline”: Payment will be executed offline.

  • “PartiallyRefunded”: Payment was partially refunded.

  • “Cancelled”: Payment was cancelled and was not processed.

  • “Undefined”: Payment status is pending payment provider input.

https://support.wix.com/en/article/request-collect-manual-offline-payment-for-paid-plans
https://support.wix.com/en/article/manually-marking-a-store-order-as-paid

Wix API Reference for Thank You page.
https://www.wix.com/corvid/reference/$w.ThankYouPage.html

2 Likes

Yes I’m using Manual Payment…
Here is my Q again How to change the payment status of an order using the Order ID in code?
could you provide code?

1 Like

@ibrhajjaj This cannot be done via vode. If you are using Wix Stores (which i assume you are, since you did not specify in your question), you must manually mark the order as paid via the steps Wix provides you in the link @givemeawhisky shared above.

1 Like

@code-queen Thanks Queen

Is Wix planning to add this support? Because it looks like you’re deliberately trying to put users at a disadvantage by doing this. In India we only have two payment options, Credit/Debit card and Paypal. With manual payments we can theoretically send a payment link to the customer via email and then when it’s paid that event can be used to mark the order as paid on Wix Stores. Is this not allowed?

1 Like

I have the exact issue here in Guatemala, Central America. We currently can only accept PayPal (but can’t withdraw the money), and we don’t have a Wix/PaymentProvider to accept Credit Cards (at least not one that accepts my educational business); so I use a Payment Link in my site, where after a successful payment, it’s redirected to a “thank you” page with some parameters. In that page, I’m able to validate the purchase, and I would be willing to assign a Priced Plan (price>0) without prompting a payment window. Unfortunately that’s what wixPaidPlans.purchasePlan() does for a priced plan: it prompts a window for payment. If the plan is Free, it does what I need to do with a priced plan: Just Assign it to the customer.

I could solve this, by making all these plans at Zero Cost (handling the price on an independent table or database), but that would send a confirmation email (automation) with a US$0 price, and also an Invoice (automation) with US$0 value. Also, the problem here would be to always hide these plans, because if they proceed with PayPal method, it would be FREE instead of priced.

I’m needing a wixPaidPlans API or function somehow called: “AssignPlan” overriding any payment request, in order to process an “offline payment” already done (e.g. submitted in another site.)

Any suggestions?

Has there been any change in this as we are now wanting to accept Crypto stable coin payments.