Skip to content

A demo for passing Stripe fees on to the customer using Laravel Cashier and Livewire

Notifications You must be signed in to change notification settings

chrisvasey/Laravel-passing-Stripe-fee-to-customers

Repository files navigation

Passing the Stripe fee on to customers with Laravel Cashier

After working on a client project where I needed to pass Stripe fees on to customers at checkout, I found that this was tricker than I had originally thought and the resources out there to support you are sparse.

Stripe does have a support article about it but other than a "we don't recommend this", "it might be illegal in your country" and "here is a blury maths expression, good luck"; I wasn't able to learn much from it. Expression from Stripe

In this repo, I am going to demo how this can be achived using Laravel and their Stripe API wrapper Laravel Cashier. I hope that the logic could easily be reused in other project stacks or languages.

Run this demo

Set your Stripe keys in the .env file composer install php artisan migrate npm i && npm run build

About

A demo for passing Stripe fees on to the customer using Laravel Cashier and Livewire

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages