mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Payment webhook fixes
This commit is contained in:
parent
406249ef95
commit
45fce3bfe9
@ -84,7 +84,7 @@ class OnlinePaymentController extends BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function error($paymentDriver, $exception, $showPayment)
|
private function error($paymentDriver, $exception, $showPayment = false)
|
||||||
{
|
{
|
||||||
if (is_string($exception)) {
|
if (is_string($exception)) {
|
||||||
$displayError = $exception;
|
$displayError = $exception;
|
||||||
|
@ -162,7 +162,7 @@ class Payment extends EntityModel
|
|||||||
Event::fire(new PaymentCompleted($this));
|
Event::fire(new PaymentCompleted($this));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function markFailed($failureMessage)
|
public function markFailed($failureMessage = '')
|
||||||
{
|
{
|
||||||
$this->payment_status_id = PAYMENT_STATUS_FAILED;
|
$this->payment_status_id = PAYMENT_STATUS_FAILED;
|
||||||
$this->gateway_error = $failureMessage;
|
$this->gateway_error = $failureMessage;
|
||||||
|
@ -215,6 +215,7 @@ class WePayPaymentDriver extends BasePaymentDriver
|
|||||||
|
|
||||||
public function handleWebHook($input)
|
public function handleWebHook($input)
|
||||||
{
|
{
|
||||||
|
$accountGateway = $this->accountGateway;
|
||||||
$accountId = $accountGateway->account_id;
|
$accountId = $accountGateway->account_id;
|
||||||
|
|
||||||
foreach (array_keys($input) as $key) {
|
foreach (array_keys($input) as $key) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user