我正在尝试在 laravel 项目中实现剃须刀支付 api,面临很多问题
include(app_path().'/includes/razor/Razorpay.php');
use Razorpay\Api\Api;
class OwnerController extends BaseController
{
if (Config::get('app.default_payment') == 'razor') {
$api_key = "rzp_test_f***wPfD7sR29W";
$api_secret = "lJ********u81oURV8CEA3Yf";
$api = new Api($api_key, $api_secret);
$customer = $api->customer->create(array(
'name' => 'Razorpay User6',
'email' => 'customer6@razorpay.com'
)); // Creates customer
print_r($customer);
die();
}
}
我收到以下错误
找到但不匹配的请求类
请在这件事上给予我帮助
我已经把剃须刀文件夹放在里面app/includes/razor