I have a booking system where customers have the option to either pay in full at check out or put a 30% deposit down. In the admin panel of my booking system I can cancel bookings. Two bookings get created, one with a full amount paid and one with a partial amount. I have a is_partial field in the invoice database and one field that is_paid. I am trying to change the following code to where it shows the correct amount refunded on the customer cancellation email notice. Right now the code works fine if I cancel a partial booking where only one payment has been made but when I cancel a booking where the invoice is paid in full the customer cancellation states the amount refunded is $0.0. There is two fields on the database that determine the amount paid if partial booking the amount paid is store in the amount_paid field and if paid in full the amount paid is store in the amount field.
<br>
@if($refund_status)
Your payment of $ was refunded via . If you have any questions, please contact us.
@else
Your payment of $ was not refundable. If you have any questions, please contact us.
@endif
<br>
I also need the right amount if the refund fails. Any help is highly appreciate it.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire