我正在尝试在laravel项目中实施razor payment 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();
}
}
我收到以下错误
发现请求类但不匹配
请帮我解决这个问题
我已将razor文件夹放在app/includes/razor
答案 0 :(得分:0)