Scheduled payments and subscription management
NOT_STARTED
- Collection created, awaiting consentACTIVE
- Collection consented and activePAUSED
- Collection temporarily pausedCOMPLETED
- All scheduled payments completedCANCELLED
- Collection cancelledEvent Description | Web | React Native | Flutter |
---|---|---|---|
Collection consent successful | Not yet documented | Success callback in useCollections | Success callback in createCollection() |
Collection consent failed | Not yet documented | Error callback in useCollections | Error callback in createCollection() |
Initialize consent flow | Not yet documented | initiate(accessRequestId) | collectionsConsent() |
Operation in progress | Not yet documented | loading boolean | SDK state streams |
User authenticated | Not yet documented | - | AuthState.loggedIn |
useCollections()
- Main hook for collection managementloading
- Boolean indicating if operation is in progresserror
- Error object if operation failsauthStateStream
- Monitor user authentication statussdkStateStream
- Monitor overall SDK state