Stripe Integration Guide · Bubble.io Step-by-Step

Bubble.io Stripe Integration: The Step-by-Step Guide to Accepting Payments

One-time payments, recurring subscriptions, the Customer Portal, and webhooks — every Stripe scenario in Bubble with every API call shown. The most complete Bubble + Stripe guide available.

4Stripe Scenarios
WebhooksThe Critical Part
CLI TestingBefore Going Live
⏱ 12 min read · Bubble.io · Updated 2026

Stripe + Bubble: The Most Searched Integration in No-Code

Integrating Stripe with Bubble.io is the most-searched technical topic in the no-code world — because charging money is the moment an app becomes a business. This guide covers every Stripe integration scenario in Bubble: one-time payments, recurring subscriptions, Stripe Connect for marketplaces, and the Customer Portal for self-serve billing management. Step by step, with every API call shown.

Setting Up the Stripe API Connector

1
Install API Connector and configure Stripe
// Plugins → API Connector → Add another API → Stripe
Authentication: Private key in header
Key: Authorization
Value: Bearer sk_live_XXXXX (mark as private)

// Use sk_test_XXXXX during development
// Switch to sk_live_XXXXX before going live
// Never expose your secret key to the browser

2
Scenario A: One-Time Payment (Stripe Checkout)
POST https://api.stripe.com/v1/checkout/sessions
mode = “payment”
line_items[0].price = “price_XXXXX” (your Stripe Price ID)
line_items[0].quantity = 1
success_url = “https://yourapp.com/success?session={CHECKOUT_SESSION_ID}”
cancel_url = “https://yourapp.com/pricing”
customer_email = Current User’s email
// Response: url → navigate user to response’s url
3
Scenario B: Recurring Subscription
POST https://api.stripe.com/v1/checkout/sessions
mode = “subscription”
customer = Workspace’s stripe_customer_id
line_items[0].price = Plan’s stripe_price_id
subscription_data.metadata[workspace_id] = Workspace’s Unique ID
subscription_data.trial_period_days = Plan’s trial_days
success_url = “https://yourapp.com/billing/success”
// NEVER trust success_url to activate subscription
// Only webhooks are authoritative for billing state
4
Scenario C: Stripe Customer Portal (self-serve billing)
POST https://api.stripe.com/v1/billing_portal/sessions
customer = Workspace’s stripe_customer_id
return_url = “https://yourapp.com/billing”
// Navigate user to response’s url
// Customer can: update card, view invoices, change plan, cancel
// No custom UI to build — Stripe hosts the portal

Handling Stripe Webhooks in Bubble

// 1. Create a Bubble Backend API Workflow (no trigger, as endpoint)
// URL will be: https://yourapp.bubbleapps.io/api/1.1/wf/stripe_webhook

// 2. In Stripe Dashboard → Developers → Webhooks → Add endpoint
// Paste your Bubble workflow URL
// Select events: checkout.session.completed, customer.subscription.updated,
// customer.subscription.deleted, invoice.payment_failed,
// invoice.payment_succeeded, customer.subscription.trial_will_end

// 3. Webhook handler workflow (Step 1)
Extract workspace_id:
Trigger data’s object’s metadata’s workspace_id
Find Workspace:
Search for Workspaces [Unique ID = workspace_id] :first item
Update Workspace based on event type:
checkout.session.completed → subscription_status = Active
invoice.payment_failed → subscription_status = Past Due
subscription.deleted → subscription_status = Cancelled

Test Webhooks With Stripe CLI Before Going Live

Install the Stripe CLI and run stripe listen –forward-to [your Bubble webhook URL] to forward test events to your development app. Then trigger events with stripe trigger checkout.session.completed. Testing webhooks locally prevents billing bugs from reaching production customers.

Ready to Build Your App on Bubble?

Architecture review, data model design, Stripe billing, and full builds — done right from day one by Pakistan’s leading Bubble.io team.

Book a Free Discovery Call →View Our Work

Simple Automation Solutions

Business Process Automation, Technology Consulting for Businesses, IT Solutions for Digital Transformation and Enterprise System Modernization, Web Applications Development, Mobile Applications Development, MVP Development

Copyright © 2026