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

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

        $postkey = $this->httpClientVersionCheck();

        $response = $this->getHttpClient()->post($url, [
            'headers' => $this->getResponseHeaders($token),
            $postkey => $this->getChargeById($myshopify, $token, $id)
        ]);

        $this->activated = json_decode($response->getBody(), true);

        return $this;

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

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

        $postkey = $this->httpClientVersionCheck();

        $response = $this->getHttpClient()->post($url, [
            'headers' => $this->getResponseHeaders($token),
            $postkey => $this->getChargeById($myshopify, $token, $id)
        ]);

        $this->activated = json_decode($response->getBody(), true);

        return $this;

    }
public function activate ( $ myshopify , $ token , $ id ) { $ this -> setRequestPath ( $ myshopify ) ; $ url = $ this -> getChargeEndpoint ( ) . '/' . $ id . '/activate.json' ; $ postkey = $ this -> httpClientVersionCheck ( ) ; $ response = $ this -> getHttpClient ( ) -> post ( $ url , [ 'headers' => $ this -> getResponseHeaders ( $ token ) , $ postkey => $ this -> getChargeById ( $ myshopify , $ token , $ id ) ] ) ; $ this -> activated = json_decode ( $ response -> getBody ( ) , true ) ; return $ this ; }
Activate a specific charge

@param string $myshopify myshopify domain
@param string $token access token
@param string $id  charge id
@return mixed
Activate a specific charge