These docs are for v4.0.2. Click to read the latest docs for v4.3.0.

Payment Info Classes

Amount Validation


Class AmountValidation

Parameter

Data Type

Mandatory

Description

min

Double

M

Set the minimum allowed amount

  • If min > 0, this validates the minimum amount

max

Double

M

Set the maximum allowed amount

  • If max > 0, this validates the maximum amount

 

Card No Validation


Class CardNoValidation

Parameter

Data Type

Mandatory

Description

prefixes

Array

M

Array of allowed prefix card numbers to identify the credit card scheme

regex

String

M

Regex for allowed prefix credit card numbers

luhn

Boolean

M

LUHN check for credit card number

  • Default: true

 

Card Token Info


Class CardTokenInfo
ParameterData TypeMandatoryDescription
tokenStringMCard token ID
cardNoStringMMasked credit card number
expiryDateStringMCredit card expiry date

Based on status

• EX: return card expiry date
• A: return masked card expiry date
• ED: return empty card expiry date
nameStringMCustomer’s name
emailStringMCustomer’s email address
statusStringMCredit card availability status

Prompts user if the chosen card is expiring or approaching its expiry date

• ED: = Expired
• EX: = Expiring within 6 months
• A: = Available for use
iconUrlStringMCredit card brand icon URL
logoUrlStringMCredit card brand logo URL

 

Card Type Validation


Class CardTypeValidation
ParameterData TypeMandatoryDescription
sequenceNoIntegerMSequence number of list
nameStringMCredit card brand name
prefixesArrayMArray of prefix numbers to identify the credit card scheme
regexStringMRegex to identify the credit card scheme
iconUrlStringMCredit card scheme icon URL

 

Common Validation


Class CommonValidation
ParameterData TypeMandatoryDescription
cardNoCardNoValidationMCredit card number validation

Refer to: Card No Validation
cardTypesArray MCredit card type validation list

Refer to: Card Type Validation

 

Configuration Info


Class ConfigurationInfo
ParameterData TypeMandatoryDescription
paymentPaymentConfigurationMPayment related configuration

Refer to: Payment Configuration
notificationPaymentNotificationMPayment notification platform configuration

Refer to: Payment Notification

 

Dynamic Currency Conversion


Class DynamicCurrencyConversion
ParameterData TypeMandatoryDescription
activeBooleanMDynamic currency conversion feature status
termsStringMDynamic currency conversion terms and conditions

 

Exchange Rate


Class ExchangeRate
ParameterData TypeMandatoryDescription
multipleCurrencyPricingMultipleCurrencyPricingMExchange rate multiple currency pricing

Refer to: Multiple Currency Pricing
dynamicCurrencyConversionDynamicCurrencyConversionMExchange rate dynamic currency conversion

Refer to: Dynamic Currency Conversion
alternativePaymentMethodMultipleCurrencyConversionAlternativePaymentMethodMultipleCurrencyConversionCExchange rate alternative payment method multiple currency conversionRefer to: Alternative Payment Method Multiple Currency Conversion

 

FX Rate


Class FXRate

Parameter

Data Type

Mandatory

Description

sequenceNo

Integer

M

Sequence number of list

id

String

M

Exchange rate ID

name

String

M

Exchange rate title

iconUrl

String

M

Exchange rate currency icon URL

amount

String

M

Exchange rate offer amount

fx

Double

M

Exchange rate offer rate

currencycode

String

M

Exchange rate currency code

  • Based on ISO 4217 - A3 currency codes

 

Installment Plan


Class InstallmentPlan

Parameter

Data Type

Mandatory

Description

sequenceNo

Integer

M

Sequence number of list

period

Integer

M

Installment tenor period

interestType

String

M

Installment interest type

interestRate

Double

M

Installment interest rate.

monthlyAmount

Double

M

Installment monthly amount

monthlyInterest

Double

M

Installment monthly interest

currencyCode

String

M

Installment currency code

  • Based on ISO 4217 - A3 currency code
labelStringMInstallment plans label

 

Merchant Additional Info


Class MerchantAdditionalInfo
ParameterData TypeMandatoryDescription
idStringMMerchant ID
nameStringMMerchant name
addressStringMMerchant address
emailStringMMerchant email address
logoUrlStringMMerchant logo URL
bannerUrlStringMMerchant banner URL

 

Merchant Info


Class MerchantInfo

Parameter

Data Type

Mandatory

Description

id

String

M

Merchant ID

name

String

M

Merchant name

address

String

M

Merchant address

email

String

M

Merchant email address

logoUrl

String

M

Merchant logo URL

bannerUrl

String

M

Merchant banner URL

countryCode

String

M

Merchant county code

  • Based on ISO 3166-1 alpha 2 codes

 

Multiple Currency Pricing


Class MultipleCurrencyPricing
ParameterData TypeMandatoryDescription
activeBooleanMMultiple currency pricing feature status
termsStringMMultiple currency pricing terms and conditions

 

Payment Channel


Class PaymentChannel

Parameter

Data Type

Mandatory

Description

sequenceNo

Integer

M

Sequence number of list

name

String

M

Payment channel name

currencyCodes

Array

M

Payment channel enabled currency codes

iconUrl

String

M

Payment channel icon URL

logoUrl

String

M

Payment channel logo URL

down

Boolean

M

Payment channel online/offline status.

  • If down = true, the payment channel is down (offline)
contextPaymentContextMPayment channel payment context information

Refer to: Payment Context

 

Payment Channel Category


Class PaymentChannelCategory
ParameterData TypeMandatoryDescription
sequenceNoIntegerMSequence number of list
nameStringMPayment channel category name
codeStringMPayment channel category code
iconUrlStringMPayment channel category icon URL
logoUrlStringMPayment channel category logo URL
defaultBooleanMDefault selected payment channel category
groupsArray MPayment channel group list

Refer to: Payment Channel Group

 

Payment Channel Group


Class PaymentChannelGroup
ParameterData TypeMandatoryDescription
sequenceNoIntegerMSequence number of list
nameStringMPayment channel group name
codeStringMPayment channel group code
iconUrlStringMPayment channel group icon URL
logoUrlStringMPayment channel group logo URL
defaultBooleanMDefault selected payment channel group

 

Payment Code


Class PaymentCode
ParameterData TypeMandatoryDescription
Constructors (channelCode)StringCInit class constructor with channel code
Constructors (channelCode, agentCode, agentChannelCode)String, String, StringCInit class constructor with payment channel code, agent code and agent channel code
channelCodeStringMPayment channel code
agentCodeStringMPayment agent code
agentChannelCodeStringMPayment agent channel code

 

Payment Configuration


Class PaymentConfiguration

Parameter

Data Type

Mandatory

Description

immediatePayment

Boolean

M

Immediate payment without user input

  • If there is only one payment option available and user input is not required, this will redirect to the third-party payment page
  • Default: false

tokenize

Boolean

M

Enables the tokenization feature for credit card payments

Default: false

tokenizeOnly

Boolean

M

Indicates that a credit card will be tokenized to generate a card token without performing a transaction

  • Configured via Payment Token API • true – Change to TWA layout
    • false – use as normal credit card layout
cardTokenOnlyBooleanMEnforces the use of card token payments only
exchangeRateExchangeRateMExchange rate information

Refer to: Exchange Rate

 

Payment Context


Class PaymentContext
ParameterData TypeMandatoryDescription
codePaymentCodeMPayment code informationRefer to: Payment Code
inputPaymentInputMPayment input informationRefer to: Payment Input
validationPaymentValidationMPayment validation informationRefer to: Payment Validation
infoPaymentInfoMPayment info informationRefer to: Payment Info

 

Payment Data


Class PaymentData
ParameterData TypeMandatoryDescription
nameStringOCustomer’s name
emailStringOCustomer’s email address
mobileNoStringOCustomer’s mobile number
accountNoStringOCustomer’s account number
cardNoStringOCredit card number
expiryMonthIntegerOCredit card expiry month
expiryYearIntegerOCredit card expiry year
securityCodeStringOCredit card security code
pinStringOCredit card PIN
bankStringOCredit card issuer bank name
countryStringOCredit card issuer country code
tokenizeBooleanOEnables customer to tokenize card info
installmentInterestTypeStringOInstallment interest type
installmentPeriodIntegerOInstallment period, in months
tokenStringOToken from card token ID or digital payment
qrTypeStringOQR data type
fxRateIdStringOExchange rate ID
billingAddress1StringOCustomer's billing address 1
billingAddress2StringOCustomer's billing address 2
billingAddress3StringOCustomer's billing address 3
billingCityStringOCustomer's billing city
billingStateStringOCustomer's billing state
billingPostalCodeStringOCustomer's billing postal code
billingCountryCodeStringOCustomer's billing country code
paymentExpiryStringOPayment expiry datetime

 

Payment Info


Class PaymentInfo
ParameterData TypeMandatoryDescription
termsStringMTerms and conditions information
promoUrlStringMPromo image URL
installmentPlansArray MInstallment plan information list

Refer to: Installment Plan
paymentCustomDatasArrayMAdditional custom data from acquirer or specific info for payment channelRefer to: Payment Custom Data
paymentProviderPaymentProviderMPayment provider infoRefer to: Payment Provider

 

Payment Input


Class PaymentInput

Parameter

Data Type

Mandatory

Description

name

String

M

Name input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

email

