Module customer_session

Source

Structs§

CreateCustomerSession
Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
CreateCustomerSessionComponents
Configuration for each component. Exactly 1 component must be enabled.
CreateCustomerSessionComponentsBuyButton
Configuration for buy button.
CreateCustomerSessionComponentsPaymentElement
Configuration for the Payment Element.
CreateCustomerSessionComponentsPaymentElementFeatures
This hash defines whether the Payment Element supports certain features.
CreateCustomerSessionComponentsPricingTable
Configuration for the pricing table.

Enums§

CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodAllowRedisplayFilters
A list of allow_redisplay values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an allow_redisplay value that is present in this list.
CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRedisplay
Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to disabled.
CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to disabled.
CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
Controls whether the Payment Element displays a checkbox offering to save a new payment method. This parameter defaults to disabled.
CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
When using PaymentIntents and the customer checks the save checkbox, this field determines the setup_future_usage value used to confirm the PaymentIntent.