Subscription Video On-Demand (SVOD) are supported in webcastcloud using Stripe as the payment gateway provider.
SVOD allows your viewers to subscribe to your entire video library, or a selected subscription package (limited to a channel of videos for example) and consumer as much content as they desire with the recurring subscription price.
Webcastcloud Video Subscriptions are not limited to on-demand video's only. If a live stream is setup within the subscription channel they have purchased, then they will have access to all live and on-demand videos within their subscription.
Stripe Webhooks are needed to use for handling subscriptions.
When purchasing a subscription, the workflow is pre-defined in stripe where the end user is first setup within stripe, then the subscription produce can be created for that user at time of checkout.
Pre-requisites
This article assumes you have already setup Stripe API details
Steps
To configure Video Subscription using Stripe, the following steps will walk you through how to create a Stripe Webhook.
- Under Developers >Webhooks
- Select Add Endpoint
- Add the API Endpoint for your environment, with your video channel hostname https://<your_videochannel_hostname>/api/stripe
- Click Events to Send
- Select Subscriptions from the list
- Click Select all Subscriptions Schedule events
- Select Add Events
-
Expand Customer and select these events:
-
customer.subscription.created
-
customer.subscription.updated
-
customer.subscription.deleted
-
-
Expand Invoice and select these events:
-
invoice.payment_failed
-
invoice.payment_succeeded
-
-
Expand Payment Intent, and select:
-
payment_intent.succeeded
-
-
Expand Payment Method, and select:
-
event payment_method.attached
-
-
Click Add Events
-
Your Web Hook will now look like this:
-
From Signing Secret, select Reveal
-
Copy Signing Secret for Webhook
-
In webcastcloud Admin, browse to Settings >Payment Gateway >Stripe >Webhook Secret
- Paste the Signing Secret to Webhook Secret
- Save
Considerations
- Subscriptions are more complex than single video product purchases, so therefore require their own checkout page. This means that a user can not purchase a single video and a subscription during the same transaction.
- When purchasing a subscription, the workflow is pre-defined in stripe where the user is setup first, then the product purchase can be made.