Kasir helps integrate Midtrans in Laravel way.
In your controller or Livewire component, you can write:
Snap::make(200000)
->customerDetails($user)
->billingAddress($billing_address)
->shippingAddress($shipping_address)
->itemDetails($items)
->redirect();
Please refer to Kasir Installation Page.
If you want to contribute to Kasir package, you may want to test it in a real Laravel project:
- Fork this project to your GitHub account.
- Create Laravel app locally.
- Clone your fork in your Laravel app's root directory.
- In the
/kasir
directory, create a new branch for your fix, e.g.fix-something
. - Install the packages in your app's
composer.json
:
{
...
"require": {
"kasir/kasir": "*"
},
"repositories": [
{
"type": "path",
"url": "kasir/*"
}
],
...
}
- Run
composer update
.
Kasir is open-sourced software licensed under the MIT license.