Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add currency to config #2

Open
veeqtoh opened this issue Jan 26, 2025 · 0 comments
Open

Add currency to config #2

veeqtoh opened this issue Jan 26, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@veeqtoh
Copy link
Owner

veeqtoh commented Jan 26, 2025

The default Cashier currency is Nigeria Naira (NGN) and can be changed by calling the Cashier::useCurrency method from within the boot method of one of your service providers. The useCurrency method accepts two string parameters: the currency and the currency's symbol:

use Veeqtoh\Cashier\Cashier;

Cashier::useCurrency('ngn', '');
Cashier::useCurrency('ghs', 'GH₵');

We need to make this more flexible by adding this settings to the config/env.

Remember to update documentation.

@veeqtoh veeqtoh added the enhancement New feature or request label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant