public function getChargeById($myshopify, $token, $id)
    {
        $this->setRequestPath($myshopify);

        $url = $this->getChargeEndpoint(). '/' . $id . '.json';

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

        return json_decode($response->getBody(), true);
    }
public function getChargeById($myshopify, $token, $id)
    {
        $this->setRequestPath($myshopify);

        $url = $this->getChargeEndpoint(). '/' . $id . '.json';

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

        return json_decode($response->getBody(), true);
    }
public function getChargeById ( $ myshopify , $ token , $ id ) { $ this -> setRequestPath ( $ myshopify ) ; $ url = $ this -> getChargeEndpoint ( ) . '/' . $ id . '.json' ; $ response = $ this -> getHttpClient ( ) -> get ( $ url , [ 'headers' => $ this -> getResponseHeaders ( $ token ) ] ) ; return json_decode ( $ response -> getBody ( ) , true ) ; }
retrieve a specific charge by id, myshopify domain and access token

@param string $myshopify myshopify domain
@param string $token access_token
@param string $id chargeID
@return mixed
retrieve a specific charge by id myshopify domain and access token