Documentation

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?

  1. Download the ndpsaipaycheckout-release.aar {target="_blank" rel="noopener noreferrer"}.
  2. Copy the .aar file under the libs folder.
  3. In build.gradle(Module) add the following implementation
implementation(files('libs/ndpsaipaycheckout-release.aar'))
implementation libs.volley
  1. Change the minSDK version to 24 in build.gradle(Module:app)
  2. Add the below user permission in the manifest file.
AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET" />
  1. Refer to the MainActivity.java file. This includes all merchant level settings and response handling.

How to Configure?

  1. Change the details from MainActivity.java file

  2. Update merchantId, password, prodid, keys etc.

  3. 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()

  4. 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")
      

Sample App

Refer the sample app to integrate

Related Information