diff --git a/tests/types/src/valid.ts b/tests/types/src/valid.ts index b881ca2..48a738c 100644 --- a/tests/types/src/valid.ts +++ b/tests/types/src/valid.ts @@ -222,7 +222,7 @@ elements.update({ currency: 'usd', amount: 1099, setupFutureUsage: 'off_session', - captureMethod: 'automatic', + captureMethod: 'automatic_async', paymentMethodTypes: ['card'], on_behalf_of: 'acct_id', }); diff --git a/types/stripe-js/elements-group.d.ts b/types/stripe-js/elements-group.d.ts index a6cd3b9..7a8a086 100644 --- a/types/stripe-js/elements-group.d.ts +++ b/types/stripe-js/elements-group.d.ts @@ -730,14 +730,14 @@ export interface StripeElementsOptionsMode extends BaseStripeElementsOptions { * * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method */ - captureMethod?: 'manual' | 'automatic'; + captureMethod?: 'manual' | 'automatic' | 'automatic_async'; /** * Controls when the funds will be captured from the customer’s account. * * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method */ - capture_method?: 'manual' | 'automatic'; + capture_method?: 'manual' | 'automatic' | 'automatic_async'; /** * The Stripe account ID which is the business of record. @@ -872,14 +872,14 @@ export interface StripeElementsUpdateOptions { * * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method */ - captureMethod?: 'manual' | 'automatic'; + captureMethod?: 'manual' | 'automatic' | 'automatic_async'; /** * Controls when the funds will be captured from the customer’s account. * * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method */ - capture_method?: 'manual' | 'automatic'; + capture_method?: 'manual' | 'automatic' | 'automatic_async'; /** * Instead of using automatic payment methods, declare specific payment methods to enable.