Skip to content

Commit

Permalink
Merge pull request #5 from alexminza/master
Browse files Browse the repository at this point in the history
Extra Response fields support
  • Loading branch information
ruscon authored Nov 23, 2017
2 parents 52b6204 + d56c4a0 commit 0b1d176
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/VictoriaBank/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];

Expand Down
4 changes: 4 additions & 0 deletions src/VictoriaBank/ResponseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b1d176

Please sign in to comment.