-
Notifications
You must be signed in to change notification settings - Fork 663
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
don't select a payment method if the user it has selected nothing (#… #1792
Conversation
I'll fix the test with the next commit |
@@ -5,6 +5,7 @@ import com.stripe.android.model.PaymentMethodFixtures | |||
import kotlin.test.BeforeTest | |||
import kotlin.test.Test | |||
import kotlin.test.assertEquals | |||
import kotlin.test.assertNull |
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.
this should come after import kotlin.test.assertNotNull
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.
fixed!
val paymentMethodsAdapter = | ||
recyclerView.adapter as PaymentMethodsAdapter | ||
|
||
paymentMethodsAdapter.selectedPaymentMethodId = paymentMethod.id | ||
assertEquals(paymentMethod.id, paymentMethodsAdapter.selectedPaymentMethod?.id) |
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.
you can delete these lines
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.
Hi Michael. If I delete the assignment the test fails because the selected payment method is null
@ISD4N thanks for fixing this! |
@mshafrir-stripe we need this patch to continue with the integration with Stripe. Do you need something else from me to be able to approve it? Thanks! |
fixes #1676