Configuration
Types
Appearance configuration for the Payment Element.
Options to allow or disallow card brands.
Configuration related to Google Pay.
Builder for Link configuration used by the payment element.
The layout of payment methods.
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.
Functions
Sets the visual appearance of the payment element.
Specifies the card brands accepted by the payment element.
Controls whether Content displays mandate text below the payment methods. Defaults to true.
Sets the Google Pay configuration for the payment element.
Sets the Link configuration for the payment element.
Controls whether the card scanner opens automatically when the card entry form is shown. Defaults to false.
The layout of payment methods in the sheet. Defaults to PaymentMethodLayout.Automatic.
Overrides the default order in which payment methods are displayed.
A list of preferred networks that should be used to process payments made with a co-branded card if your user hasn't selected a network themselves.
A map for specifying when legal agreements are displayed for each payment method type. If the payment method is not specified in the list, the TermsDisplay value will default to automatic.