Esempio n. 1
0
 private static function setUpHttpClient()
 {
     self::$httpClient = new Client('http://[::1]:8999');
     if (DebugHelper::isDebug()) {
         DebugHelper::addDebugOptionsToHttpClient(self::$httpClient);
     }
 }
 private static function createXsollaClient($merchantId, $apiKey)
 {
     $xsollaClient = XsollaClient::factory(array('merchant_id' => $merchantId, 'api_key' => $apiKey));
     if (DebugHelper::isDebug()) {
         DebugHelper::addDebugOptionsToHttpClient($xsollaClient);
     }
     return $xsollaClient;
 }