mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 17:04:35 -04:00
commit
fac03fce96
@ -158,6 +158,8 @@ class CheckoutComPaymentDriver extends BaseDriver
|
|||||||
'reference' => $request->payment_hash,
|
'reference' => $request->payment_hash,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$payment_hash = PaymentHash::whereRaw('BINARY `hash`= ?', [$request->payment_hash])->first();
|
||||||
|
|
||||||
$state = array_merge($state, $request->all());
|
$state = array_merge($state, $request->all());
|
||||||
$state['store_card'] = boolval($state['store_card']);
|
$state['store_card'] = boolval($state['store_card']);
|
||||||
|
|
||||||
@ -196,13 +198,13 @@ class CheckoutComPaymentDriver extends BaseDriver
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($response->status === 'Declined') {
|
if ($response->status === 'Declined') {
|
||||||
$this->unWindGatewayFees($request->payment_hash);
|
$this->unWindGatewayFees($payment_hash);
|
||||||
|
|
||||||
return $this->processUnsuccessfulPayment($state);
|
return $this->processUnsuccessfulPayment($state);
|
||||||
}
|
}
|
||||||
} catch (CheckoutHttpException $e) {
|
} catch (CheckoutHttpException $e) {
|
||||||
|
|
||||||
$this->unWindGatewayFees($request->payment_hash);
|
$this->unWindGatewayFees($payment_hash);
|
||||||
|
|
||||||
return $this->processInternallyFailedPayment($e, $state);
|
return $this->processInternallyFailedPayment($e, $state);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user