Microapp subscriptions for React apps.
SubscriptionProvider
component:
sandbox
feature on the SubscriptionProvider
component to return mocked subscriptions:
sandbox
prop should only be used for local development. Do not use it in
production.useSubscription
HookuseSubscription
hook returns all of the payments data and methods available to your microapp. It returns the following type:
requireSubscription
method.
useSubscription
hook in your microapp: