Container for SDK constants

Namespace: Mypos\IPC
Located at Defines.php 

Constants summary

string COMMUNICATION_FORMAT_XML
 
#'xml'
string COMMUNICATION_FORMAT_JSON
 
#'json'
string COMMUNICATION_FORMAT_POST
 
#'post'
integer SIGNATURE_ALGO
 
#OPENSSL_ALGO_SHA256
integer STATUS_SUCCESS
 
#0
integer STATUS_MISSING_REQ_PARAMS
 
#1
integer STATUS_SIGNATURE_FAILED
 
#2
integer STATUS_IPC_ERROR
 
#3
integer STATUS_INVALID_SID
 
#4
integer STATUS_INVALID_PARAMS
 
#5
integer STATUS_INVALID_REFERER
 
#6
integer STATUS_PAYMENT_TRIES
 
#7
integer STATUS_TRANSACTION_AUTH_FAIL
 
#8
integer STATUS_WRONG_AMOUNT
 
#9
integer STATUS_UNSUPPORTED_CALL
 
#10
integer STATUS_INACTIVE_MANDATE_REFERENCE
 
#11
integer STATUS_INVALID_MANDATE_REFERENCE
 
#12
integer STATUS_NOT_SUFFICIENT_FUNDS
 
#13
integer STATUS_TRANSACTION_NOT_PERMITTED
 
#14
integer STATUS_EXCEEDED_LIMIT
 
#15
integer STATUS_MANDATE_ALREADY_REGISTERED
 
#16
integer STATUS_INACTIVE_ACOUNTIDENTIFIER
 
#17
integer STATUS_INVALID_ACOUNTIDENTIFIER
 
#18
integer STATUS_EXCEEDED_ACCOUNT_LIMITS
 
#19
integer STATUS_DUPLICATE_TRANSMISSION
 
#20
integer STATUS_TRANSACTION_DECLINED
 
#21
integer STATUS_UNDEFINED_ERROR
 
#99
integer ENCRYPT_PADDING
 
#OPENSSL_PKCS1_PADDING

 

Example

<?php
namespace Mypos\IPC;
/**
 * Container for SDK constants
 */
class Defines
{
    const COMMUNICATION_FORMAT_XML = 'xml';
    const COMMUNICATION_FORMAT_JSON = 'json';
    const COMMUNICATION_FORMAT_POST = 'post';
    const SIGNATURE_ALGO = OPENSSL_ALGO_SHA256;
    const AVL_CURRENCIES = 'EUR;USD;GBP;HRK;CHF;RON;JPY;BGN';
    const STATUS_SUCCESS = 0;
    const STATUS_MISSING_REQ_PARAMS = 1;
    const STATUS_SIGNATURE_FAILED = 2;
    const STATUS_IPC_ERROR = 3;
    const STATUS_INVALID_SID = 4;
    const STATUS_INVALID_PARAMS = 5;
    const STATUS_INVALID_REFERER = 6;
    const STATUS_PAYMENT_TRIES = 7;
    const STATUS_TRANSACTION_AUTH_FAIL = 8;
    const STATUS_WRONG_AMOUNT = 9;
    const STATUS_UNSUPPORTED_CALL = 10;
    const STATUS_INACTIVE_MANDATE_REFERENCE = 11;
    const STATUS_INVALID_MANDATE_REFERENCE = 12;
    const STATUS_NOT_SUFFICIENT_FUNDS = 13;
    const STATUS_TRANSACTION_NOT_PERMITTED = 14;
    const STATUS_EXCEEDED_LIMIT = 15;
    const STATUS_MANDATE_ALREADY_REGISTERED = 16;
    const STATUS_INACTIVE_ACOUNTIDENTIFIER = 17;
    const STATUS_INVALID_ACOUNTIDENTIFIER = 18;
    const STATUS_EXCEEDED_ACCOUNT_LIMITS = 19;
    const STATUS_DUPLICATE_TRANSMISSION = 20;
    const STATUS_TRANSACTION_DECLINED = 21;
    const STATUS_UNDEFINED_ERROR = 99;
    const ENCRYPT_PADDING = OPENSSL_PKCS1_PADDING;
    private function __construct() { }
}