I am working on a website application that essentially manages subscriptions for another platform over an API.
Users register using an API endpoint and are logged in using only their email (https://www.wix.com/velo/reference/wix-users-backend/generatesessiontoken)
They then proceed to subscribe to a plan (https://www.wix.com/velo/reference/wix-paid-plans/purchaseplan). After a successful purchase an API is called to subscribe the user on the other platform.
The issue i am having is that I can’t seem to find a way to call the API if the status of the subscription changes i.e if the subscription becomes inactive.
i am checking from https://www.wix.com/velo/reference/wix-paid-plans-backend/events.
Would appreciate any advice. Thanks
Yes, it’s not possible, you would think it would be, if you can subscribe to onplanpurchased, but I have found no other way than creating my own cancel button in the user’s account page.
https://www.wix.com/velo/requested-feature/onplancancelled-event-required-for-wix-paid-plans
Thank you for replying.
If a subsequent payment fails to go through, then plan gets cancelled and no event gets triggered.
This is a problem.
Will go ahead and vote for the feature.
Fully agree. I’ll vote too.