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

Update Android implementation, remove Android gateway validation, refactor canMakePayments #174

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

riso
Copy link

@riso riso commented Aug 20, 2019

This MR changes a few things in the current Android implementation.

  • Update to non-deprecated gradle directives
  • Updates to use AndroidX
  • Updates Android implementation to use current, non-deprecated Google APIs
  • Remove validation of gateways for Android. Google adds/changes supported gateways and new gateways work transparently without having to do any change. No reason to reject unknown gateways arbitrarily from the library

This also refactors canMakePayments. This is a breaking change, and changes how canMakePayments is exposed. Is no longer part of PaymentRequest, but it's directly exposed as a function. While having canMakePayments as part of PaymentRequest makes the API more compliant with the specification, there's no point in having to create a PaymentRequest just to verify that the device can make payments. For both Apple and Google Pay in fact, we only need to supply a small subset of the payment data (nothing at all in case of Apple Pay) to verify that the device supports the payment methods.

riso added 8 commits August 15, 2019 11:53
- Use implementation over deprecated compile
- Update compile and target sdk to 28
- Add additional dependency for Google Pay
- Use non-deprecated classes
- Remove not needed and not used FullWallet stuff
- Receive allowed card networks from client
- Receive allowed payment methods from client
- Remove it from PaymentRequest
- Change input to require only required data
@ChrisFromCanada
Copy link

I'm pretty sure the GooglePay API update is a requirement as of the end of this month. How do we get someone to merge it in?!

@dswiconnect
Copy link

Nice job! This PR should be merged, otherwise this lib doesn't make any sense @naoufal @Andreyco

@nabilfreeman
Copy link
Collaborator

Hey there, thanks for doing this work. I'm helping out with this library. The PR has been open for a while and I'm not quite the expert on the Android side of things and Google Pay. What's the situation as of late 2020 with this?

@litinskii
Copy link

+1 for merge this pr

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.

6 participants