Additional Information & Security Protocols

This section provides essential supplementary information for working with the PayGate PayHost API. It includes a reference table of common error codes to assist with troubleshooting, as well as an overview of card authentication protocols like MasterCard SecureCode and Verified by Visa. Understanding these mechanisms helps merchants reduce fraud, manage chargeback liability, and ensure secure transaction flows.

Error Codes

Below is a list of common error codes returned by the PayHost API and their descriptions:

CodeDescription
DATA_CHKChecksum calculated incorrectly
DATA_PAY_REQ_IDPay request ID missing or invalid
ND_INV_PGIDInvalid PayGate ID
ND_INV_PRIDInvalid Pay Request ID
PGID_NOT_ENPayGate ID not enabled — no available payment methods or currencies
TXN_CANTransaction has already been cancelled
TXN_CMPTransaction has already been completed
TXN_PRCTransaction is older than 30 minutes or there was an error processing it

MasterCard SecureCode & Verified by Visa

What is SecureCode and Verified by Visa?

SecureCode and Verified by Visa are fraud prevention initiatives by MasterCard and Visa, respectively. These protocols add an extra layer of authentication for online transactions made with MasterCard and Visa cards.

  • Visa: Verified by Visa (V-by-V)
  • MasterCard: MasterCard SecureCode

Benefits for Merchants

  • Reduces the risk of fraudulent transactions.
  • Shifts liability for certain chargebacks from the merchant to the cardholder or issuing bank.
  • Note: Some chargebacks may still remain the merchant’s responsibility depending on the authentication flow.

How It Works

  1. The cardholder initiates a purchase on the PayGate payment page.
  2. They are redirected to their issuing bank’s authentication page.
  3. The cardholder enters their authentication details (e.g., secret PIN).
  4. The bank validates the credentials and returns a response to PayGate:
    • OK → Transaction is forwarded to the acquiring bank for authorization.
    • Not OK → Transaction is declined by PayGate.
⚠️

Not all issuing banks enforce registration for SecureCode or Verified by Visa.
In such cases, the redirect still occurs, but authentication may not be completed. The response will indicate that authentication was attempted, and liability shifts to the issuing bank.


What About Other Cards?

Cards such as American Express (AMEX) and Diners Club are not authenticated via SecureCode or Verified by Visa.

  • Transactions made with these cards do not benefit from liability shift.
  • The merchant retains full risk for these transactions.