Billing Portal Integration
The Self-Serve Billing Portal allows your customers to manage their own billing information and plans directly from your application. The portal provides your customers with the ability to:
- View and change their current plan
- View their payment history and download receipts
- Securely update their payment details
- Manage their billing information
By integrating the billing portal into your application, you can provide a seamless experience for your customers and reduce the need for customer support. Additionally, by using the billing portal, you can save development time by not having to build and maintain your own billing portal.
Integrating the Wingback Self-Serve Billing Portal
1. Create a Billing Portal Endpoint in your application
Add an endpoint to your application through which your customer will access their billing portal. Link to it to your settings page.
2. Validate that the customer is logged in and create a redirect URL (Backend)
Before redirecting the user to the billing portal, you’ll need to validate that the user is logged in to your application. This can be done by checking for a valid session or checking against your user database. Once you’ve confirmed that the user is logged in, you’ll need to create a redirect URL for the user to access the billing portal using the Authenticate endpoint. This can be done by setting the Location
header to the redirect URL and returning a 302
status code.
That’s it! Your user will now have access to their billing portal.