Skip to content

Commit 08725ce

Browse files
add automatic_async to capture_method (#692)
1 parent 98ae8a6 commit 08725ce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/types/src/valid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ elements.update({
222222
currency: 'usd',
223223
amount: 1099,
224224
setupFutureUsage: 'off_session',
225-
captureMethod: 'automatic',
225+
captureMethod: 'automatic_async',
226226
paymentMethodTypes: ['card'],
227227
on_behalf_of: 'acct_id',
228228
});

types/stripe-js/elements-group.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,14 +730,14 @@ export interface StripeElementsOptionsMode extends BaseStripeElementsOptions {
730730
*
731731
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method
732732
*/
733-
captureMethod?: 'manual' | 'automatic';
733+
captureMethod?: 'manual' | 'automatic' | 'automatic_async';
734734

735735
/**
736736
* Controls when the funds will be captured from the customer’s account.
737737
*
738738
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method
739739
*/
740-
capture_method?: 'manual' | 'automatic';
740+
capture_method?: 'manual' | 'automatic' | 'automatic_async';
741741

742742
/**
743743
* The Stripe account ID which is the business of record.
@@ -872,14 +872,14 @@ export interface StripeElementsUpdateOptions {
872872
*
873873
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method
874874
*/
875-
captureMethod?: 'manual' | 'automatic';
875+
captureMethod?: 'manual' | 'automatic' | 'automatic_async';
876876

877877
/**
878878
* Controls when the funds will be captured from the customer’s account.
879879
*
880880
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method
881881
*/
882-
capture_method?: 'manual' | 'automatic';
882+
capture_method?: 'manual' | 'automatic' | 'automatic_async';
883883

884884
/**
885885
* Instead of using automatic payment methods, declare specific payment methods to enable.

0 commit comments

Comments
 (0)