Configuration

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Appearance configuration for the Payment Element.

Link copied to clipboard

Options to allow or disallow card brands.

Link copied to clipboard

Configuration related to Google Pay.

Link copied to clipboard

Builder for Link configuration used by the payment element.

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

Sets the visual appearance of the payment element.

Link copied to clipboard

Specifies the card brands accepted by the payment element.

Link copied to clipboard

Controls whether Content displays mandate text below the payment methods. Defaults to true.

Link copied to clipboard

Sets the Google Pay configuration for the payment element.

Link copied to clipboard

Sets the Link configuration for the payment element.

Link copied to clipboard

Controls whether the card scanner opens automatically when the card entry form is shown. Defaults to false.

Link copied to clipboard

The layout of payment methods in the sheet. Defaults to PaymentMethodLayout.Automatic.

Link copied to clipboard

Overrides the default order in which payment methods are displayed.

Link copied to clipboard

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.

Link copied to clipboard

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.