You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write automated tests around my usage of SetupIntents.
To simulate client activity I want to call Stripe.setupIntents.confirm as a client but I cannot specify the client_secret to do this. Without specifying client_secret the confirm call fails reporting client_secret as a missing parameter.
For example, the call to confirm in the code below fails with Error: Missing required param: client_secret:
but client_secret is not a defined property of ISetupIntentConfirmOptions
Is this just an inadvertent omission in ISetupIntentConfirmOptions or am I trying to do things the wrong way?
Hacking ISetupIntentConfirmOptions to allow a client_secret option allows the confirm call to succeed. I wonder if this is specify to the typescript types definition file which was all I needed to hack in order to get this to work.
The text was updated successfully, but these errors were encountered:
@tbartley Thanks for reporting! We don't have Typescript definitions for stripe-node today so you must be using a third-party library like DefinitelyTyped. You would need to work with them on a fix instead.
We're actively working on Typescript definitions this quarter though and are planning a beta soon! If you're interested, I'd recommend following the related issue here: #296
I'm trying to write automated tests around my usage of SetupIntents.
To simulate client activity I want to call Stripe.setupIntents.confirm as a client but I cannot specify the client_secret to do this. Without specifying client_secret the confirm call fails reporting client_secret as a missing parameter.
For example, the call to
confirm
in the code below fails withError: Missing required param: client_secret
:I would expect to be able to write:
but
client_secret
is not a defined property ofISetupIntentConfirmOptions
Is this just an inadvertent omission in
ISetupIntentConfirmOptions
or am I trying to do things the wrong way?Hacking ISetupIntentConfirmOptions to allow a
client_secret
option allows theconfirm
call to succeed. I wonder if this is specify to the typescript types definition file which was all I needed to hack in order to get this to work.The text was updated successfully, but these errors were encountered: