Skip to content

coralsio/payment

Repository files navigation

Corals Payment

Installation

You can install the package via composer:

composer require corals/payment

Testing

vendor/bin/phpunit vendor/corals/payment/tests 

Currency Configuration

Please make sure to clear cache on currency configuration changes to take effect, this can be done from settings=> Cache management

System Currency (Admin) :

Prices within products and plans setup will be using the system (admin) currency configuration, this can be configured under Settings

 

Website( Frontend Currency)

Laraship does support multiple currencies in your store, you can configure active currencies under Payments => Currencies

 

 

Default Currency

The default currency is the one that will be auto-selected when user access the site first time, it can be adjusted inside .env file

DEFAULT_CURRENCY=USD

 

Updating Exchange

Update exchange rates from OpenExchangeRates.org. An API key is needed to use OpenExchangeRates.org. Add yours to the config file.

php artisan currency:update

Cleanup

Used to clean the Laravel cached exchanged rates and refresh it from the database. Note that cached exchanged rates are cleared after they are updated using one of the commands above.

php artisan currency:cleanup

Questions & Answers

If you faced any issue you can check our questions center, and you can post your question from the following link Questions & Answers

Online Documentation

follow the Online Docs to see more about this module

Hire Us

Looking for a professional team to build your success and start driving your business forward. Laraship team ready to start with you Hire Us