Canvas Pages and Modules
3.0.0
3.0.0
  • Welcome
  • PAGES
    • Page Flair Group
    • Free Bubble Marketing Page
    • Premium Bubble Marketing Page
    • Centered Profile Page
    • Left-Justified Profile Page
    • Standard Page
    • Toggle Tabs Page
    • Menu Page
    • Mobile Menu Page
    • Video List Page
    • Standard Portal / Dashboard Page
    • Simple Portal / Dashboard Page with Icons
    • Double Sidebar Portal Page Template
    • Search Page
    • Map Search Page with Toggle and Filters
    • Floating Map Search Page
    • Search Bar Page
    • Multi-Step Page With Progress Bar
    • Standard Multi-Step Process Page
    • Multi-Step Process Page with Sidebar
    • Gallery Profile or Product Page
    • Sidebar Profile Page
    • 2-Column Menu Tabs Page
    • 2-Column Checkout Page
    • 2-Column Video Chat Page
    • Vertical Multi-Step Page Template
  • BLOCKS
    • Monthly Calendar Scheduling Widget
    • No Reply Comments Thread
    • Nested Comments Thread (with Like and Reply)
    • Placeholder Group
    • List with Circular Progress Bar Repeating Group
    • Top Input Chat Widget
    • Bottom Input Chat Widget
    • Toggle Tabs Group
    • Single-Select or Multi-Select Pill Tabs Group
    • To-Do List Repeating Group
    • Title Group with Button and Filters
    • Product Details Group With Progress Bar
    • Listing details with Icons and Menu Focus Group
    • Week Daily Availability Group
    • Frequently Asked Questions (FAQ) Repeating Group
    • Dismissible Module
    • Video Group
    • About Group
    • Add to Cart Group
    • Full Width Map with Directions Link
    • Location Module (Map and Directions)
    • Drag and Drop Repeating Group
    • Advanced Form Inputs Group
    • Reviews Repeating Group with User Images
    • Reviews (Text Only) Repeating Group
    • Nested Repeating Group
    • Standard Repeating Group with Image
    • Search Bar Group
    • Listing Details Group
    • Post Group with Upvoting UI
    • Large Chart Dashboard Widget
    • Chart With Key Metrics Dashboard Widget
    • Main Image with Thumbnails
    • Centered Profile Block
    • Left-justified Profile Block
    • Tile Image Gallery and Popup
    • Image Feed with Nested Comments Thread
    • 1-Column Standard Form Inputs Group
    • 2-Column Repeating Group (Text, Link, Image, and Description)
    • 2-Column Repeating Group (Link, Text, and Button)
    • 2-Column Repeating Group with Actions
    • 2-Column Grid Tiles Repeating Group
    • 2-Column Form Group
    • 2-Column Sortable List Repeating Group (With Image, Link, Star Rating, and Text)
    • 2-Column Table and Key Metrics Dashboard Widgets
    • 2-Column Progress Bar Chart Dashboard Widgets
    • 2-Column Chart and Key Metrics Dashboard Widgets
    • 2-Column Large Metrics Dashboard Widgets
    • 3-Column Large Metrics Dashboard Widgets
    • 3-Column Dashboard Widgets
    • 3-Column Repeating Group (Text, Link, Image, and Description)
    • 3-Column Text and Link Repeating Group
    • 3-Column Icons with Labels Repeating Group
    • 3-Column Grid Tiles Repeating Group
    • 3-Column Mini Grid Tiles Repeating Group
    • 3-Column Tiles with Buttons Repeating Group
    • 3-Column Horizontal Scroll Repeating Group
    • 4-Column Dashboard Widgets
    • 4-Column Large Metrics Dashboard Widgets
    • 4-Column Tiles Repeating Group
    • 4-Column Icon Tiles Repeating Group
    • 4-Column Profile Tiles Repeating Group
    • Standard Data Table
    • Mobile-Friendly Data Table
    • Standard Horizontal Scroll Data Table
    • Infinite Columns Horizontal Scroll Data Table
    • Infinite Columns Horizontal Scroll Data Table with Fixed First Column
  • Popups
    • Confirmation Popup
    • Message Popup
    • Image Popup
    • Video Popup
    • Vertical Scroll Popup
    • Edit Popup
    • Standard Form Popup
    • Subscribe Popup
    • Feedback / Contact Popup
    • Details Popup
    • Add List Popup
    • Advanced Form Popup
    • Rating Popup
    • Toggle Tabs Popup
    • Share Popup
    • Multi-Step Popup
    • Invoice Popup
    • Stripe Credit Card Purchase Popup
    • View Profile Popup
    • Send Message Popup
    • Multi-Select Pill Tabs Popup
    • Pricing Plans Popup
  • Reusables
    • filters_template
    • menufocus_template or Menu options (︙)
Powered by GitBook
On this page
  • Overview
  • Set up Stripe
  • Structure
  • How to set up
  • Testing

Was this helpful?

  1. Popups

Stripe Credit Card Purchase Popup

PreviousInvoice PopupNextView Profile Popup

Last updated 4 years ago

Was this helpful?

Overview

This popup includes a standard UI for purchasing something with a credit card. A user can add a credit card, remove an existing credit on file, and click a button to confirm purchase. Please ensure that you have installed the Stripe plugin by Bubble (Bubble editor > Plugins tab > Add plugins > Add Stripe plugin) to your app.

Set up Stripe

To enable Stripe on your platform:

  • Enable Stripe Connect from the Connect tab

    • From the Settings tab, add the following redirect URI: https://bubble.is/poststripeauth

    • From the same tab, enter your branding details

  • Add API keys to Bubble app

    • From the Stripe dashboard, go to Developers > API keys

    • Grab the Publishable key and the Secret key from the Standard keys section

    • In your Bubble app editor, go to Plugins and find Stripe. Add your API keys to Live Publishable Key and Live Secret Key inputs

    • Go back to your Stripe dashboard, from the same API keys section, toggle View test data. Grab the Publishable/Secret keys and add them to the same Stripe plugin

    • Lastly, return to the Bubble app editor, go to Plugins and find Stripe (for Canvas templates). Add your Live and Development Secret keys to the Authorization (shared headers) and Authorization (shared headers) - dev. Inputs. Your values should follow this format: Bearer sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

  • Add client IDs to Bubble app

    • From your Stripe dashboard, go to Settings > Connect Settings

    • Grab the Live mode client ID as well as the Test mode client ID (by toggling Viewing test datain the top right corner)

    • Go back to the Stripe plugin in your Bubble app and add both these IDs

  • From the Stripe plugin, update the Stripe Checkout Image and Name with your own branding

Structure

The popup includes the following:

  • A title

  • A multiline text for more information

  • Button Change to add or update a credit card

  • Button Remove to remove a saved credit card

  • Group Close (purchase), Button Cancel, and Button Subscribe will close the popup

How to set up

  • Update the title, button, and multiline text copy

  • Add a workflow to Button Subscribe

  • Add a workflow on the page to show Popup purchasePopup

Testing

In development (version-test of your app), you can test your stripe purchase flow by using 4242 4242 4242 4242 as the credit card number, any future expiration date, and 123 as the security code.

Go to and create an account. You must officially activate the account before using payments in live mode

Stripe