Stripe API | Nova Framework | Tutorials

David Carr

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 }}

 

Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2020 DC Blog. All code MIT license. All rights reserved.