String

M

Email input view visibility and validation for UI

/8 Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

mobileNo

String

M

Mobile number input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

cardNo

String

M

Credit card number input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

expiryDate

String

M

Credit card expiry date input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

securityCode

String

M

Credit card security code input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

pin

String

M

Credit card pin input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

token

String

M

Token ID input validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

accountNo

String

M

Account number input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

billingAddress1

String

M

Billing address 1 input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

billingAddress2

String

M

Billing address 2 input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

billingAddress3

String

M

Billing address 3 input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

billingCity

String

M

Billing city input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

billingState

String

M

Billing state input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

billingPostalCode

String

M

Billing postal code input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

billingCountryCode

String

M

Billing country code input view visibility and validation for UI

  • Based on admin portal configuration

• M = Mandatory
• O = optional
• I = Ignore

  • Default: M
  • Note: Setting this to “I” (Ignore) will bypass validation and hide the user input field.

Refer to: Payment Input Code

 

Payment Notification


Class PaymentNotification

Parameter

Data Type

Mandatory

Description

facebook

Boolean

M

Facebook subscription view visibility

  • Based on admin portal configuration.
  • Default: false

whatsApp

Boolean

M

WhatsApp subscription view visibility

  • Based on admin portal configuration.
  • Default: false

line

Boolean

M

LINE subscription view visibility

  • Based on admin portal configuration.
  • Default: false

 

Payment Request


Class PaymentRequest
ParameterData TypeMandatoryDescription
codePaymentCodeMPayment code for payment channel information

Refer to: Payment Code
dataPaymentDataMPayment data for payment request

Refer to: Payment Data

 

Payment Result Additional Info


Class PaymentResultAdditionalInfo

Parameter

Data Type

Mandatory

Description

redirectImmediately

Boolean

M

Redirect immediately to frontend return URL

• If set to true: Redirects payment response to frontend return URL

• If set to false: Proceeds based on auto redirection flag

autoRedirect

Boolean

M

Auto redirect to frontend return URL after indicated number of seconds

• If set to true: Auto redirect to payment response in x seconds, based on auto redirect timer

• If set to false: User must proceed manually (click on button)

autoRedirectTimer

Integer

M

Auto redirect countdown

  • Based on admin portal configuration.

  • In milliseconds (ms)

  • 1000 = 1 second

frontendReturnUrl

String

M

Merchant frontend page return URL

  • If the URL is empty, the UI should not display a "Back to merchant" button

frontendReturnData

String

M

Data to be posted to merchant frontend return URL

  • Based on base64 encoding

  • If the data is empty, UI should not display a "Back to merchant" button

responseCode

String

M

Payment result response code

  • 0000 - transaction success (GREEN)

  • 0001 - transaction failed (RED)

  • 0003 - transaction cancelled (RED)

  • 0999 - general error message (GREY)

  • Note: The UI will display a paymentResult message in the colors indicated above

Refer to: API Response Code

responseDescriptionStringMPayment result response description

 

Payment Validation


Class PaymentValidation
ParameterData TypeMandatoryDescription
nameStringMRegex for name input
emailStringMRegex for email address input
mobileNoStringMRegex for mobile number input
cardNoStringMRegex for credit card number input
expiryDateStringMRegex for credit card expiry date input
securityCodeStringMRegex for credit card security code input
pinStringMRegex for credit card PIN input
tokenStringMRegex for card token ID or digital payment input
accountNoStringMRegex for account number input
billingAddress1StringMRegex for billing address 1
billingAddress2StringMRegex for billing address 2
billingAddress3StringMRegex for billing address 3
billingCityStringMRegex for billing city
billingStateStringMRegex for billing state
billingPostalCodeStringMRegex for billing postal code
billingCountryCodeStringMRegex for billing country code
additionalPaymentValidationAdditionalMAdditional validation input of specific channel parametersRefer to: Payment Validation Additional

 

Payment Validation Additional


Class PaymentValidationAdditional
ParameterData TypeMandatoryDescription
cardNoCardNoValidationMCredit card number validation
Refer to: Card No Validation
amountAmountValidationMAmount validation
Refer to: Amount Validation

 

Recurring Payment Info


Class RecurringInfo
ParameterData TypeMandatoryDescription
amountStringMRecurring amount
intervalIntegerMRecurring interval in days
countIntegerMTotal count of recurring payments allowed
chargeNextDateStringMThe next date of recurring payment transaction
chargeOnDateStringMRecurring charge on specific date every month

 

System Initialization


Class SystemInitialization
ParameterData TypeMandatoryDescription
localesArray MLocale information
Refer to: System Locale

 

System Locale


Class SystemLocale

Parameter

Data Type

Mandatory

Description

code

String

M

Locale code

  • Based on ISO 639 codes
nameStringMLocale name
iconUrlStringMLocale icon URL

 

Transaction Additional Info


Class TransactionAdditionalInfo

Parameter

Data Type

Mandatory

Description

amount

String

M

Transaction amount

currencyCode

String

M

Transaction currency code

invoiceNo

String

M

Transaction invoice number

productDescription

String

M

Transaction product description

dateTime

String

M

Process transaction datetime

  • Date format: yyyyMMddHHmmss
agentCodeStringMAgent code
channelCodeStringMAgent channel code
dataStringMProcessed payment data from agent
interestTypeStringMInstallment interest type
interestRateDoubleMInstallment interest rate
monthlyAmountDoubleMInstallment monthly amount
installmentPeriodIntegerMInstallment tenor period

 

Transaction Info


Class TransactionInfo
ParameterData TypeMandatoryDescription
amountStringMTransaction amount
currencyCodeStringMTransaction currency code
invoiceNoStringMTransaction invoice number
productDescriptionStringMTransaction product description
recurringRecurringInfoMRecurring information
Refer to: Recurring Info
paymentItemInfosArrayMPayment items informationRefer to: Payment Item Info

 

Transaction Status Additional Info


Class TransactionStatusAdditionalInfo
ParameterData TypeMandatoryDescription
merchantInfoMerchantAdditionalInfoMAdditional merchant information
Refer to: Merchant Additional Info
transactionInfoTransactionAdditionalInfoMAdditional transaction information
Refer to: Transaction Additional Info
resultInfoPaymentResultAdditionalInfoMAdditional payment result information.=
Refer to: Payment Result Additional Info

 

User Preference


Class UserPreference

Parameter

Data Type

Mandatory

Description

name

String

M

Customer's name

email

String

M

Customer's email address

mobileNo

String

M

Customer's mobile number

mobileNoPrefix

String

M

Customer's mobile number prefix

locale

String

M

Customer's preferred locale

currencyCode

String

M

Customer's current currency code

countryCode

String

M

Customer's current country code

  • Based on ISO 3166-1 codes
  • For pre-selected country codes

 

User Preference Info


Class UserPreferenceInfo
ParameterData TypeMandatoryDescription
preferenceUserPreferenceMUser preference information
Refer to: User Preference
channelsArray MUser preference payment channel list
Refer to: User Preference Payment Channel

 

User Preference Payment Channel


Class UserPreferencePaymentChannel
ParameterData TypeMandatoryDescription
sequenceNoIntegerMSequence number of list
nameStringMPayment channel name
categoryCodeStringMPayment channel category code
groupCodeStringMPayment channel group code
channelCodeStringMPayment channel code
iconUrlStringMPayment channel icon URL
logoUrlStringMPayment channel logo URL

 

Alternative Payment Method Multiple Currency Conversion


Class AlternativePaymentMethodMultipleCurrencyConversion
ParameterData TypeMandatoryDescription
activeBooleanMAlternative payment method multiple currency conversion feature status
termsStringMAlternative payment method multiple currency conversion terms and conditions

 

Payment Custom Data


Class PaymentCustomData
ParameterData TypeMandatoryDescription
sequenceNoIntegerMSequence number of list
typeStringMData typeRefer to: Payment Custom Data Code
dataStringMData information

 

Payment Item Info


Class PaymentItemInfo
ParameterData TypeMandatoryDescription
codeIntegerMPayment item code
nameStringMPayment item name
quantityIntegerMPayment item quantity
priceDoubleMPayment item price

 

User Address


Class UserAddress
ParameterData TypeMandatoryDescription
userBillingAddressUserBillingAddressMCustomer's billing addressRefer to: User Billing Address

 

User Billing Address


Class UserBillingAddress
ParameterData TypeMandatoryDescription
address1StringMCustomer's billing address 1
address2StringMCustomer's billing address 2
address3StringMCustomer's billing address 3
cityStringMCustomer's billing city
stateStringMCustomer's billing state
postalCodeStringMCustomer's billing postal code
countryCodeStringMCustomer's billing country code

 

User Info


Class UserInfo
ParameterData TypeMandatoryDescription
userAddressUserAddressMCustomer's address
Refer to: User Address

 

Transaction Result Additional Info


Class TransactionResultAdditionalInfo
ParameterData TypeMandatoryDescription
qrDataStringOQR data
barcodeDataStringOBarcode data
referenceNoStringOPayment reference number

 

Payment Provider


Class PaymentProvider
ParameterData TypeMandatoryDescription
idStringCPayment provider ID
channelsArrayCAllowed payment channels
merchantInfoMerchantInfoCMerchant informationRefer to: Merchant Info
transactionInfoTransactionInfoCTransaction informationRefer to: Transaction Info