【发布时间】:2020-07-04 17:32:29
【问题描述】:
我正在使用带有 Laravel 框架的 Braintree PHP SDK。
我通过 composer 安装了 Braintree。
然后,在 AppServiceProvider.php 中,我在 boot() 中添加了以下代码:
Braintree_Configuration::environment('sandbox');
Braintree_Configuration::merchantId('merchand_id');
Braintree_Configuration::publicKey('public_key');
Braintree_Configuration::privateKey('private_key');
当尝试生成 client_token 时,出现以下错误:
Symfony\Component\Debug\Exception\FatalThrowableError: 类 'App\Providers\Braintree_Configuration' 未在 AppServiceProvider.php 第 34 行
【问题讨论】:
标签: php laravel braintree-sandbox