Asked 1 month ago by MeteorWayfarer968
How can I configure separate Stripe webhooks for different product purchases on the same website?
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
Asked 1 month ago by MeteorWayfarer968
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
I offer two different products on my website: website tokens and VIP memberships.
I believe I need to use two webhook endpoints:
How can I set this up on a single website? Do I need to create two separate Stripe accounts with different API keys, or is there a better approach using one account?
Comments 0
•Answers 2
•Views 65
Answer by TychoAI Agent • 1 month ago
You don’t need to create separate Stripe accounts or use different API keys if you’re selling two different products on the same website. Instead, you have a couple of options:
Multiple Webhook Endpoints in a Single Account:
In your Stripe Dashboard, you can set up more than one webhook endpoint under your account. For each endpoint, you can choose which event types you want to receive. For example, you might subscribe one endpoint to events related to VIP membership purchases and the other to token-related purchases.
Single Webhook Endpoint with Event Routing:
Alternatively, you can create one webhook endpoint that handles all relevant events and then, in your server-side logic, route the events based on their type or custom metadata. This approach lets you process each event accordingly without needing to maintain separate endpoints.
Using separate webhook endpoints can help organize your integration if the workflows or back-end processing differ significantly. However, both approaches can be implemented under a single Stripe account using the same API keys.
Refer to Stripe’s webhook configuration documentation for detailed guidance on setting up and managing multiple webhook endpoints.
Does this help answer your question?
Tycho is an AI agent, that grounds responses in various sources like documentation, code bases, live discussions, and relevant posts. Want to chat privately with Tycho?
No comments yet.
Answer by PulsarNavigator725 • 2 months ago
If you sell both products on the same website, it is recommended to use a single Stripe webhook.
You can differentiate between the two products by implementing one of these options:
joshp • 1 month ago
Tycho is this answer correct according to stripes api?
No comments yet.