[@types/stripe] Add missing client_secret property to ISetupIntentConfirmOptions (#40812)

This commit is contained in:
Tim Bartley
2019-12-05 11:43:27 +10:00
committed by Ron Buckton
parent d0cb7358d9
commit 7f9ef75bff
2 changed files with 7 additions and 0 deletions

View File

@@ -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.

View File

@@ -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 => {});