Skip to main content

Constants

Overview

This page contains all the constants, enums, and standard values used across the GafaPay Authentication APIs.

User Types

Used to identify different types of users in the system.

ValueAccount TypeDescription
1ADMINSystem administrator user
2USERRegular customer user
3MERCHANTBusiness merchant user
4STAFFCompany staff member
5AGENTSystem agent user

User Status

Different status values for user accounts.

ValueConstantDescription
1USER_STATUS_ACTIVEUser account is active and functional
2USER_STATUS_INACTIVEUser account is inactive
3USER_STATUS_ONBOARDUser is in onboarding process
4USER_STATUS_BLOCKEDUser account is blocked
5USER_STATUS_SUSPENDEDUser account is suspended
6USER_STATUS_REJECTEDUser account is rejected

KYC Status

KYC (Know Your Customer) verification status levels.

ValueConstantDescription
1NO_KYC_STATUSNo KYC verification completed
2FULL_KYC_STATUSFull KYC verification completed

KYC Process Status

Detailed KYC process workflow statuses.

ValueConstantDescription
1KYC_PROCESS_STATUS_PENDINGKYC process is pending
2KYC_PROCESS_STATUS_INITKYC process has been initiated
3KYC_PROCESS_STATUS_KYC_VERIFIEDKYC has been verified
4KYC_PROCESS_STATUS_KYC_APPROVEDKYC has been approved
5KYC_PROCESS_STATUS_KYC_REJECTEDKYC has been rejected
6KYC_PROCESS_STATUS_KYC_EXPIREDKYC has expired

Payment Request Status

Different status values for payment requests.

ValueConstantDescription
1PAYMENT_STATUS_PENDINGPayment request is pending
2PAYMENT_STATUS_COMPLETEDPayment has been completed
3PAYMENT_STATUS_CANCELLED_BY_INITIATORPayment cancelled by the person who initiated it
4PAYMENT_STATUS_CANCELLED_BY_PAYERPayment cancelled by the person who was supposed to pay

Split Type

Different types of payment splitting mechanisms.

ValueConstantDescription
1SPLIT_EQUALLYSplit payment equally among all participants
2SPLIT_UNEQUALLYSplit payment unequally among participants

Payment Request Type

Different types of payment requests.

ValueDescription
1Split Payment Request
2Normal Payment Request

Transaction Status Reference List

Different status values for transactions in the system.

ValueConstantDescription
1TRANSACTION_STATUS_PENDINGTransaction is pending processing
2TRANSACTION_STATUS_APPROVEDTransaction has been approved
3TRANSACTION_STATUS_SUCCESSTransaction completed successfully
4TRANSACTION_STATUS_FAILEDTransaction failed during processing
5TRANSACTION_STATUS_REJECTEDTransaction was rejected
6TRANSACTION_STATUS_REFUNDEDTransaction has been refunded

Payment Mode Reference List

Different payment modes available for transactions.

ValueConstantDescription
1TRANSACTION_PAYMENT_MODE_CASHCash payment mode
2TRANSACTION_PAYMENT_MODE_CARDCard payment mode (credit/debit cards)
3TRANSACTION_PAYMENT_MODE_WALLETDigital wallet payment mode
4TRANSACTION_PAYMENT_MODE_NET_BANKINGNet banking payment mode
5TRANSACTION_PAYMENT_MODE_GOOGLE_PAYGoogle Pay payment mode

Credit/Debit Reference List

Different types of credit and debit sources.

ValueConstantDescription
1CREDIT_TYPE_WALLETCredit/debit from digital wallet
2CREDIT_TYPE_CARDCredit/debit from card account
3CREDIT_TYPE_BANKCredit/debit from bank account

Transaction Product Codes

Transaction product codes used for different types of transactions in the wallet system.

CodeConstantDescription
SWWTXN_PRODUCT_CODE_SUB_WALLET_WITHDRAWSub wallet withdraw
SWTRTXN_PRODUCT_CODE_SUB_WALLET_TRANSFERSub wallet transfer
SWTTXN_PRODUCT_CODE_SUB_WALLET_TOPUPSub wallet topup
P2PTXN_PRODUCT_CODE_P2P_TRANSFER_MONEYPeer to peer transfer
IWTTXN_PRODUCT_CODE_INTER_WALLET_TRANSFER_MONEYInter wallet transfer
P2MTXN_PRODUCT_CODE_PAY_TO_MERCHANT_MONEYPay to merchant
M2MTXN_PRODUCT_CODE_MERCHANT_TO_MERCHANT_MONEYMerchant to merchant
A2ATXN_PRODUCT_CODE_A2A_TRANSFER_MONEYAgent to agent transfer
CIBTXN_PRODUCT_CODE_CASH_IN_BANKCash in bank
COBTXN_PRODUCT_CODE_CASH_OUT_BANKCash out bank
MRTXN_PRODUCT_CODE_MERCHANT_REFUNDMerchant refund
CRTXN_PRODUCT_CODE_CUSTOMER_REFUNDCustomer refund
CICTXN_PRODUCT_CODE_CASH_IN_FOR_CUSTOMER_VIA_AGENTCash in for customer via agent
COCTXN_PRODUCT_CODE_CASH_OUT_FOR_CUSTOMER_VIA_AGENTCash out for customer via agent
CBPTXN_PRODUCT_CODE_CORPORATE_BULK_PAYMENTCorporate bulk payment
CTWTXN_PRODUCT_CODE_COMMISSION_TRANSFER_TO_WALLETCommission transfer to wallet
BPTXN_PRODUCT_CODE_BILL_PAYMENTBill payment
RCGTXN_PRODUCT_CODE_RECHARGERecharge