Adjustments for modern design

This commit is contained in:
David Bomba 2025-02-03 20:53:43 +11:00
parent 3a682b83f3
commit 93b25c23fc
3 changed files with 14 additions and 9 deletions

View File

@ -62,6 +62,7 @@ class DirectDebit implements MethodInterface, LivewireMethodInterface
$verify = $this->go_cardless->company_gateway->getConfigField('verifyBankAccount') ? 'recommended' : 'when_available'; $verify = $this->go_cardless->company_gateway->getConfigField('verifyBankAccount') ? 'recommended' : 'when_available';
try {
$response = $this->go_cardless->gateway->billingRequests()->create([ $response = $this->go_cardless->gateway->billingRequests()->create([
"params" => [ "params" => [
"mandate_request" => [ "mandate_request" => [
@ -70,6 +71,11 @@ class DirectDebit implements MethodInterface, LivewireMethodInterface
] ]
] ]
]); ]);
}
catch(\Throwable $e) {
nlog($e->getMessage());
return $this->processUnsuccessfulAuthorization($e);
}
try { try {
$brf = $this->go_cardless->gateway->billingRequestFlows()->create([ $brf = $this->go_cardless->gateway->billingRequestFlows()->create([

View File

@ -91,7 +91,7 @@ trait PdfMaker
} }
$html = str_ireplace(['file:/', 'iframe', '<embed', '&lt;embed', '&lt;object', '<object', '127.0.0.1', 'localhost', '<?xml encoding="UTF-8">', '/etc/'], '', $html); $html = str_ireplace(['file:/', 'iframe', '<embed', '&lt;embed', '&lt;object', '<object', '127.0.0.1', 'localhost', '<?xml encoding="UTF-8">', '/etc/'], '', $html);
nlog($html);
$generated = $pdf $generated = $pdf
->setHtml($html) ->setHtml($html)
->generate(); ->generate();

View File

@ -206,7 +206,6 @@
#company-address > *, #company-address > *,
#company-details > * { #company-details > * {
margin-bottom: 0.5rem;
} }
#table-totals { #table-totals {