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 flow controller default payment method bug #7623

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

samer-stripe
Copy link
Collaborator

Summary

Fixes a bug in FlowController where the default payment method is not set properly after adding a new one and buying a product with it.

Motivation

Ensures payment method is properly set as default after usage in payment.

Testing

  • Added tests
  • Modified tests
  • Manually verified

@@ -292,7 +291,6 @@ internal class PaymentOptionsViewModel @Inject constructor(
}

private fun processNewPaymentMethod(paymentSelection: PaymentSelection) {
prefsRepository.savePaymentSelection(paymentSelection)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Don't think we should be saving the selected option in PrefsRepository until after choosing to pay with it.

@samer-stripe samer-stripe merged commit deaf348 into master Nov 16, 2023
8 checks passed
@samer-stripe samer-stripe deleted the samer/flow-controller-default-method-bug branch November 16, 2023 21:37
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