On v4 I had setup a custom payment gateway which showed the sort code and account number together with the invoice reference number using the variable $number but the same does not seem to be working in v5 and instead of showing the invoice number it just shows $number?
I have treid this too and get the same result. I did a php artisan optimize to make sure that it is not a caching issue but still the placeholders are not filled with data.
Hey there, thanks for reporting this. Custom variables aren’t part of the custom gateway (yet). I’m adding this to my backlog, will update you once it is done!
I upgraded to 5.1.6 and the placeholders are available now. Thanks a lot for this nice feature.
I have tested these:
amount: $amount
balance: $balance
discount: $discount
number: $number
date: $date
due_date: $due_date
public_notes: $public_notes
terms: $terms
view_url: $view_url
view_link: $view_link
There are 3 left from the invoice settings that don’t work but I don’t see a need for them.
exchange_rate: $exchange_rate
po_number: $po_number
footer: $footer
@ben is it possible to use some IF-ELSE logic? Something like:
<-IF $amount == $balance ->Please pay the total invoice amount of $amount …
<-ELSE IF $amount > $balance ->Please pay the remaining amount of $balance …
<-END IF->