mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor cleanup
This commit is contained in:
parent
f7ff5d34df
commit
5b06b268fb
@ -110,13 +110,10 @@ class PaymentFailedMailer implements ShouldQueue
|
|||||||
});
|
});
|
||||||
|
|
||||||
//add client payment failures here.
|
//add client payment failures here.
|
||||||
nlog("pre client failure email");
|
//
|
||||||
|
|
||||||
if($contact = $this->client->primary_contact()->first())
|
if($contact = $this->client->primary_contact()->first())
|
||||||
{
|
{
|
||||||
|
|
||||||
nlog("inside failure");
|
|
||||||
|
|
||||||
$mail_obj = (new ClientPaymentFailureObject($this->client, $this->error, $this->company, $this->payment_hash))->build();
|
$mail_obj = (new ClientPaymentFailureObject($this->client, $this->error, $this->company, $this->payment_hash))->build();
|
||||||
|
|
||||||
$nmo = new NinjaMailerObject;
|
$nmo = new NinjaMailerObject;
|
||||||
|
@ -57,7 +57,6 @@ class ClientPaymentFailureObject
|
|||||||
public function build()
|
public function build()
|
||||||
{
|
{
|
||||||
if(!$this->payment_hash){
|
if(!$this->payment_hash){
|
||||||
nlog("no payment has for failure notification - ClientPaymentFailureObject");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,7 +123,6 @@ class ClientPaymentFailureObject
|
|||||||
'settings' => $this->client->getMergedSettings(),
|
'settings' => $this->client->getMergedSettings(),
|
||||||
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
||||||
'url' => $this->invoices->first()->invitations->first()->getPaymentLink(),
|
'url' => $this->invoices->first()->invitations->first()->getPaymentLink(),
|
||||||
// 'button' => 'texts.pay_now',
|
|
||||||
'button' => ctrans('texts.pay_now'),
|
'button' => ctrans('texts.pay_now'),
|
||||||
'additional_info' => false,
|
'additional_info' => false,
|
||||||
'company' => $this->company,
|
'company' => $this->company,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user