Integration
This section describes how to integrate CustomBrowser in your app module.
Getting Started
'in.payu:payu-custom-browser:7.10.1'android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}<uses-permission android:name="android.permission.RECEIVE_SMS" />CheckForPaymentAvailability
Input:
Activity : activity instance
PaymentOption : Payment Option type e.g.PaymentOption.SAMSUNGPAY,PaymentOption.PHONEPE
PayUCustomBrowserCallback : this class provide callbacks
paymentOptionHash : Payment Related Details Hash
merchantKey : PayU Merchant Key
user_credentials : User credentials or use "default"
//Code Sample
new CustomBrowser().checkForPaymentAvailability(Activity activity, PaymentOption paymentOption, PayUCustomBrowserCallback payUCustomBrowserCallback, String paymentOptionHash, String merchantKey, String user_credentials)Invoking CustomBrowser
Last updated