Skip to content

Commit

Permalink
add automatic_async to capture_method (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
graceg-stripe authored Nov 25, 2024
1 parent 98ae8a6 commit 08725ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/types/src/valid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down
8 changes: 4 additions & 4 deletions types/stripe-js/elements-group.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 08725ce

Please sign in to comment.