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

Fix issue where FC + PI would not launch ach collection flow #7545

Merged

Conversation

jameswoo-stripe
Copy link
Contributor

Summary

Fix issue where FC + PI would not launch ach collection flow

Testing

  • Added tests
  • Modified tests
  • Manually verified

Changelog

  • [FIXED] Fixed an issue where the US Bank Account collection flow would not launch when using FlowController with Payment Intents.

@jameswoo-stripe jameswoo-stripe force-pushed the jameswoo/jameswoo/customersheet-payment-element-11 branch from fa4f5e4 to 287e858 Compare October 31, 2023 16:53
@@ -120,7 +121,7 @@ internal fun AddPaymentMethod(
usBankAccountFormArguments = USBankAccountFormArguments(
onBehalfOf = onBehalfOf,
isCompleteFlow = sheetViewModel is PaymentSheetViewModel,
isPaymentFlow = initializationMode is PaymentSheet.InitializationMode.PaymentIntent,
isPaymentFlow = stripeIntent.value is PaymentIntent,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a test for this?

Copy link
Collaborator

@jaynewstrom-stripe jaynewstrom-stripe left a comment

Choose a reason for hiding this comment

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

Is this not testable in a unit test? I think the end to end test is also great to have, but would be nice to have both.

@jameswoo-stripe
Copy link
Contributor Author

No, since this is in a composable. I think we need to improve the business logic handling here. A lot of the business logic is contained in this composable.

@jameswoo-stripe jameswoo-stripe enabled auto-merge (squash) October 31, 2023 17:31
@jameswoo-stripe jameswoo-stripe merged commit 0a50ea4 into master Oct 31, 2023
8 checks passed
@jameswoo-stripe jameswoo-stripe deleted the jameswoo/jameswoo/customersheet-payment-element-11 branch October 31, 2023 18:27
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