Bubble Payments: What Happens When a Webhook Arrives Twice?
Payment security includes verified events, correct customer mapping, and controlled state changes. A Bubble-to-code migration should test payment journeys beyond checkout, including duplicate notifications, retries, cancellations, and the transition between old and new receivers.
Checkout is one moment in a longer workflow
A customer pays successfully, but the product never activates their subscription. Another payment notification arrives twice, and a workflow grants the benefit again. Neither scenario requires a platform breach to cause financial and operational damage.
These illustrative cases show why payment migration should follow the complete business process: order creation, payment confirmation, entitlement, cancellation, refund, and reconciliation.
Treat payment events as controlled inputs
Stripe documents signature verification for webhook events and the need to handle duplicate deliveries. Its documentation also warns against depending on event delivery order. S13
For your migration, specify which event changes which business state. Decide how the application identifies an already-processed event and what happens when processing fails halfway through. A successful HTTP response alone does not prove the correct customer received the correct entitlement.
Customer ownership matters too. The team should be able to trace an application account to its payment-provider customer, subscriptions, and historical orders without relying on display names.
Rehearse the transition
Prepare a small set of payment journeys that reflect your business: a new subscriber, a renewal, a cancellation, and an interrupted payment. Include less visible cases that generate support work today.
Define which system is responsible for each action during cutover. If the old and new applications both receive notifications, the plan must prevent duplicate fulfillment. If the old receiver is disabled, the team must know how delayed events are handled.
Discuss billing explicitly in your Bubble to Code migration review. Ask for the state transitions and acceptance scenarios to appear in scope. The objective is a replacement application that can explain each customer’s payment state, including when an external service retries or arrives late.
A migration creates room to redesign that process. It does not make payment logic correct simply because an SDK replaces a plugin.
Review Bubble to Code’s testing commitments for billing and webhooks when defining the evidence your migration should deliver.
Practical next step: Choose a renewal, refund, and repeated event. For each, specify the resulting payment state and customer entitlement.
Frequently asked questions
- Can a successful checkout prove billing migration is complete?
- No. Entitlements, later events, cancellation, refunds, and reconciliation must also behave as intended.
Sources
- 01Stripe: Receive Stripe events in your webhook endpoint · Stripe Docs
- 02Bubble: Response to Recent Security Vulnerability Disclosure · Bubble
- 03Lucca & Pedro: pop_n_bubble research · GitHub
- 04Bubble to Code: About · Bubble to Code
Keep reading
Bubble to Code is an independent service. Not affiliated with, endorsed by, or sponsored by Bubble Group, Inc.
