Stripe Custom Payment Methods Overview - Flex Documentation

What are Stripe Custom Payment Methods?

Stripe Custom Payment Methods allow you to display your own payment options alongside Stripe’s 50+ preset payment methods through a single Payment Element integration. This enables you to offer Flex as a payment option while maintaining a unified checkout experience with traditional payment methods like credit cards, Apple Pay, and Google Pay.

How Flex Integrates with Stripe

Flex appears as a custom payment method within Stripe’s Payment Element, allowing customers to choose between:

When a customer selects Flex, they are redirected to Flex’s hosted checkout page to complete their payment. For traditional payment methods, the payment is processed inline using Stripe’s embedded elements.

Benefits of This Integration

Unified Checkout Experience

Flexible Payment Routing

Reporting and Reconciliation

Architecture Overview

Payment Flow Models

Stripe (Embedded Model)

  1. Customer enters payment details directly in the Payment Element
  2. Payment is confirmed inline using Stripe.js
  3. Customer remains on your domain throughout the process
  4. Stripe handles 3D Secure authentication via modals

Flex (Redirect Model)

  1. Customer selects Flex from the Payment Element
  2. Your backend creates a Flex checkout session
  3. Customer is redirected to Flex’s hosted checkout page
  4. After payment, Flex redirects back to your success page

Integration Components

Flex Selected Other Methods Your Checkout Page
Credit Card
Apple Pay
Google Pay
Flex (Custom Payment Method)
Customer Info Form Submit Payment Button Payment Method
Selected? Create Flex Checkout Session Create Stripe Payment Intent
Redirect to Flex Hosted Checkout Confirm Payment Inline (Stripe.js) Return to Success Page

When to Use This Integration

This integration is ideal if you:

Next Steps

  1. Set up your Stripe account
    • Ensure you have a Stripe account with the Payment Element integration enabled.
  2. Configure the custom payment method
    • Create a custom payment method in the Stripe Dashboard and obtain your custom payment method ID.
  3. Install and configure
    • Follow the installation guide to set up the required dependencies and environment variables.
  4. Implement the integration

Support

If you need assistance with this integration: