I have two payment portals set up
- a custom order form
- wix plans with one off payment
Both of these have been made with code, and they work well. I just wonder how to generate automatic invoices through the wix system. I know that there is a wix-billing API. But are there any code examples on how to combine the two, and how to deal with pending payments that complete later?
Thanks, Michiel
Hello There! I am building this workflow and I am happy to say I got the system to successfully create the invoices with all the correct data. However, I have a BIG problem at the very end of the chain: When trying to use the createInvoicePreviewUrl( ) or sendInvoice( ) I get an error.
The interesting part is: When I login with admin credentials it works like a charm. Are those 2 functions's behaviour intended to work this way?? this makes it imposible to send customers the created invoices, which make the whole idea of an API pointless. Does anybody has tried to do this??
I never saw examples on it or articles other than this section:
https://support.wix.com/en/corvid-by-wix/wix-billing-with-corvid
and this api:
https://www.wix.com/corvid/reference/wix-billing-backend.invoices.html
You can also browse forum to look for posts on the similar matter that can be helpful and give you an idea on how to implement it:
https://www.wix.com/corvid/forum/search/invoices
You can share your experience here on the Forum if you implement a whole invoices system using Corvid so people can follow it in the future :)