Skip to content

globalpayments/android-sdk

Repository files navigation

Global Payments logo

GlobalPayments Android SDK

You can find more information on how to use this SDK and sign up for a free Global Payments sandbox account at https://developer.globalpay.com

Requirements

  • Android 5.0+ (API 21+)

Installation

Declare mavenCentral repository in the root build.gradle file:

allprojects {
    repositories {
        mavenCentral()
    }
}

Declare dependency in the app build.gradle file:

dependencies {
    implementation 'com.heartlandpaymentsystems:globalpayments-android-sdk:1.0'
}

You can find the latest SDK documentation along with code examples and test cards on the Global Payments Developer Portal.

Sample app

A sample app of how to integrate java-sdk directly into your mobile application.

Requirements

  • Android 5.0+ (API 21+)
  • Java 1.8
  • Kotlin 1.9.23
  • Credentials from the Global Payments Developer Portal
  • For the latest Netcetera SDK sandbox API key and certificate please reach out to Global Payment support team.

Installation

  • Clone the project
  • Import the project in Android Studio or Intellij
  • Update configuration.properties with the appKey and appId that you've created previously on the Global Payments Developer Portal
  • To run Netcetera 3DS sample place the acs.pem files into the assets folder and update configuration.properties with the apiKey so that the Netcetera 3DS SDK can initialize
  • Select sample-app from configuration and run the app
  • If you want to use the sample-app with GP-Ecom and Netcetera 3DS SDK make sure to set the useEcom=true in the configuration.properties and set the appropriate fields for GP-Ecom

Test Card Data

Name Number Exp Month Exp Year CVN
Visa 4263970000005262 12 2025 123
MasterCard 2223000010005780 12 2019 900
MasterCard 5425230000004415 12 2025 123
Discover 6011000000000087 12 2025 123
Amex 374101000000608 12 2025 1234
JCB 3566000000000000 12 2025 123
Diners Club 36256000000725 12 2025 123

Sample App Demo Clips

Main screen

Create Access Token

Hosted Fields Google Pay
Transactions Report Stored Payments

Merchant 3DS example

A sample app of how to integrate Netcetera SDK.

Requirements

Installation

  • Clone the project
  • Import the project in Android Studio or Intellij
  • Update configuration.properties file with the url where the java backend is running
  • Update configuration.properties with the appKey and appId that you've created previously on the Global Payments Developer Portal
  • To run Netcetera 3DS sample place the acs.pem files into the assets folder and update configuration.properties with the apiKey so that the Netcetera 3DS SDK can initialize
  • Select merchant3ds from configuration and run the app
  • For configuration of the java backend check Merchant3DSSpringBackend

Documentation and Examples

You can find documentation for Netcetera SDK on Netcetera website

App configuration

Edit the configuration file with the appropriate values from the backend example

Test Card Data

Name Number Exp Month Exp Year CVN Type
Visa 4012001038488884 12 2025 123 Challenge
Visa 4263970000005262 12 2025 123 Frictionless

Sample App Demo Clips

Netcetera Challenge Decoupled flow