diff --git a/src/VictoriaBank/Response.php b/src/VictoriaBank/Response.php index 0b8a1c1..979dab7 100755 --- a/src/VictoriaBank/Response.php +++ b/src/VictoriaBank/Response.php @@ -32,12 +32,16 @@ abstract class Response implements ResponseInterface self::CURRENCY => null, self::ACTION => null, self::RC => null, + self::TEXT => null, self::APPROVAL => null, self::RRN => null, self::INT_REF => null, self::TIMESTAMP => null, self::NONCE => null, self::P_SIGN => null, + self::BIN => null, + self::CARD => null, + self::AUTH => null, self::ECI => null, ]; diff --git a/src/VictoriaBank/ResponseInterface.php b/src/VictoriaBank/ResponseInterface.php index 4c6b4b9..26064a4 100644 --- a/src/VictoriaBank/ResponseInterface.php +++ b/src/VictoriaBank/ResponseInterface.php @@ -13,12 +13,16 @@ interface ResponseInterface const CURRENCY = 'CURRENCY'; #Size: 3, Echo from the request const ACTION = 'ACTION'; #Size: 1, E-Gateway action code: 0 – Transaction successfully completed;1 – Duplicate transaction detected;2 – Transaction declined;3 – Transaction processing fault. const RC = 'RC'; #Size: 02, Transaction response code (ISO-8583 Field 39) + const TEXT = 'TEXT'; const APPROVAL = 'APPROVAL'; #Size: 06, Client bank’s approval code (ISO-8583 Field 38). Can be empty if not provided by card management system. const RRN = 'RRN'; #Size: 12, Merchant bank’s retrieval reference number (ISO-8583 Field 37). const INT_REF = 'INT_REF'; #Size: 1-32, E-Commerce gateway internal reference number const TIMESTAMP = 'TIMESTAMP'; #Size: 14, E-Commerce gateway timestamp in GMT: YYYYMMDDHHMMSS const NONCE = 'NONCE'; #Size: 1-64, E-Commerce gateway nonce value. Will be filled with 8-32 unpredictable random bytes in hexadecimal format. Will be present if MAC is used. const P_SIGN = 'P_SIGN'; #Size: 1-256, E-Commerce gateway MAC (Message Authentication Code) in hexadecimal form. Will be present if MAC is used. + const BIN = 'BIN'; + const CARD = 'CARD'; + const AUTH = 'AUTH'; const ECI = 'ECI'; #Size: 0-02, Electronic Commerce Indicator (ECI): ECI=empty – Technical fault;ECI=05 - Secure electronic commerce transaction (fully 3-D Secure authenticated);ECI=06 - Non-authenticated security transaction at a 3-D Secure-capable merchant, and merchant attempted to authenticate the cardholder using 3-D Secure but was unable to complete the authentication because the issuer or cardholder does not participate in the 3-D Secure program;ECI=07 - Non-authenticated Security Transaction const STATUS_SUCCESS = 0; #Transaction successfully completed