PaymentSheet is a pre-built UI that combines all the steps required to accept payment - collecting payment information, billing details, and confirming the payment - into a single sheet that displays on top of your app.
- Supports 10+ payment methods
- Card scanning
- Light and dark mode
- Helps you stay PCI compliant
- Open
Stripe.xcworkspace
in Xcode - Choose the PaymentSheet Example target in the top left
- Choose any simulator and click Run
The example app will appear with buttons that show different view controllers in this project.
The view controllers correspond to different ways to integrate PaymentSheet into your app.
ExampleCheckoutViewController.swift
: "one-step" integrationExampleCustomCheckoutViewController.swift
: "multi-step" integration
ExampleSwiftUIPaymentSheet.swift
: "one-step" integrationExampleSwiftUICustomPaymentFlow.swift
: "multi-step" integration