Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic_async to captureMethod #692

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading