the-hasanov/millikart

MilliKart Class for laravel


Keywords
laravel, millikart, payment, php
License
MIT

Documentation

MilliKart Laravel


Install

Laravel 5.5+

composer require the-hasanov/millikart

Laravel 5.4

Usage

Laravel

$response=MilliKart::register([
    'amount' => 2000, //20azn
    'reference' => '123test_ref',
    'description' => 'test description'
]);//return MilliKartResponse

//or use builder

MilliKart::register(function (MilliKartBuilder $builder) {
    $builder->amountAZN(20.0)
        ->reference('123test_ref')
        ->description('test description');
});

if($response->isValidRegister()){
    $response->redirect();// return url
}
// Check transaction status
MilliKart::status('123test_ref'); //return MilliKartResponse

TODO

  • Response
  • Parameters Builder
  • Payment Model
  • Payment Events