<?php
require("vendor/autoload.php");
//...
$authProvider = new \RevolutPHP\Auth\Provider([
'clientId' => '{clientId}', // As shown when uploading your key
'privateKey' => 'sk_F7PVCXsUUMlQpGRYz3lN1Yxd-KsGkdYbjVbFugwPoWkvvqGOukcnlajxTOS8mrNV',
'redirectUri' => 'pk_HiQdMyLEmjpHBnAemaaklQqatz2pTfzdJrRCEhn0rAVqrxZK', // The URL to redirect the user to after the authorisation step
'isSandbox' => true
]);
// redirect the user to the authorization flow in the Revolut for Business app
echo $url = $authProvider->getAuthorizationUrl();
// Authorized user -> authorization code against an access token
$accessToken = $authProvider->getAccessToken('authorization_code', [
'code' => $_GET['code']
]);
?>
Sorry, I forgot to post my code, but the link is safe, it's a link to a tutorial on the API that I'm following. And the error is on line 14