Stripe API format invoices totals

Stripe API format invoices totals

Currency comes out of Stripe with pence / cents on it’s own can be problematic to format.

I’m using Nova Framework not setup with Nova? please read Getting Stripe API setup with Nova Framework

money_format or number_format won’t format the accurate amount. To format the value correctly divide the amount by 100.

{{ $invoice->total / 100 }}