Support the ongoing development of Laravel.io →
Packages
Last updated 2 years ago.
0

If you follow the function it returns this :

https://github.com/laravel/cashier/blob/master/src/Laravel/Cashier/Billable.php

Line 494

public function addCurrencySymbol($amount)
{
//return '$'.$amount;
return '£'.$amount;
}

Last updated 9 years ago.
0

elmbrent said:

If you follow the function it returns this :

https://github.com/laravel/cashier/blob/master/src/Laravel/Cashier/Billable.php

Line 494

public function addCurrencySymbol($amount)
{
//return '$'.$amount;
return '£'.$amount;
}

Ok, thank you for your answer @elmbrent. I might not have been so clear about what I wanted to know. I wonder if there is any way to define amount and currency when you create a invoice or charge a customer. I mean 1000:- (SEK) and $1000 is a pretty big difference. 1000:- (SEK) is close to $6000. When using something like Laravel Cashier against Stripe you want it to work as Stripe intends.

In Stripe they use currency like this:

Stripe::Charge.create(
    :amount => 1000, # in cents
    :currency => "usd",
    :customer => customer.id
)

I haven't read through it all, just sparsely since I don't work on any project using payment for now. But I like that Laravel is supporting Stripe through Laravel Cashier, so I wanted to know if I can charge, let's say Swedish, Norwegian or UK customers in SEK/NOK/GBP instead of US-dollars using Laravel Cashier out of the box?

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.