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