PaymentSheet
A drop-in class that presents a bottom sheet to collect and process a customer's payment.
Constructors
Constructor to be used when launching PaymentSheet from a ComponentActivity.
Constructor to be used when launching PaymentSheet from a ComponentActivity and external payment methods are specified in your Configuration.
Constructor to be used when launching PaymentSheet from a ComponentActivity and intending to create and optionally confirm the PaymentIntent or SetupIntent on your server.
Constructor to be used when launching PaymentSheet from a ComponentActivity and intending to create and optionally confirm the PaymentIntent or SetupIntent on your server and external payment methods are specified in your Configuration.
Constructor to be used when launching the payment sheet from a Fragment.
Constructor to be used when launching the payment sheet from a Fragment and external payment methods are specified in your Configuration.
Constructor to be used when launching PaymentSheet from a Fragment and intending to create and optionally confirm the PaymentIntent or SetupIntent on your server.
Constructor to be used when launching PaymentSheet from a Fragment and intending to create and optionally confirm the PaymentIntent or SetupIntent on your server and external payment methods are specified in your Configuration.
Types
Configuration for how billing details are collected during checkout.
Builder to add optional callbacks to PaymentSheet.
Theme configuration for wallet buttons
Options to block certain card brands on the client
Configuration for PaymentSheet
Defines a custom payment method type that can be displayed in Payment Element.
A class that presents the individual steps of a payment sheet flow.
Defines the visual style of icons in Payment Element
Contains information needed to render PaymentSheet. The values are used to calculate the payment methods displayed and influence the UI.
Configuration related to Link.
Defines the layout orientations available for displaying payment methods in PaymentSheet.
Configuration related to Shop Pay, which only applies when using wallet buttons.
TermsDisplay controls how mandates and legal agreements are displayed. Use TermsDisplay.NEVER to never display legal agreements. The default setting is TermsDisplay.AUTOMATIC, which causes legal agreements to be shown only when necessary.
Configuration for wallet buttons
Functions
Present PaymentSheet with an IntentConfiguration.
Present PaymentSheet to process a PaymentIntent.
Present PaymentSheet to process a SetupIntent.