-
Notifications
You must be signed in to change notification settings - Fork 6
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: fixes ApplePay button rendering logic #685
Conversation
Generated by 🚫 Danger Swift against 22c7a7b |
Appetize link: https://appetize.io/app/kr6u72p34wrry72k3fiw2ekr4q |
0e4ad0c
to
73a0ec0
Compare
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.
Nice work, a few comments
Debug App/Sources/View Controllers/MerchantSessionAndSettingsViewController.swift
Outdated
Show resolved
Hide resolved
...re/PrimerHeadlessUniversalCheckout/Models/PrimerHeadlessUniversalCheckoutPaymentMethod.swift
Outdated
Show resolved
Hide resolved
Sources/PrimerSDK/Classes/Data Models/PrimerConfiguration.swift
Outdated
Show resolved
Hide resolved
73a0ec0
to
eedd5db
Compare
539e2b9
to
7772a8a
Compare
b1843e6
to
749c789
Compare
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 there a reason it isn't filtered out as a payment method as the source? i.e. in listAvailablePaymentMethodsTypes
I think this doesn't fix the problem we discussed with different parts of the flow having a different outcome when querying whether Apple Pay is available (see diagram)
As I mentioned previously, listAvailablePaymentMethodsTypes
has exactly the same filtering logic as paymentMethodConfigViewModels
except for the ApplePay filtering. I don't think we want to leave this inconsistency in place.
749c789
to
34b3659
Compare
Fixed a bug and added a few more config options for SDK, to show/hide ApplePay if the device is not capable of doing it, etc.
RFC