mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Fixes for a bug in update reminders
This commit is contained in:
parent
0742585251
commit
ce4b45b14c
@ -216,7 +216,7 @@ class ACH implements MethodInterface, LivewireMethodInterface
|
||||
'gateway_type_id' => GatewayType::BANK_TRANSFER,
|
||||
];
|
||||
|
||||
$payment = $this->go_cardless->createPayment($data, Payment::STATUS_PENDING);
|
||||
$_payment = $this->go_cardless->createPayment($data, Payment::STATUS_PENDING);
|
||||
|
||||
SystemLogger::dispatch(
|
||||
['response' => $payment, 'data' => $data],
|
||||
@ -227,7 +227,7 @@ class ACH implements MethodInterface, LivewireMethodInterface
|
||||
$this->go_cardless->client->company,
|
||||
);
|
||||
|
||||
return redirect()->route('client.payments.show', ['payment' => $this->go_cardless->encodePrimaryKey($payment->id)]);
|
||||
return redirect()->route('client.payments.show', ['payment' => $this->go_cardless->encodePrimaryKey($_payment->id)]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -299,7 +299,7 @@ class DirectDebit implements MethodInterface, LivewireMethodInterface
|
||||
'gateway_type_id' => GatewayType::DIRECT_DEBIT,
|
||||
];
|
||||
|
||||
$payment = $this->go_cardless->createPayment($data, Payment::STATUS_PENDING);
|
||||
$_payment = $this->go_cardless->createPayment($data, Payment::STATUS_PENDING);
|
||||
|
||||
SystemLogger::dispatch(
|
||||
['response' => $payment, 'data' => $data],
|
||||
@ -310,7 +310,7 @@ class DirectDebit implements MethodInterface, LivewireMethodInterface
|
||||
$this->go_cardless->client->company,
|
||||
);
|
||||
|
||||
return redirect()->route('client.payments.show', ['payment' => $this->go_cardless->encodePrimaryKey($payment->id)]);
|
||||
return redirect()->route('client.payments.show', ['payment' => $_payment->hashed_id]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -151,7 +151,7 @@ class InstantBankPay implements MethodInterface, LivewireMethodInterface
|
||||
'gateway_type_id' => GatewayType::INSTANT_BANK_PAY,
|
||||
];
|
||||
|
||||
$payment = $this->go_cardless->createPayment($data, Payment::STATUS_PENDING);
|
||||
$_payment = $this->go_cardless->createPayment($data, Payment::STATUS_PENDING);
|
||||
|
||||
SystemLogger::dispatch(
|
||||
['response' => $payment, 'data' => $data],
|
||||
@ -162,7 +162,7 @@ class InstantBankPay implements MethodInterface, LivewireMethodInterface
|
||||
$this->go_cardless->client->company,
|
||||
);
|
||||
|
||||
return redirect()->route('client.payments.show', ['payment' => $payment->hashed_id]);
|
||||
return redirect()->route('client.payments.show', ['payment' => $_payment->hashed_id]);
|
||||
}
|
||||
|
||||
|
||||
@ -184,7 +184,7 @@ class InstantBankPay implements MethodInterface, LivewireMethodInterface
|
||||
'gateway_type_id' => GatewayType::INSTANT_BANK_PAY,
|
||||
];
|
||||
|
||||
$payment = $this->go_cardless->createPayment($data, Payment::STATUS_COMPLETED);
|
||||
$_payment = $this->go_cardless->createPayment($data, Payment::STATUS_COMPLETED);
|
||||
|
||||
SystemLogger::dispatch(
|
||||
['response' => $payment, 'data' => $data],
|
||||
@ -195,7 +195,7 @@ class InstantBankPay implements MethodInterface, LivewireMethodInterface
|
||||
$this->go_cardless->client->company,
|
||||
);
|
||||
|
||||
return redirect()->route('client.payments.show', ['payment' => $this->go_cardless->encodePrimaryKey($payment->id)]);
|
||||
return redirect()->route('client.payments.show', ['payment' => $_payment->hashed_id]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -235,7 +235,7 @@ class SEPA implements MethodInterface, LivewireMethodInterface
|
||||
'gateway_type_id' => GatewayType::SEPA,
|
||||
];
|
||||
|
||||
$payment = $this->go_cardless->createPayment($data, Payment::STATUS_PENDING);
|
||||
$_payment = $this->go_cardless->createPayment($data, Payment::STATUS_PENDING);
|
||||
|
||||
SystemLogger::dispatch(
|
||||
['response' => $payment, 'data' => $data],
|
||||
@ -246,7 +246,7 @@ class SEPA implements MethodInterface, LivewireMethodInterface
|
||||
$this->go_cardless->client->company,
|
||||
);
|
||||
|
||||
return redirect()->route('client.payments.show', ['payment' => $this->go_cardless->encodePrimaryKey($payment->id)]);
|
||||
return redirect()->route('client.payments.show', ['payment' => $_payment->hashed_id]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -176,7 +176,7 @@ class GoCardlessPaymentDriver extends BaseDriver
|
||||
|
||||
$this->confirmGatewayFee($data);
|
||||
|
||||
$payment = $this->createPayment($data, Payment::STATUS_PENDING);
|
||||
$_payment = $this->createPayment($data, Payment::STATUS_PENDING);
|
||||
|
||||
SystemLogger::dispatch(
|
||||
['response' => $payment, 'data' => $data],
|
||||
@ -187,7 +187,7 @@ class GoCardlessPaymentDriver extends BaseDriver
|
||||
$this->client->company
|
||||
);
|
||||
|
||||
return $payment;
|
||||
return $_payment;
|
||||
}
|
||||
|
||||
$this->sendFailureMail($payment->status);
|
||||
|
Loading…
Reference in New Issue
Block a user