Easebuzz payment api android kit
1.Copy peb-lib.aar file into app/libs/ folder of your application.
2.Modify build.gradle(module) file in the below section.
- defaultConfig { },
- repositories{ } ,
- Add all required dependencies.
3.Below are the dependancies required for smooth payment process.
- implementation (name: 'peb-lib-android-x', ext: 'aar')
- implementation 'com.google.android.material:material:1.0.0'
- implementation 'com.squareup.okhttp:okhttp:2.4.0'
- implementation 'androidx.multidex:multidex:2.0.0'
- implementation 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
- implementation 'com.squareup.retrofit2:retrofit:2.5.0'
- implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
- implementation 'com.google.android.gms:play-services-auth:17.0.0'
- implementation 'com.google.android.gms:play-services-auth-api-phone:17.1.0'
Note : Please use Picasso library version : 2.71828, Old Picasso library version will not give you smooth payment process.
4.Initiate payment request from your application. - On click of pay button of your app you need to start PWECouponsActivity and require to pass the necessary parameters to PWECouponsActivity using Intent. (Use startActivityForResult() method to start the Activity).
5.Handle the response of the payment process. - After the transaction has initiated using startActivityForResult() method, your app must override the OnActivityResult() method of Activity class. This method will receive the status and response of the transaction.
The step by step detailed procedure to integrate the kit is mentioned in the documentation.pdf file. You can download it from https://github.com/easebuzz/paywitheasebuzz-android-lib/blob/master/documentation.pdf.