我完全按照 GoCardless API 'Getting Started' 说明进行操作,但在尝试运行简单脚本时出现此错误
“带有消息‘选项access_token
只能是字符串’的未捕获异常‘异常’。”
require '../../vendor/autoload.php';
$client = new \GoCardlessPro\Client([
// We recommend storing your access token in an environment variable for security, but you could include it as a string directly in your code
'access_token' => getenv('sandbox_XXXX-XXXXx_XXX_XXX-XXX'),
// Change me to LIVE when you're ready to go live
'environment' => \GoCardlessPro\Environment::SANDBOX
]);
我做错了什么?