Canvas Pages and Modules
1.0.0
1.0.0
  • Welcome
  • PAGES
    • Profile Page
    • Standard Page
    • Toggle Tabs Page
    • Mobile Menu Page
    • Video List Page
    • Portal/Dashboard Page
    • Search Page
    • Search Bar Page
    • Listing Profile Page
    • 1-Column Multi-Step Process Page
    • 2-Column Multi-Step Process Page
    • 2-Column Profile Page
  • MODULES
    • Comments Thread
    • Nested Comments Thread (with Like and Reply)
    • Chat Widget
    • Week Daily Availability
    • Video Group
    • Drag and Drop Repeating Group
    • Reviews Repeating Group with Image
    • Reviews (Text Only) Repeating Group
    • Accept/Decline Repeating Group
    • Nested Repeating Group
    • Standard Repeating Group with Image
    • Standard Repeating Group with Image and Add Button Repeating Group
    • Expandable Input Forms Repeating Group
    • Expandable Group (with Button, Link, and Section Header) Repeating Group
    • Expandable Group (Text Only) Repeating Group
    • Single Input Search Bar and Filter Group
    • 1-Column Standard Form Inputs Group
    • 1-Column Instagram Tiles Group
    • 1-Column Link, Text, and Menu Focus Repeating Group
    • 1-Column Title Text, Link, and Body Text Repeating Group
    • 2-Column Title Link and Text Repeating Group
    • 2-Column Simple Form Inputs Group
    • 2-Column Sortable List (Image, Link, Star Rating, and Text) Repeating Group
    • 3-Column Text and Link Repeating Group
    • 3-Column Horizontal Scroll Repeating Group
    • 4-Column Data Table with Title
    • 4-Column Date Table with Cell Selection, Menu Focus Group, and Filters
    • 4-Column Standard Tiles Repeating Group
    • 4-Column Product Image Tiles with Prices Repeating Group
    • 4-Column Video, Star Rating, and Text Tiles Repeating Group
    • 4-Column Reviews Tiles with Star Rating Repeating Group
    • 5-Column Data Table with Sortable Fields
    • 6-Column Small Tiled Horizontal Scroll Repeating Group
  • Popups
    • Stripe Credit Card Purchase Popup
  • Reusables
    • applyfilters
    • menufocusgroup 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

Previous6-Column Small Tiled Horizontal Scroll Repeating GroupNextapplyfilters

Last updated 5 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 before submitting your page request in Canvas Pages.

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 a credit card

  • Button Remove to remove a saved credit card

  • Button CONFIRM MY SUBSCRIPTION to confirm purchase

How to set up

  • Update the title, button, and multiline text copy

  • Add a workflow on the page to trigger show Popup purchasePopup

Testing

When checking out with Stripe you can use 4242 4242 4242 4242 as the 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