Apple Pay & Google Pay

Demo to preview the plugin:

Introduction

The Apple Pay & Google Pay Plugin gives you a single integration for Apple Pay and Google Pay.
Customers see an Apple Pay button or a Google Pay button, depending on what their device and browser combination supports. If no option is available, they don’t see the button.
The plugin also supports Stripe Connect marketplaces: payments and subscriptions can be routed to your sellers' connected accounts with destination or direct charges, with an optional platform fee. See the Marketplace (Stripe Connect) section.
Image without caption

Prerequisites

  • Stripe account
  • Your Bubble app should be subscribed to Personal Plan (or upper)
  • For marketplaces: Stripe Connect enabled on your platform account, and sellers (connected accounts) with completed onboarding and active card_payments and transfers capabilities.

Requirements

How to setup

Plugin’s Elements

Plugin Actions

Marketplace (Stripe Connect)

Use these settings when your app is a marketplace and each seller has their own Stripe connected account (acct_...). Leave Connected Account ID empty to keep charging your platform account as before.

Choose a charge type

Destination
Direct
Where the payment is created
Your platform account
The seller's account
Who pays Stripe fees
Your platform
The seller
Domain registration
Platform only
Platform and each seller (Register Payment Method Domain)
Country field of the element
Your platform's country
The seller's country
Customers, products, prices
On your platform
On the seller's account
Webhook events
Platform webhooks
Connect webhooks
Charge type in the plugin actions is a static dropdown and must match the Charge type of the element. If your platform uses one charge type for all sellers, select it in both places. If you mix charge types, add two action steps in the backend workflow: one with "Only when charge_type is direct" and one with "Only when charge_type is not direct".

Destination charges setup

Direct charges setup

Platform fee

Use Application Fee Amount for one-time payments (in cents) and Application Fee Percent for subscriptions. Set the fee in the backend workflow, never on the page.
⚠️
Security: amount and Connected Account ID come from the browser and can be changed by the user. In production, look up the order by order_id in the backend workflow and take the amount, seller and fee from the order.
Image without caption

Changelogs