-
Notifications
You must be signed in to change notification settings - Fork 659
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 saved payment method support for SEPA. #7449
Conversation
Diffuse output:
APK
MANIFEST
DEX
ARSC
|
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.
Why is this not centered text compared to other mandate texts?
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.
Updated.
}.getOrNull()?.merchantName | ||
|
||
if (merchantName == null) { | ||
finish() |
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.
Should we log a message for easier debugging for integrators?
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.
The only time this could happen is if you don't supply args. I can log a message, but this shouldn't ever happen. This is just a safety to prevent the app from crashing when attackers try to launch our activity illegally.
// we present the mandate directly. | ||
sepaMandateActivityLauncher.launch( | ||
SepaMandateContract.Args( | ||
merchantName = state.config?.merchantDisplayName ?: "" |
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 doesn't seem right, the activity is expecting a non null merchant name, what makes an empty string better here?
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.
The only time this could be null is when the config is null, which isn't possible in practice. So the empty string should never happen.
|
||
internal sealed class PaymentSelection : Parcelable { | ||
|
||
var hasAcknowledgedSepaMandate: Boolean = false |
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.
Is this the right place to have sepa mandate check? Would it make sense to make this more generic? Maybe even nullable?
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.
Sepa is kinda like US Bank, very one off. I talked with Yuki about this too, while a generic solution seems reasonable, sepa is pretty unique in all of this.
This felt like the best place to put this when I was developing it, but if there's a better place, I'm more than happy to move it.
I ran E2E tests locally to verify |
Summary
Add saved payment method support for SEPA debit.
Motivation
https://docs.google.com/document/d/19RVShmZqOQDfShWY3731UBTTRP7INqQXqlAcmy4BY30/edit?pli=1#heading=h.htnywx28hw7v
stripe/stripe-ios#2908
Testing
Screenshots
Updated stripe bank icon:
Changelog