mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Initialize \Razorpay\Api\Api client
This commit is contained in:
parent
4c1dd8e03a
commit
eaa94bdebe
@ -29,7 +29,7 @@ class RazorpayPaymentDriver extends BaseDriver
|
|||||||
|
|
||||||
public $can_authorise_credit_card = false;
|
public $can_authorise_credit_card = false;
|
||||||
|
|
||||||
public $gateway;
|
public \Razorpay\Api\Api $gateway;
|
||||||
|
|
||||||
public $payment_method;
|
public $payment_method;
|
||||||
|
|
||||||
@ -39,6 +39,16 @@ class RazorpayPaymentDriver extends BaseDriver
|
|||||||
|
|
||||||
const SYSTEM_LOG_TYPE = SystemLog::TYPE_RAZORPAY;
|
const SYSTEM_LOG_TYPE = SystemLog::TYPE_RAZORPAY;
|
||||||
|
|
||||||
|
public function init(): self
|
||||||
|
{
|
||||||
|
$this->gateway = new \Razorpay\Api\Api(
|
||||||
|
$this->company_gateway->getConfigField('apiKey'),
|
||||||
|
$this->company_gateway->getConfigField('apiSecret'),
|
||||||
|
);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function gatewayTypes(): array
|
public function gatewayTypes(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user