Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.84 KB

flows.md

File metadata and controls

27 lines (20 loc) · 1.84 KB

SwG Subscriptions Flows

The Subscriptions APIs use cases be summarized in a few flows:

  1. Entitlements flow. This flow would notify the publication site when SwG believes that the reader is entitled to read the content, e.g. due to a previously purchased subscription.
  2. Subscribe flow. This flow shows the payment form, accepts payment, records subscription and updates the reader's entitlements.
  3. Deferred account creation flow. This flow allows the publisher site to continue account creation process for deferred subscriptions - subscriptions that the publisher doesn't have related account information/consent on their side. These kind of subscriptions could be created on other partner platforms.
  4. Offers flow. This flow allows the publication site to display numerous flow to purchase the subscription.
  5. Link flow. This flow is normally originated from another surface and allows the reader to link this publication's subscription to that surface.

Besides the actual flow APIs SwG also provides general flow callbacks, which could be used for analytics. These callbacks include setOnFlowStarted and setOnFlowCanceled.