protected function getCreateChargeResponse($url, $token)
    {
        $postKey = $this->httpClientVersionCheck();

        $response = $this->getHttpClient()->post($url,
        [
            'headers'=> $this->getResponseHeaders($token),
            $postKey => $this->getOptions()
        ]);

        return json_decode($response->getBody(), true);
    }
protected function getCreateChargeResponse($url, $token)
    {
        $postKey = $this->httpClientVersionCheck();

        $response = $this->getHttpClient()->post($url,
        [
            'headers'=> $this->getResponseHeaders($token),
            $postKey => $this->getOptions()
        ]);

        return json_decode($response->getBody(), true);
    }
protected function getCreateChargeResponse ( $ url , $ token ) { $ postKey = $ this -> httpClientVersionCheck ( ) ; $ response = $ this -> getHttpClient ( ) -> post ( $ url , [ 'headers' => $ this -> getResponseHeaders ( $ token ) , $ postKey => $ this -> getOptions ( ) ] ) ; return json_decode ( $ response -> getBody ( ) , true ) ; }
get the Create Charge response for the given url and access token

@param string $url
@param string $token
@return mixed
get the Create Charge response for the given url and access token