예제 #1
0
 /**
  * Registering DMS authorization
  * 	 * @param  string $amount
  * 	 * @param  string $currency
  * 	 * @param  string $clientIpAddr
  * 	 * @param  string $description
  * 	 * @param  string $language
  * DMS is different from SMS, dms_start_authorization blocks amount, and than we use dms_make_transaction to charge customer.
  * @return array  TRANSACTION_ID
  * TRANSACTION_ID - transaction identifier (28 characters in base64 encoding)
  * error          - in case of an error
  */
 public function registerDmsAuthorization($amount, $currency, $clientIpAddr, $description = '', $language = 'ru')
 {
     $args = ['command' => 'a', 'amount' => $amount, 'currency' => $currency, 'client_ip_addr' => $clientIpAddr, 'description' => $description, 'language' => $language];
     return parent::registerDmsAuthorization($args);
 }