Ejemplo n.º 1
0
 /**
  * Executing a DMS transaction
  * @param  string $authId
  * @param  string $amount
  * @param  string $currency
  * @param  string $clientIpAddr
  * @param  string $description
  * @param  string $language
  * @return array  RESULT, RESULT_CODE, BRN, APPROVAL_CODE, CARD_NUMBER, error
  * RESULT         - transaction results: OK - successful transaction, FAILED - failed transaction
  * RESULT_CODE    - transaction result code returned from Card Suite Processing RTPS (3 digits)
  * BRN            - retrieval reference number returned from Card Suite Processing RTPS (12 characters)
  * APPROVAL_CODE  - approval code returned from Card Suite Processing RTPS (max 6 characters)
  * CARD_NUMBER    - masked card number
  * error          - in case of an error
  */
 public function makeDMSTrans($authId, $amount, $currency, $clientIpAddr, $description = '', $language = 'ru')
 {
     $args = ['command' => 't', 'auth_id' => $authId, 'amount' => $amount, 'currency' => $currency, 'client_ip_addr' => $clientIpAddr, 'description' => $description, 'language' => $language];
     return parent::makeDMSTrans($args);
 }