Wasm Functions
Stripe Billing Portal
Create secure billing portals for customers using Stripe’s billing infrastructure, powered by edge functions.
Find it on GitHub: /edgee-cloud/stripe-billing-portal-component
A WebAssembly component that integrates Stripe’s Billing Portal directly at the edge. This component provides easy redirection to Stripe’s Customer Portal, allowing customers to manage their subscriptions, payment methods, and billing information.
Features
- Stripe Billing Portal Integration: Direct integration with Stripe’s Customer Portal
- Simple Redirection: Easy GET and POST endpoints for portal access
- Edge Performance: Fast portal URL generation at the edge
- Flexible Configuration: Support for custom return URLs
- WebAssembly Performance: Secure, fast execution in a sandboxed environment
- Customer Management: Handle customer portal sessions efficiently
Getting Started
To integrate Stripe Billing Portal with your project:
- Set up a Stripe account and obtain your API key
- Open the Edgee console and navigate to your project’s Components
- Select “Add a component” and choose
edgee/stripe-billing-portal
from the list of available edge functions - Configure the following settings:
- API Key: Your Stripe API secret key
- Return URL: Default return URL after portal sessions (optional)
- Path Configuration: Set the billing portal endpoint path (e.g.,
/stripe
)
- Click Save to activate the billing portal endpoint
Usage
Once configured, you can redirect customers to the Stripe Billing Portal using two methods: