Configure web platform_
Add paid app subscription plans to your app with Stripe and Appwrite Functions.
1 min read
Add platform
To showcase the functionality, the template ships with a demo frontend that you can use. To allow this demo, you must add the function's domain as a trusted web app. You can find your function's domain under the function's Domains tab.

Head to your project's Overview page in the Appwrite Console, and click Add app in the Apps section. Select Web as the platform and No framework as the web framework, then click Continue.

Set Name to Subscription demo and Hostname to your function's domain, without https://. Click Register and continue.
You don't need to follow the remaining setup instructions, so you can click Done.
Update webhook endpoint
Go back to the Webhooks tab in Stripe's Workbench and select the destination you created earlier. Click Edit destination and update its Endpoint URL to https://<YOUR_FUNCTION_DOMAIN>/webhook. For example, https://subscriptions-with-stripe.fra.appwrite.run/webhook.
The signing secret stays the same, so you don't need to change the function's variables.
Was this page helpful?
Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.