GMOCreditCard Package is simple package to handle Http Request to GMO Payment Gateway Endpoint for Laravel App. This package right now only support for Credit Card Method. if you want use another payment method you can install this package https://github.com/nekoding/gmophp, unfornately this package not crafted for laravel app so you need to adjust it ( maybe sometime i will rewrite that package ).
You can install the package via composer:
composer require nekoding/gmo-creditcard
// publish configuration file
php artisan vendor:publish --provider="Nekoding\GmoCreditcard\GmoCreditcardServiceProvider"
// setting GMO Configuration via ENV
// you can call site or shop api like this
// Shop API
$gmo = new GmoCreditCard();
$gmo->useShopApi()->entryTransaction([
// check gmo params for this api
]);
// Site API
$gmo = new GmoCreditCard();
$gmo->useSiteApi()->saveMember([
// check gmo params for this api
]);
// or you can use facade like this
GmoCreditCardFacade::useShopApi()->entryTransaction([
//
]);
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email enggartivandi@outlook.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.