We’re considering creating a ReactJS frontend but still continue using s2member to power the membership side of things. Has anyone done this using the s2member API?
In particular, I’m curious how to:
-
Handle the initial payment form aspect (does s2member use the Stripe webhook for the initial sale or only subsequent subscription charges?)
-
Custom capabilities and user roles, and protecting various routes on a React frontend. Since we can no longer rely on the Wordpress dashboard to set protection levels for pages, how can we query these roles using the s2member API?