mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-12 08:34:32 +00:00
[@types/stripe] Add missing client_secret property to ISetupIntentConfirmOptions (#40812)
This commit is contained in:
5
types/stripe/index.d.ts
vendored
5
types/stripe/index.d.ts
vendored
@@ -7835,6 +7835,11 @@ declare namespace Stripe {
|
||||
}
|
||||
|
||||
interface ISetupIntentConfirmOptions {
|
||||
/**
|
||||
* The client secret of this SetupIntent. Used for client-side confirmation using a publishable key. Please refer to dynamic authentication guide on how client_secret should be handled.
|
||||
*/
|
||||
client_secret?: string;
|
||||
|
||||
/**
|
||||
* ID of the payment method (a PaymentMethod, Card, BankAccount, or saved Source object)
|
||||
* to attach to this SetupIntent.
|
||||
|
||||
@@ -2167,6 +2167,8 @@ stripe.setupIntents.retrieve('seti_123456789').then(intent => {});
|
||||
|
||||
stripe.setupIntents.confirm('seti_123456789', {}, (err, intent) => {});
|
||||
stripe.setupIntents.confirm('seti_123456789', {}).then(intent => {});
|
||||
stripe.setupIntents.confirm('seti_123456789', {client_secret: 'seti_987654321'}, (err, intent) => {});
|
||||
stripe.setupIntents.confirm('seti_123456789', {client_secret: 'seti_987654321'}).then(intent => {});
|
||||
|
||||
stripe.setupIntents.cancel('seti_123456789', (err, intent) => {});
|
||||
stripe.setupIntents.cancel('seti_123456789').then(intent => {});
|
||||
|
||||
Reference in New Issue
Block a user