mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on Payment response from offline gateway
This commit is contained in:
parent
6d8aba49d7
commit
178e732b46
@ -188,18 +188,26 @@ class PayFastPaymentDriver extends BaseDriver
|
|||||||
{
|
{
|
||||||
|
|
||||||
$data = $request->all();
|
$data = $request->all();
|
||||||
|
nlog($data);
|
||||||
|
|
||||||
if(array_key_exists('m_payment_id', $data))
|
if(array_key_exists('m_payment_id', $data))
|
||||||
{
|
{
|
||||||
|
|
||||||
$hash = Cache::get($data['m_payment_id']);
|
$hash = Cache::get($data['m_payment_id']);
|
||||||
|
|
||||||
if($hash == 'cc_auth')
|
switch ($hash)
|
||||||
{
|
{
|
||||||
return $this->setPaymentMethod(GatewayType::CREDIT_CARD)
|
case 'cc_auth':
|
||||||
->authorizeResponse($request);
|
return $this->setPaymentMethod(GatewayType::CREDIT_CARD)
|
||||||
|
->authorizeResponse($request);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
// code...
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json([], 200);
|
return response()->json([], 200);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user