Mollie\Laravel\MollieConnectProvider::getAccessToken PHP Method

getAccessToken() public method

Get the access token for the given code.
public getAccessToken ( string $code ) : string
$code string
return string
    public function getAccessToken($code)
    {
        $response = $this->getHttpClient()->post($this->getTokenUrl(), ['headers' => ['Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret)], 'form_params' => $this->getTokenFields($code)]);
        return $this->parseAccessToken($response->getBody());
    }