Example #1
0
 public static function depositPayment(TpMerchantConfig $config, $merchantData)
 {
     $client = new SoapClient($config->webServicesWsdl);
     $signature = static::getSignature(array('merchantId' => $config->merchantId, 'accountId' => $config->accountId, 'merchantData' => $merchantData, 'password' => $config->password));
     $result = $client->cardDepositPaymentRequest(array('merchantId' => $config->merchantId, 'accountId' => $config->accountId, 'merchantData' => $merchantData, 'signature' => $signature));
     if (!$result) {
         throw new TpException();
     }
     return new TpCardPaymentResponse($result);
 }