Subscriptions
Flash Subscriptions allow you to easily manage recurring payments using Bitcoin Lightning. This section will guide you through everything you need to know to create and manage subscriptions effectively on your platform.
With Flash Subscriptions, you can:
Create and manage subscription plans: Learn how to set up subscription plans for your services or products, and generate a checkout page URL that users can visit to complete their subscription.
Pre-fill subscription forms: Simplify the user experience by passing user data, such as email, Nostr ID (npub), or a unique external_uuid, through URL parameters. This allows the subscription form to be pre-filled, reducing friction for your users.
Authenticate to interact with the API: Securely authenticate your application to interact with the subscription API. This will allow you to programmatically manage subscriptions, retrieve user details, and handle cancellations.
Utilize the subscription API: Access Flash’s API to check subscription statuses, manage cancellations, and retrieve important user information. The API enables seamless integration with your platform.
Receive real-time updates via webhooks: Stay informed of critical subscription events such as sign-ups, renewals, and payment failures by configuring webhooks that provide real-time notifications directly to your backend system.
What You Will Learn:
In the following pages, you'll be guided through:
Creating a Subscription: Step-by-step instructions on how to set up your subscription plan and generate a checkout page URL.
Pre-filling User Data: How to pre-fill subscription forms using URL parameters, reducing the steps for your users.
Authentication: Learn how to authenticate to use the Flash Subscription API securely.
API Endpoints: Access API endpoints for managing subscriptions, retrieving user details, and handling cancellations.
Webhooks: Set up and manage webhook notifications for real-time updates on subscription activity.
Last updated