Php Laravel支付网关-Softon\Indipay\Exceptions\IndipayParametersMissingException
我在本地系统上有一个laravel项目,我使用了以下软件包作为ccavenue支付网关 包名称: 下面是我的配置文件Php Laravel支付网关-Softon\Indipay\Exceptions\IndipayParametersMissingException,php,laravel,payment-gateway,ccavenue,Php,Laravel,Payment Gateway,Ccavenue,我在本地系统上有一个laravel项目,我使用了以下软件包作为ccavenue支付网关 包名称: 下面是我的配置文件 'gateway' => 'ccavenue', // Replace with the name of default gateway you want to use 'testMode' => true, // True for Testing the Gateway [For production
'gateway' => 'ccavenue', // Replace with the name of default gateway you want to use
'testMode' => true, // True for Testing the Gateway [For production false]
'ccavenue' => [
// CCAvenue Parameters
'merchantId' => env('INDIPAY_MERCHANT_ID', '*****'),
'accessCode' => env('INDIPAY_ACCESS_CODE', '*****'),
'workingKey' => env('INDIPAY_WORKING_KEY', '*****'),
// Should be route address for url() function
'redirectUrl' => env('INDIPAY_REDIRECT_URL', 'indipay/response'),
'cancelUrl' => env('INDIPAY_CANCEL_URL', 'indipay/response'),
'currency' => env('INDIPAY_CURRENCY', 'INR'),
'language' => env('INDIPAY_LANGUAGE', 'EN'),
],
这是我的控制器代码
public function payment()
{
$parameters = [
'transaction_no' => time(),
'merchant_id' => env('INDIPAY_MERCHANT_ID'),
'redirect_url' => env('REDIRECT_URL'),
'cancel_url' => env('CANCEL_URL'),
'currency' => "INR",
'language' => 'EN',
'redirect_url'=>env('INDIPAY_REDIRECT_URL'),
'cancel_url' =>env('INDIPAY_CANCEL_URL'),
'order_id' => 12345,
'amount' => 1,
'name' => '**** ****',
'email' => '*****@****.com'
];
$order = Indipay::prepare($parameters);
return Indipay::process($order);
}
下面是一个错误
我通过在同一个数据库中绕过所有必要的参数,解决了这个错误 在这里,我使用ccavenue作为支付网关 例如:
$parameters = [
'transaction_no' => time(), // necessary paramenets
'merchant_id' => env('INDIPAY_MERCHANT_ID'), // necessary paramenets
'redirect_url' => url('payment'), // necessary paramenets
'cancel_url' => url('payment'), // necessary paramenets
'currency' => "INR", // necessary paramenets
'language' => 'EN', // necessary paramenets
'order_id' => 12345, // necessary paramenets
'amount' => 1, // necessary paramenets
'name' => '***** *****',
'email' => '*****@*****.com'
];
你能告诉我们,你到底想达到什么目的吗?您是否已经尝试过任何方法来解决您的问题?你的问题是什么时候出现的?实际上,我想在传递参数时集成cc avenue支付网关API,因为我遇到了这个错误,或者只是不写两次相同的索引
'cancel\u url'
&'redirect\u url'
,这才是问题的真正原因