Android SDK
The Ippopay Payments plugin allows you to accept credit card, UPI, Netbanking and debit card payments via Ippopay payment gateway.
Step - 1 - Add Dependency
We distribute our SDK from the Maven Central Repository. To begin with this SDK open your build.gradle file of Module:app and add the following dependency.
Step - 2 - Initialize SDK
To initialize the SDK add the below line of code with the public key you retrieved from ippopay merchant panel. If you don't have a public key create new one.
Step - 3 - Create Order Data Object with necessary inputs
You can create the order data or payment input with our OrderData Model class. Here you need to provide order id, descripiton, order amount and customer details like name, email, mobile number. Create order from Server side using below API and get the Order id. Click here to know how to create a order.
Step - 4 - Implement Payment Listener
Set and Implement our payment listener to receive the payment result for the payment we going to make in Step - 5. Use the below code to obtain the payment result.
Step - 5 - Make Transaction with Ippopay
Use the below line of code to make the payment with the order data you created in Step - 3
Ippopay Log
You can enable / disable the SDK logs by using the below line of code. By default it will be disabled.
Progurad Rules
If you are using Proguard for your builds, modify the Proguard rule file:
Sample Payment Reference.
Please check this link for sample payment with above steps.
Last updated