mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for accesing response_summary
on payment object
This commit is contained in:
parent
e7a9576fd4
commit
902b37fd38
@ -84,8 +84,7 @@ trait Utilities
|
|||||||
|
|
||||||
public function processUnsuccessfulPayment(Payment $_payment, $throw_exception = true)
|
public function processUnsuccessfulPayment(Payment $_payment, $throw_exception = true)
|
||||||
{
|
{
|
||||||
|
$this->getParent()->sendFailureMail($_payment->status . " " . optional($_payment)->response_summary);
|
||||||
$this->getParent()->sendFailureMail($_payment->status . " " . $_payment->response_summary);
|
|
||||||
|
|
||||||
$message = [
|
$message = [
|
||||||
'server_response' => $_payment,
|
'server_response' => $_payment,
|
||||||
@ -102,7 +101,7 @@ trait Utilities
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($throw_exception) {
|
if ($throw_exception) {
|
||||||
throw new PaymentFailed($_payment->status . " " . $_payment->response_summary, $_payment->http_code);
|
throw new PaymentFailed($_payment->status . " " . optional($_payment)->response_summary, $_payment->http_code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -338,7 +338,9 @@ class CheckoutComPaymentDriver extends BaseDriver
|
|||||||
$this->setPaymentHash($request->getPaymentHash());
|
$this->setPaymentHash($request->getPaymentHash());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$payment = $this->gateway->payments()->details($request->query('cko-session-id'));
|
$payment = $this->gateway->payments()->details(
|
||||||
|
$request->query('cko-session-id')
|
||||||
|
);
|
||||||
|
|
||||||
if ($payment->approved) {
|
if ($payment->approved) {
|
||||||
return $this->processSuccessfulPayment($payment);
|
return $this->processSuccessfulPayment($payment);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user