mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:44:28 -04:00
Ensure braintree error is parsed correctly
This commit is contained in:
parent
e289ddda16
commit
3c8651ad6f
@ -136,7 +136,10 @@ class CreditCard
|
|||||||
return $this->processSuccessfulPayment($result);
|
return $this->processSuccessfulPayment($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->processUnsuccessfulPayment($result);
|
$error = $result ?: 'Undefined gateway error';
|
||||||
|
|
||||||
|
return $this->processUnsuccessfulPayment($error);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getPaymentToken(array $data, $customerId): ?string
|
private function getPaymentToken(array $data, $customerId): ?string
|
||||||
|
@ -294,7 +294,7 @@ class MolliePaymentDriver extends BaseDriver
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->init();
|
$this->init();
|
||||||
|
|
||||||
$codes = [
|
$codes = [
|
||||||
'open' => Payment::STATUS_PENDING,
|
'open' => Payment::STATUS_PENDING,
|
||||||
'canceled' => Payment::STATUS_CANCELLED,
|
'canceled' => Payment::STATUS_CANCELLED,
|
||||||
@ -312,6 +312,9 @@ class MolliePaymentDriver extends BaseDriver
|
|||||||
$client = $record->client;
|
$client = $record->client;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
nlog("mollie webhook");
|
||||||
|
nlog($payment);
|
||||||
|
|
||||||
$client = Client::withTrashed()->find($this->decodePrimaryKey($payment->metadata->client_id));
|
$client = Client::withTrashed()->find($this->decodePrimaryKey($payment->metadata->client_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user