Logo Lanfrica

yvesniyo/mopay

Domaine:

digital infrastructure

Type de record:

software
Créateur:
yve
Hôte:
Package which can simplify developers work on their app which requires MTN Mobile Money payments in Rwanda, within the laravel application Laravel Mopay ============== Package which can simplify developers work on their app which requires MTN Mobile Money payments in Rwanda, within the laravel application ## Installation To get the latest version, simply require the project using Composer. ```bash $ composer require yves/mopay ``` Once installed, if you are not using automatic package discovery, then you need to register the `Yves\Mopay\Providers\MopayServiceProvider` service provider in your `config/app.php`. ## Configurations Mopay requires connection configuration. To get started, you'll need to publish all vendor assets: ```bash $ php artisan mopay:install ``` This will create a `config\mopay.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases. There are six config options: ##### MOPAY_API_URL This by default there is mopay api v1 Ishema Api.And it is where payment requests will pass through as gateway. ##### MOPAY_API_TOKEN Make sure you set this for the token you get from Ishema Web Dashboard dashboard on profile part. ##### MOPAY_WEBHOOK This is the postback url or known as webhook for your project which will receive the result of the payments that you requested. so put real url, by default there is `http://app_url:port/mopay/p…"`. ##### MAIL_USERNAME We did not forget those who wants to notify users view email for when there is status changes in their payments. To access it set your gmail or any email of your choosing here but also make sure that you configured mail, I mean like passwords and drivers of smtp. In development we used gmail and it did work great. ##### APP_NAME_ON_EMAILS If you are using emails this values will be the one on emails as the sender. ##### USE_NEW_EMAIL_IN_CONTEXT_MODEL Set this to `true` if you want to send emails from updated state in your current model, or `false` just to use the email that was used during the …

Licenses