PHPackages                             prum/laravel-gmo-payment-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. prum/laravel-gmo-payment-api

ActiveLibrary[Payment Processing](/categories/payments)

prum/laravel-gmo-payment-api
============================

laravel-gmo-payment-api

01.4k2PHP

Since Aug 11Pushed 3y agoCompare

[ Source](https://github.com/prum-jp/laravel-gmo-payment-api)[ Packagist](https://packagist.org/packages/prum/laravel-gmo-payment-api)[ RSS](/packages/prum-laravel-gmo-payment-api/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-gmo-payment-api
=======================

[](#laravel-gmo-payment-api)

[![MIT License](https://camo.githubusercontent.com/db79b92834d905629b1aea42c9aa493da02060189e2af90840b1be5d6bf6ddf7/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE)

Install
-------

[](#install)

```
composer require prum/laravel-gmo-payment-api
```

Publish config file.
--------------------

[](#publish-config-file)

```
php artisan vendor:publish --provider="Prum\LaravelGmoPaymentApi\Providers\GmoServiceProvider"
```

Append .env
-----------

[](#append-env)

```
GMO_TIMEOUT=10
GMO_API_BASE_URL="https://pt01.mul-pay.jp/payment"
GMO_SITE_ID=tsite00000000
GMO_SITE_PASSWORD={site_password}
GMO_SHOP_ID=tshop00000000
GMO_SHOP_PASSWORD={shop_password}
```

Usage
-----

[](#usage)

メソッド名は、エンドポイント名のキャメルケースに一致します。

```
GmoApi::saveMember([
    'MemberID' => '0000012345',
    'MemberName' => '鈴木太郎',
]);
```

How to use fake response in test code.
--------------------------------------

[](#how-to-use-fake-response-in-test-code)

```
// On Success
/** @var array $response */
$response = GmoApi::setFake([
        '*' => Http::response('ACS=0&OrderID=SampleOrderID&Forward=2a99662&Method=1&PayTimes=&Approve=040128&TranID=2107071507111111111111813673&TranDate=20210707151900&CheckString=cd5678b1bca0559b36459f3f9dfd4952', 200),
    ])
    ->execTran([
        'AccessID'        => 'SampleAccessID',
        'AccessPass'      => 'SampleAccessPass',
        'OrderID'         => 'SampleOrderID',
        'Method'          => '2',
        'PayTimes'        => '2',
        'Token'           => 'SampleToken',
        'HttpAccept'      => 'SampleHttpAccept',
        'HttpUserAgent'   => 'HttpUserAgent',
        'DeviceCategory'  => '0',
        'ClientField1'    => 'SampleClientField1',
        'ClientField2'    => 'SampleClientField2',
        'ClientField3'    => 'SampleClientField3',
        'ClientFieldFlag' => '0',
        'TokenType'       => '1',
        'RetUrl'          => 'https://example.com/xxxxx'
    ]);

// On Error

$this->expectException(GmoApiException::class);

/** @var array $response */
$response = GmoApi::setFake([
        '*' => Http::response('ErrCode=E01&ErrInfo=E01040001', 200),
    ])
    ->execTran([
        'AccessID'        => 'SampleAccessID',
        'AccessPass'      => 'SampleAccessPass',
        'OrderID'         => 'SampleOrderID',
        'Method'          => '2',
        'PayTimes'        => '2',
        'Token'           => 'SampleToken',
        'HttpAccept'      => 'SampleHttpAccept',
        'HttpUserAgent'   => 'HttpUserAgent',
        'DeviceCategory'  => '0',
        'ClientField1'    => 'SampleClientField1',
        'ClientField2'    => 'SampleClientField2',
        'ClientField3'    => 'SampleClientField3',
        'ClientFieldFlag' => '0',
        'TokenType'       => '1',
        'RetUrl'          => 'https://example.com/xxxxx'
    ]);
```

Package testing
---------------

[](#package-testing)

```
./vendor/bin/testbench package:test
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/73932930?v=4)[prum-murakami](/maintainers/HarueMurakami77)[@HarueMurakami77](https://github.com/HarueMurakami77)

---

Top Contributors

[![HarueMurakami77](https://avatars.githubusercontent.com/u/73932930?v=4)](https://github.com/HarueMurakami77 "HarueMurakami77 (6 commits)")

### Embed Badge

![Health badge](/badges/prum-laravel-gmo-payment-api/health.svg)

```
[![Health](https://phpackages.com/badges/prum-laravel-gmo-payment-api/health.svg)](https://phpackages.com/packages/prum-laravel-gmo-payment-api)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
