Installation
Requirements
- Agreement with Google granting permission to use the Google Pay API for Push Provisioning.
- Whitelisted app package name and SHA-256 certificate fingerprint by Google.
- Android version must be 5.1 (Lollipop, API level 22) or above.
- Device must be able to connect to the Internet.
Installation
It is recommended to use Android Studio and Gradle to build the project.
Gradle Configuration
MPP (Mea Push Provisioning) SDK should be added to the project as a standard Android dependency. SDK is hosted in a private Maven repository, so you need to configure build.gradle
by setting the assigned URL and credentials.
Environments:
test
- test environment
prod
- production environment
Library Repository and Dependencies
in build.gradle
file:
repositories {
maven {
url 'https://nexus.ext.meawallet.com/repository/mpp-android-group/'
credentials {
username '<user>'
password '<password>'
}
}
}
dependencies {
debugImplementation 'com.meawallet:mpp-<environment>:<version>-debug'
releaseImplementation 'com.meawallet:mpp-<environment>:<version>'
}
You may check actual version
here
Configuration
- Download
mea_config.<issuer>.zip
. - Unzip the archive. Archive contains configuration file
mea_config
. - Add
mea_config
to Android App resourcesres/raw
folder. Library automatically loads configuration from app bundle during runtime.
Enabling Issuer App for Google Pay Push Provisioning
To get access to Google Pay documentation use the following links:
- Requesting access: https://developers.google.com/pay/issuers/requesting-access
- Google Pay guides: https://developers.google.com/pay/issuers/guides/overview/about-google-pay
- Google Pay Push Provisioning API documentation: https://developers.google.com/pay/issuers/push-provisioning-api/
Google grants access to the Push Provisioning API only to participating financial institutions. Therefore, issuer apps need to be whitelisted before they can call the API.
Go to Push Provisioning API Access to whitelist the app.
... if Google Pay has not yet launched in your country, you need to test with the special
Alienfood
version of the Google Pay app.
Google Pay - Issuers - Get the Google Pay app
❇️ Useful Information
(Only authorized Google accounts can view this content.
)
If you have multiple Google accounts and you can not open link with yours specific one, then just try to add?authuser=1
OR&authuser=1
to end of link. You may change1
to any index of your account. Example:https://developers.google.com/pay/issuers/apis/push-provisioning/android/whitelisting?authuser=3
References
Updated about 1 year ago