Minor cleanup

This commit is contained in:
David Bomba 2022-02-28 13:17:34 +11:00
parent f7ff5d34df
commit 5b06b268fb
2 changed files with 1 additions and 6 deletions

View File

@ -110,13 +110,10 @@ class PaymentFailedMailer implements ShouldQueue
});
//add client payment failures here.
nlog("pre client failure email");
//
if($contact = $this->client->primary_contact()->first())
{
nlog("inside failure");
$mail_obj = (new ClientPaymentFailureObject($this->client, $this->error, $this->company, $this->payment_hash))->build();
$nmo = new NinjaMailerObject;

View File

@ -57,7 +57,6 @@ class ClientPaymentFailureObject
public function build()
{
if(!$this->payment_hash){
nlog("no payment has for failure notification - ClientPaymentFailureObject");
return;
}
@ -124,7 +123,6 @@ class ClientPaymentFailureObject
'settings' => $this->client->getMergedSettings(),
'whitelabel' => $this->company->account->isPaid() ? true : false,
'url' => $this->invoices->first()->invitations->first()->getPaymentLink(),
// 'button' => 'texts.pay_now',
'button' => ctrans('texts.pay_now'),
'additional_info' => false,
'company' => $this->company,