Black Friday sale is now on! 50% off Laravel: The Modular Way. Learn more

Stripe API format invoices totals

David Carr

Stripe API Nova Framework Tutorials

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

     

    Laravel Modules Book by David Carr

    Help support the blog so that I can continue creating new content!

    Subscribe to my newsletter

    Subscribe and get my books and product announcements.

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