ReactJS frontend + headless Wordpress with s2member?

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:

  1. Handle the initial payment form aspect (does s2member use the Stripe webhook for the initial sale or only subsequent subscription charges?)

  2. 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?