mohdnazrul/laravel-curlec

This package is abandoned and no longer maintained. The author suggests using the mohdnazrul/laravel-curlec package instead.

Library to connection for Payments from CURLEC

v1.0.2 2018-07-18 09:40 UTC

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:

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')
];