Microapp subscriptions for any web app.
sandbox
feature on the Payments
class to return mocked subscriptions:
sandbox
prop should only be used for local development. Do not use it in production.hasSubscription
method returns the user’s subscription status: true
if subscribed and false
otherwise.
getSubscription
method returns the user’s subscription information.
requireSubscription
method.
onUserSubscribed
method.