mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:04:41 -04:00
Bug fixes
This commit is contained in:
parent
9427f5180f
commit
eafaa4c8d2
@ -122,10 +122,12 @@ class PaymentController extends \BaseController
|
|||||||
$gateway->$function($val);
|
$gateway->$function($val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (!Utils::isProd())
|
if (!Utils::isProd())
|
||||||
{
|
{
|
||||||
$gateway->setTestMode(true);
|
$gateway->setTestMode(true);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return $gateway;
|
return $gateway;
|
||||||
}
|
}
|
||||||
@ -386,6 +388,8 @@ class PaymentController extends \BaseController
|
|||||||
{
|
{
|
||||||
$gateway = self::createGateway($accountGateway);
|
$gateway = self::createGateway($accountGateway);
|
||||||
$details = self::getLicensePaymentDetails(Input::all());
|
$details = self::getLicensePaymentDetails(Input::all());
|
||||||
|
$response = $gateway->purchase($details)->send();
|
||||||
|
$ref = $response->getTransactionReference();
|
||||||
|
|
||||||
if (!$ref)
|
if (!$ref)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user