[BUG]: No overload for confirmSetup with confirmation_token
What happened?
const { error, setupIntent: confirmedSetupIntent } = await this.client.confirmSetup({
clientSecret,
confirmParams: {
confirmation_token: confirmationToken.id,
expand: ['payment_method']
},
redirect: 'if_required'
});
From the docs, confirmation_token is a valid parameter, and when testing, it successfully confirms the payment method. It looks like the types are just missing the overload for this.
https://docs.stripe.com/js/setup_intents/confirm_setup#confirm_setup_intent-options-confirmParams-confirmation_token
Environment
VSCode
Reproduction
No response
Hi @reubenmoes, thanks for your report. I have passed on this issue for investigation.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi @reubenmoes, this has been addressed in #606, which is part of release v3.4.1.
Closing since it looks like it's been resolved in #606! Please feel free to reopen if there's any further issues with this.