setupFutureUsage property

  1. @JsonKey.new(name: "setup_future_usage")
PaymentIntentSetupFutureUsage? get setupFutureUsage
inherited

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

If present, the payment method used with this PaymentIntent can be attached to a Customer, even after the transaction completes.

Use on_session if you intend to only reuse the payment method when your customer is present in your checkout flow. Use off_session if your customer may or may not be in your checkout flow. See saving card details during payment to learn more.

Stripe uses setup_future_usage to dynamically optimize your payment flow and comply with regional legislation and network rules. For example, if your customer is impacted by SCA, using off_session will ensure that they are authenticated while processing this PaymentIntent. You will then be able to collect off-session payments for this customer.

Implementation

@JsonKey(name: "receipt_email") String? get receiptEmail;/// Indicates that you intend to make future payments with this
/// PaymentIntent's payment method.
///
/// If present, the payment method used with this PaymentIntent can be attached
/// to a Customer, even after the transaction completes.
///
/// Use on_session if you intend to only reuse the payment method when your
/// customer is present in your checkout flow. Use off_session if your customer
/// may or may not be in your checkout flow. See saving card details during
///  payment to learn more.
///
/// Stripe uses setup_future_usage to dynamically optimize your payment flow
/// and comply with regional legislation and network rules. For example, if
/// your customer is impacted by SCA, using off_session will ensure that they are authenticated while processing this PaymentIntent. You will then be able to collect off-session payments for this customer.
@JsonKey(name: "setup_future_usage") PaymentIntentSetupFutureUsage? get setupFutureUsage;