Third-Party Payment Support
If you want to make payments by any third-party payment application, such as GooglePay, PhonePe, Samsung Pay, etc, you have to include the changes as described in this section.
Google Pay
Integration
Configure the following in the payment post data:
- Bank code parameter with the value as TEZ
- PG parameter with the value of as UPI
Gradle dependency
Add the following dependency in the applicationβs build.gradle.
implementation 'in.payu:payu-gpay:3.1.1'
PhonePe
Integration
Configure the following in the payment post data:
- Bankcode parameter with the value as PPINTENT.
- PG parameter with the value as CASH.
Gradle dependency
Add the PhonePeIntent SDK URL in the root projectβs build.gradle similar to the following:
allprojects {
repositories {
maven {
url "https://phonepe.mycloudrepo.io/public/repositories/phonepe-intentsdk-android"
}
}
}
Add the following dependency in your applicationβs build.gradle:
implementation 'in.payu:phonepe-intent:1.8.1'
Updated 2 months ago