-
Notifications
You must be signed in to change notification settings - Fork 413
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
Android implementation updates #396
Open
litinskii
wants to merge
7
commits into
naoufal:master
Choose a base branch
from
mtb-bank:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update tokenization const METHOD_DATA = [{
supportedMethods: ['android-pay'],
data: {
supportedNetworks: ['visa', 'mastercard', 'amex'],
// https://developers.google.com/android/reference/com/google/android/gms/wallet/WalletConstants.html
// PAYMENT_METHOD_CARD and PAYMENT_METHOD_TOKENIZED_CARD.. or [1, 2]
allowedPaymentMethods: [1, 2],
currencyCode: 'USD',
environment: 'TEST', // defaults to production
paymentMethodTokenizationParameters: {
tokenizationType: 'PAYMENT_METHOD_TOKENIZATION_TYPE_DIRECT', // or PAYMENT_METHOD_TOKENIZATION_TYPE_PAYMENT_GATEWAY
parameters: {
publicKey: 'your-pubic-key' // https://developers.google.com/pay/api/android/guides/resources/payment-data-cryptography#using-openssl
// if use PAYMENT_METHOD_TOKENIZATION_TYPE_PAYMENT_GATEWAY
// gateway: 'your gateway',
// gatewayMerchantId: 'your gatewayMerchantId',
// merchantName: 'your merchantName',
}
}
}
}]; |
Add
|
litinskii
changed the title
Reference to https://github.com/naoufal/react-native-payments/pull/174 with updated readme
Android implementation updates
May 19, 2023
* update build.gradle - Use implementation over deprecated compile - Update compile and target sdk to 28 - Add additional dependency for Google Pay * Automatically update AndroidManifest adding required meta-data * Update android implementation to 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 * use AndroidX appcompat library, remove useless library * return card info from GPay to clients * don't validate gateways on Android * update package version * refactor NativePayments.canMakePayments - Remove it from PaymentRequest - Change input to require only required data * bump version * refactor NativePayments.canMakePayments - Remove it from PaymentRequest - Change input to require only required data * add environment to CanMakePayments type * fix podspec There are .h/.m files in subdirectories that weren't currently being considered when the package is installed as a pod. This fixes it by making them accessible. * add ignore * update readmi * update readmi * Fix import * Some fixes * update readmi * Some fixes * Update version * update * Fix depricatios * update * Fix depricatios * add intermediateSigningKey * add intermediateSigningKey * update * add intermediateSigningKey * use array for signatures * use array for signatures * use array for signatures * use array for signatures * use array for signatures * use array for signatures * use array for signatures * use array for signatures * update lib / remove not used * update lib / remove not used * 0.7.1 * 0.8.3-1 --------- Co-authored-by: Valerio Ponte <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the work of #174 with updated readme.
For most question changes are described at #174.
just added some notes to readme
main question about
allowedPaymentMethods
and how to generatepublicKey
in section below