Subscriptions

Implement flexible subscription payments, all on-chain

StreamPayments enables simple and flexible subscription payments in any Solana currency for StreamFinance - BaaS (Blockchain-As-A-Service), digital content, Discord access, utilities, and more. We offer no-code checkout experiences and powerful APIs & developer tools to help projects build subscription payments into their apps and paywalls.

Example of a monthly subscription payment

Set up your subscription

  • Log in to the StreamPayments dashboard. Click Create Payment --> Pay Stream

  • Add a Name and a description of your product or service, then click next

  • Set the duration (e.g. months) --> set the currency and price (e.g. 1 SOL) --> and set the maximum duration, which should be your default subscription period (e.g. 12 for a 12 months subscription period). Click next

  • In the Advanced options, you can select to receive customer details, limit total sales, NFT-gated access, and email notifications.

  • Save the Pay Stream and share the checkout link

  • When users pay for the subscription (e.g. 1 SOL/month for 12 months), they pre-approve the total amount (e.g. 12 SOL), which is held in a StreamPay smart contract account.

  • At the start of every period (e.g. month), 1 SOL is automatically withdrawn to the merchant's wallet. The user can stop the stream at any time by logging in to the StreamPay Dashboard to cancel the subscription and will receive the remaining amount back into their wallet

  • Monthly top-up. This requires the user to "sign" a top-up transaction with their wallet to extend the subscription.

  • Use StreamPayments Web Payments API and Webhooks to build & integrate Stream subscription payments into your app and paywalls

The pre-approved amount of the Subscription is held in a StreamPayments smart contract account. At the start of each period, the relevant amount settles automatically into your wallet and there's no need for manual withdrawals.

Set up a subscription payment (step-by-step screens)

If you'd like to set up a subscription for your Discord server please learn more in the Next article.

Last updated