/gmo-credit-card

A Simple Package for handle GMO Credit Card Payment for Laravel

Primary LanguagePHPMIT LicenseMIT

Very short description of the package

Latest Version on Packagist Total Downloads GitHub Actions

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 ).

Installation

You can install the package via composer:

composer require nekoding/gmo-creditcard

Usage

// 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([
    //
]);

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.