Docs
Skip to content

Stripe

Configure web platform_

Add paid app subscription plans to your app with Stripe and Appwrite Functions.

1 min read

Raw

Add platform

To showcase the functionality, the template ships with a demo frontend that you can use. To allow this demo, you must add Function's domain as a trusted web platform. Head to your project's Overview page in Apwrite Console, and scroll down to the Integrations section. Click the Add platform button and select Web App from the dropdown.

Add a platform
Add a platform

Set Name to Subscription demo and Hostname to your Function's domain. You can find your function's domain under the Domains tab.

Functions domain
Functions domain

Click the Next button to continue.

You don't need to follow the remaining screens, so you can click on Skip optional steps.

Update webhook endpoint

Navigate to your Stripe dashboard, under Developers, go to the Webhooks tab. Click on the webhook we added earlier, under the three-dot menu, click Update details.

Update the Endpoint URL to https://<YOUR_FUNCTION_DOMAIN>/webhook. For example, https://6579ea96aa28a5cfb66a.fra.appwrite.run/webhook

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.