mohdnazrul / laravel-curlec
Library to connection for Payments from CURLEC
Installs: 8 897
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- illuminate/support: 5.4.*
- phpunit/phpunit: ^7.0.2
This package is auto-updated.
Last update: 2024-03-04 04:36:47 UTC
README
A new Eletronic Bank to Bank Direct Debit System delivered by Curlec Sdn Bhd
.env file
Configuration via the .env file currently allows the following variables to be set:
- CURLEC_URL='http://api.endpoint/url/'
Available functions
CBM::doTransaction($method, $parameter)
A successful request returns the JSON response of the requested
FOR LARAVEL SETUP CONFIGURATION:-
- Do composer require mohdnazrul/laravel-curlec
composer require mohdnazrul/laravel-curlec
- Add this syntax inside config/app.php
.... 'providers'=> [ . MohdNazrul\CBMLaravel\CURLECServiceProvider::class, . ], 'aliases' => [ . 'CBMApi' => MohdNazrul\CURLECLaravel\CURLECApiFacade::class, ' ],
- Do publish as below
php artisan vendor:publish --tag=curlec
- You can edit the default configuration CURLEC inside config/curlec.php based your account as below
return [ 'serviceUrl' => env('CBM_URL','http://localhost') ];