Customers on my site are able to subscribe via Stripe. However, Stripe has the following code in their documentation to cancel a subscription. Any ideas as to how to get cancel subscription to work on a wix website?
https://support.wix.com/en/article/corvid-managing-external-code-libraries-with-the-package-manager
You then want the ES module style import.
Well I’m pretty excited to try this out. Thank you!
If you simply search the forum itself for Stripe, you will find many previous forum posts about it which would have helped you too.
Wix also has a Stripe example from 2018 here,
https://www.wix.com/corvid/forum/community-discussion/example-stripe-payment-processing
However, using the Stripe nodeJS from Wix Package Manager would be an easier option for you.
Although please note that the latest version for Stripe nodeJS is 8.12.0, whereas the Wix version is 6.14.0 as shown in the picture.
Which if you look through the versions, you will see that this version is about a year old now, so take note that you may not be able to do everything that is listed in the Stripe documents as some features might only be available for later versions of this nodeJS, or in some cases some options might have been deprecated.
However you can put in another request for it to be updated to the latest version.
https://support.wix.com/en/article/corvid-managing-external-code-libraries-with-the-package-manager#requesting-a-package912
@givemeawhisky I hope they update the Stripe NPM. Wonder why its left a year old
@shantanukumar847
Yes it would be great if they could keep them all up to date with the latest releases, or at least the latest version that works within Wix.
Does seem a bit silly to have it accepted and added to Wix and then to leave it on that current version and not update it, especially when some of them are now over a year old like Stripe.
We shouldn’t really have to add a request for a update for any that have been added already, however at the moment that they get accepted and that is it for it and it just gets left until somebody requests an update like maybe with Stripe here etc.
Especially when a good few of them will make certain functions redundant or add new functions that will only work with latest version, we can’t really expect users to have to work with outdated versions can we?!