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 ability to set on_behalf_of for CBC elements #8344
Conversation
Diffuse output:
APK
DEX
|
) : ViewModel() { | ||
|
||
private val _isCbcEligible = MutableStateFlow(false) | ||
val isCbcEligible: StateFlow<Boolean> = _isCbcEligible | ||
var onBehalfOf: String? = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should set this in savedStateHandle too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
@@ -61,6 +64,7 @@ class CardWidgetViewModelTest { | |||
paymentConfigProvider = { paymentConfig }, | |||
stripeRepository = stripeRepository, | |||
dispatcher = testDispatcher, | |||
handle = SavedStateHandle() | |||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test to ensure it's saving to the handle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please link the API review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some tests for the new functionality?
Summary
Adds ability for merchant to set onBehalfOf for CardInputWidget, CardFormView, and CardMultilineWidget
Motivation
MOBILESDK-1969
API REVIEW
Testing
Changelog
See
CHANGELOG.md