SetupFutureUsage

Indicates that you intend to make future payments with this PaymentIntent’s payment method.

Providing this parameter will attach the payment method to the PaymentIntent’s Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be attached to a Customer after the transaction completes.

When processing card payments, Stripe also uses setup_future_usage to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.

If setup_future_usage is already set, you may only update the value from OnSession to OffSession.

See setup_future_usage.

Entries

Link copied to clipboard
Blank("")

Use `` if you want to clear reusable from the payment intent. Note: this only works if the PaymentIntent was created with no setup_future_usage.

Link copied to clipboard
OffSession("off_session")

Use off_session if your customer may or may not be in your checkout flow.

Link copied to clipboard
OnSession("on_session")

Use on_session if you intend to only reuse the payment method when your customer is present in your checkout flow.

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int