Android Standard SDK


In a mobile standard checkout merchant needs to post the intial request to hosted checkout page where customer will provide card/account details. Once the payment is verified customer is redirected back to the android application along with the payment result.


The initial request must contain all the required information:

  • - authentication credentials
  • - type and amount of transaction
  • - merchantTransactionId

The mobile standard checkout request has to be sent to our endpoint i.e. /transaction/Checkout using POST method.


In our API Specifications you can find a full list of parameters that can be sent in the initial request.


Workflow


1. Post an Initial Payment

To start the process, merchant has to POST request to our endpoint i.e. /transaction/Checkout

2. Redirect to hosted page

Customer will provide his/her card/account details on hosted checkout page.

3. Return to the android application

After payment confirmation, the payment result will be returned as a Object to the android app.


Configuration to add Library

Import Library to your project and follow the steps to config your gradle:

  • - Download the library from here.
  • - Unzip the library.
  • - Open your project and add the library into your Project's libs folder.
  • - Open 'build.gradle' file (the one under 'app') and add dependency as shown below.
  • - Open 'build.gradle' file (the one under 'app') and add sourceSets{main{jniLibs.srcDirs = ['libs']}} .
  • - Sync and build the Project.

Configuration of the build.gradle file

You need to add the following code in your build.gradle file:


dependencies {   

    implementation (files("libs/pz-checkout_sdk.aar"))

}

1. Post an Initial Payment

To start the process, merchant has to POST request to our endpoint i.e. /transaction/Checkout


Sample Request


2. Redirect to hosted page

The account holder will be redirected to hosted page, where the account holder can fill the card/account details.


3. Return to the android application

Once the payment has been processed, the flow will be redirected to the android application along with the payment result parameters. These parameters will be accessible via the get methods from the Result class. Please check the example below.

You can also check the payment confirmation with our Backoffice Inquiry API.


Sample code for reading the response


Payment Modes and Brands

Find below the list of payment modes and brands for standard checkout.

Show all modes and brands

ModeBrand