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.
| Value | Account Type | Description |
|---|---|---|
1 | ADMIN | System administrator user |
2 | USER | Regular customer user |
3 | MERCHANT | Business merchant user |
4 | STAFF | Company staff member |
5 | AGENT | System agent user |
User Status
Different status values for user accounts.
| Value | Constant | Description |
|---|---|---|
1 | USER_STATUS_ACTIVE | User account is active and functional |
2 | USER_STATUS_INACTIVE | User account is inactive |
3 | USER_STATUS_ONBOARD | User is in onboarding process |
4 | USER_STATUS_BLOCKED | User account is blocked |
5 | USER_STATUS_SUSPENDED | User account is suspended |
6 | USER_STATUS_REJECTED | User account is rejected |
KYC Status
KYC (Know Your Customer) verification status levels.
| Value | Constant | Description |
|---|---|---|
1 | NO_KYC_STATUS | No KYC verification completed |
2 | FULL_KYC_STATUS | Full KYC verification completed |
KYC Process Status
Detailed KYC process workflow statuses.
| Value | Constant | Description |
|---|---|---|
1 | KYC_PROCESS_STATUS_PENDING | KYC process is pending |
2 | KYC_PROCESS_STATUS_INIT | KYC process has been initiated |
3 | KYC_PROCESS_STATUS_KYC_VERIFIED | KYC has been verified |
4 | KYC_PROCESS_STATUS_KYC_APPROVED | KYC has been approved |
5 | KYC_PROCESS_STATUS_KYC_REJECTED | KYC has been rejected |
6 | KYC_PROCESS_STATUS_KYC_EXPIRED | KYC has expired |
Payment Request Status
Different status values for payment requests.
| Value | Constant | Description |
|---|---|---|
1 | PAYMENT_STATUS_PENDING | Payment request is pending |
2 | PAYMENT_STATUS_COMPLETED | Payment has been completed |
3 | PAYMENT_STATUS_CANCELLED_BY_INITIATOR | Payment cancelled by the person who initiated it |
4 | PAYMENT_STATUS_CANCELLED_BY_PAYER | Payment cancelled by the person who was supposed to pay |
Split Type
Different types of payment splitting mechanisms.
| Value | Constant | Description |
|---|---|---|
1 | SPLIT_EQUALLY | Split payment equally among all participants |
2 | SPLIT_UNEQUALLY | Split payment unequally among participants |
Payment Request Type
Different types of payment requests.
| Value | Description |
|---|---|
1 | Split Payment Request |
2 | Normal Payment Request |
Transaction Status Reference List
Different status values for transactions in the system.
| Value | Constant | Description |
|---|---|---|
1 | TRANSACTION_STATUS_PENDING | Transaction is pending processing |
2 | TRANSACTION_STATUS_APPROVED | Transaction has been approved |
3 | TRANSACTION_STATUS_SUCCESS | Transaction completed successfully |
4 | TRANSACTION_STATUS_FAILED | Transaction failed during processing |
5 | TRANSACTION_STATUS_REJECTED | Transaction was rejected |
6 | TRANSACTION_STATUS_REFUNDED | Transaction has been refunded |
Payment Mode Reference List
Different payment modes available for transactions.
| Value | Constant | Description |
|---|---|---|
1 | TRANSACTION_PAYMENT_MODE_CASH | Cash payment mode |
2 | TRANSACTION_PAYMENT_MODE_CARD | Card payment mode (credit/debit cards) |
3 | TRANSACTION_PAYMENT_MODE_WALLET | Digital wallet payment mode |
4 | TRANSACTION_PAYMENT_MODE_NET_BANKING | Net banking payment mode |
5 | TRANSACTION_PAYMENT_MODE_GOOGLE_PAY | Google Pay payment mode |
Credit/Debit Reference List
Different types of credit and debit sources.
| Value | Constant | Description |
|---|---|---|
1 | CREDIT_TYPE_WALLET | Credit/debit from digital wallet |
2 | CREDIT_TYPE_CARD | Credit/debit from card account |
3 | CREDIT_TYPE_BANK | Credit/debit from bank account |
Transaction Product Codes
Transaction product codes used for different types of transactions in the wallet system.
| Code | Constant | Description |
|---|---|---|
SWW | TXN_PRODUCT_CODE_SUB_WALLET_WITHDRAW | Sub wallet withdraw |
SWTR | TXN_PRODUCT_CODE_SUB_WALLET_TRANSFER | Sub wallet transfer |
SWT | TXN_PRODUCT_CODE_SUB_WALLET_TOPUP | Sub wallet topup |
P2P | TXN_PRODUCT_CODE_P2P_TRANSFER_MONEY | Peer to peer transfer |
IWT | TXN_PRODUCT_CODE_INTER_WALLET_TRANSFER_MONEY | Inter wallet transfer |
P2M | TXN_PRODUCT_CODE_PAY_TO_MERCHANT_MONEY | Pay to merchant |
M2M | TXN_PRODUCT_CODE_MERCHANT_TO_MERCHANT_MONEY | Merchant to merchant |
A2A | TXN_PRODUCT_CODE_A2A_TRANSFER_MONEY | Agent to agent transfer |
CIB | TXN_PRODUCT_CODE_CASH_IN_BANK | Cash in bank |
COB | TXN_PRODUCT_CODE_CASH_OUT_BANK | Cash out bank |
MR | TXN_PRODUCT_CODE_MERCHANT_REFUND | Merchant refund |
CR | TXN_PRODUCT_CODE_CUSTOMER_REFUND | Customer refund |
CIC | TXN_PRODUCT_CODE_CASH_IN_FOR_CUSTOMER_VIA_AGENT | Cash in for customer via agent |
COC | TXN_PRODUCT_CODE_CASH_OUT_FOR_CUSTOMER_VIA_AGENT | Cash out for customer via agent |
CBP | TXN_PRODUCT_CODE_CORPORATE_BULK_PAYMENT | Corporate bulk payment |
CTW | TXN_PRODUCT_CODE_COMMISSION_TRANSFER_TO_WALLET | Commission transfer to wallet |
BP | TXN_PRODUCT_CODE_BILL_PAYMENT | Bill payment |
RCG | TXN_PRODUCT_CODE_RECHARGE | Recharge |