Google Pay Card Payments - Android Standard Checkout

Know how to integrate Cards on Google Pay at your Razorpay Android Standard Integration.


Use this feature to let your customers to make payments on your Android app using cards they saved on Google Pay.

Available on Android Apps Only

Google Pay has launched the option of adding Cards to their Google Pay accounts only for Android users.

Feature Request

  • This is an on-demand feature. Please raise a request with our to get this feature activated on your Razorpay account.
  • Watch this video to know how to raise a feature enablement request on the Razorpay Dashboard.
Feature Request GIF

You will need to integrate the Google SDK in your android app. You may use one of the two methods listed below:

Import the SDK from our Maven repository by adding the following lines to your app's build.gradle file.

repositories {
mavenCentral()
}
dependencies {
implementation 'com.razorpay:gpay:1.0.0'
}

Download

AAR file and add the following lines to your app's build.gradle file.

dependencies {
...
implementation(name: 'rzp-googlepay-1.3.0', ext: 'aar')
}

Google Pay Cards is supported on Razorpay Android - Standard Checkout version number 1.6.5 and higher. If you are using an older version, you will need to update it.

You can update the Standard Checkout version in your build.gradle file as shown below:

dependencies {
...
implementation('com.razorpay:checkout:1.6.12')
}

Add the following lines to your app's build.gradle file.

dependencies {
...
implementation 'com.android.support:customtabs:26.1.0'
implementation 'com.google.android.gms:play-services-tasks:15.0.1'
implementation 'com.google.android.gms:play-services-wallet:18.0.0'
...
}

Add the following lines inside the app’s AndroidManifest.xml file.

<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />

Is this integration guide useful?