Android SDK
Incorporate with the Android native SDK
This demo project is designed to illustrate the integration of the NTTDATA Payment Gateway into an Android application using Java. It serves as a practical guide for developers, providing step-by-step instructions to set up and configure the payment gateway. By following this demo, developers can learn how to implement secure and efficient payment processing in their Android apps, ensuring a seamless user experience.
How to Install?
- Download the ndpsaipaycheckout-release.aar {target="_blank" rel="noopener noreferrer"}.
- Copy the .aar file under the libs folder.
- In build.gradle(Module) add the following implementation
implementation(files('libs/ndpsaipaycheckout-release.aar'))
implementation libs.volley
- Change the minSDK version to 24 in build.gradle(Module:app)
- Add the below user permission in the manifest file.
AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET" />
- Refer to the MainActivity.java file. This includes all merchant level settings and response handling.
How to Configure?
Change the details from MainActivity.java file
Update merchantId, password, prodid, keys etc.
For MultiProduct transactions
set prodid to Multi
newPayIntent.putExtra("prodid", "Multi");set multi_products to createMultiProductData()
newPayIntent.putExtra("multi_products", createMultiProductData())Set your products details in createMultiProductData()
To show any specific payment mode
- set subChannel to 'NB' or 'UP' or 'UI' or 'DC' or 'CC' or 'NR' etc.
newPayIntent.putExtra("subChannel", "UP")
- set subChannel to 'NB' or 'UP' or 'UI' or 'DC' or 'CC' or 'NR' etc.
Sample App
Refer the sample app to integrate