loucov/laravel-moncash-api

v2.0.0 2024-03-27 05:39 UTC

This package is auto-updated.

Last update: 2025-06-28 03:22:15 UTC


README

loucov

Laravel Moncash API

This is the Laravel Moncash API that allows php's developers to interract with the MonCash payment facility on their website.

Install

Via Composer

composer require loucov/laravel-moncash-api

Publish moncash File config

php artisan vendor:publish --tag=moncash-config

Update .env file

MONCASH_DEBUG_MODE = true //true debug mode and false live mode
MONCASH_CLIENT_ID =       //client id
MONCASH_SECRET_KEY =      //secret key
MONCASH_BUSINESS_KEY =    //business key (optional)

Usage

$moncash = new MoncashApi();

Methode List

For payment

$reponse = 
$amount = 1000; // Amount
$orderId = "123456789"; // Your orderId

$response = $moncash->payment($amount, $orderId); //return object

If success, response object data:

"mode": "sandbox"
"path": "/Api/v1/CreatePayment"
"payment_token": ....
"timestamp": 1709736158019
"status": 202
"redirect": ... // Redirect link

If error


Security

If you discover any security related issues, please email covilloocko@gmail.com instead of using the issue tracker.

Credits

License

To be filled by LouCov