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 dedicated confirmSetup types; add confirmation_token to confirmPayment and confirmSetup #606

Merged
merged 1 commit into from
May 5, 2024

Conversation

pwang-stripe
Copy link
Contributor

@pwang-stripe pwang-stripe commented May 3, 2024

Summary & motivation

  • Add dedicated confirmSetup types (same as confirmPayment for now)
  • Add confirmation_token to confirmPayment and confirmSetup

Testing & documentation

  • Existing tests for confirmSetup

Comment on lines +1435 to +1441
/**
* Optional `id` of an existing [ConfirmationToken](https://stripe.com/docs/api/confirmation_tokens).
*
* @docs https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-confirmation_token
*/
confirmation_token?: string;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a way to test this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are tests here but we don't typically include a test for an optional string. what did you have in mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants