PHPackages                             ediasoft/gomypay-api-php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ediasoft/gomypay-api-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ediasoft/gomypay-api-php
========================

Gomypay API PHP Client for PHP.

1.1.2(3y ago)0182MITPHPPHP ^7.4|^8.0

Since Mar 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/eDiasoft/gomypay-api-php)[ Packagist](https://packagist.org/packages/ediasoft/gomypay-api-php)[ RSS](/packages/ediasoft-gomypay-api-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (9)Used By (0)

 [![](https://user-images.githubusercontent.com/7081446/223246488-77debf08-5f0b-47da-b15b-a51b6038352f.png)](https://user-images.githubusercontent.com/7081446/223246488-77debf08-5f0b-47da-b15b-a51b6038352f.png)

台灣萬事達 Gomypay 金流 API client for PHP
===================================

[](#台灣萬事達-gomypay-金流-api-client-for-php)

[![gomypay_reamdme_header](https://user-images.githubusercontent.com/7081446/227977994-5f19a7f1-f41a-41ca-b16e-e163acd26e0e.png)](https://user-images.githubusercontent.com/7081446/227977994-5f19a7f1-f41a-41ca-b16e-e163acd26e0e.png)

[ ![yellow-button](https://user-images.githubusercontent.com/7081446/223840887-a22159f2-4830-44d5-ad68-98eaea370e66.png)](https://www.buymeacoffee.com/shuch3n) This is not the official package! This PHP library allows developer to easily interact with the Gomypay API to access data and process payments.

Requirements
------------

[](#requirements)

To use the Gomypay API client, the following things are required:

- Get yourself a Gomypay [account](https://n.gomypay.asia/MRegister.aspx).
- Now you're ready to use the Gomypay API client.
- PHP &gt;= 7.4
- Up-to-date OpenSSL (or other SSL/TLS toolkit)

Composer Installation
---------------------

[](#composer-installation)

By far the easiest way to install the Gomypay API client is to require it with [Composer](http://getcomposer.org/doc/00-intro.md).

```
$ composer require ediasoft/gomypay-api-php:^1.0

{
    "require": {
        "ediasoft/gomypay-api-php": "^1.0"
    }
}

```

Alternatively, you can manually [download](https://github.com/eDiasoft/gomypay-api-php/packages) the library and include it in your project.

Getting started
---------------

[](#getting-started)

### Initialization

[](#initialization)

First, you must initialize the `GomypayApiClient` class and pass the customer id into it. The secret key is optional and only required when retrieving JSON response instead of the standard redirect response. Another optional parameter is the config array, and you can set the mode (test/live) and the default return and callback URL. By default all transaction is set to live.

```
use eDiasoft\Gomypay\GomypayApiClient;

$gomypay = new GomypayApiClient('CUSTOMER_ID', 'SECRET_KEY_THIS_IS_OPTIONAL', array(
    'test'              => true, //This will change the transaction to test.
    'store_id'          => 'GOMYPAY_STORE_ID',  //Set the store id.
    'returnUrl'         => 'https://example.com/gomypay/return',
    'callbackUrl'       => 'https://example.com/gomypay/callback'
));
```

### Sending Creditcard Request

[](#sending-creditcard-request)

This example shows how to send a creditcard request

```
use eDiasoft\Gomypay\Types\PaymentMethods;

$creditcard = $gomypay->payWith(PaymentMethods::CREDITCARD)->create([
    'Order_No'      => uniqid(), //Must be unique everytime
    'Amount'        => 1000, //Amount in TWD, must be more than 35 yuan
    'Buyer_Name'    => 'John Doe',
    'Buyer_Telm'    => '0912345678',
    'Buyer_Mail'    => 'john@example.com',
    'Buyer_Memo'    => 'Noodles',
    'CardNo'        => '4907060600015101', //Example creditcard number that results in success
    'ExpireDate'    => '2412', //YYMM
    'CVV'           => '615'
]);
```

Once the request is created, you can execute the request. There are two ways you can do it. To get the JSON response, you must fill in the secret key and the store id. The JSON request automatically checks against the md5 str\_check.

```
use eDiasoft\Gomypay\Types\Response;

$creditcard->execute(); //Normal execute with redirect to Gomypay page

$creditcard->execute(Response::json); //Request json response
```

### Available payment methods

[](#available-payment-methods)

- 信用卡 `$gomypay->payWith(PaymentMethods::CREDITCARD)`
- 銀聯卡 `$gomypay->payWith(PaymentMethods::UNIONPAY)`
- 超商條碼 `$gomypay->payWith(PaymentMethods::SPMBARCODE)`
- WebAtm `$gomypay->payWith(PaymentMethods::WEBATM)`
- 虛擬帳號 `$gomypay->payWith(PaymentMethods::VIRTUALACCOUNT)`
- 定期扣款 `$gomypay->payWith(PaymentMethods::REGULARDEDUCTION)`
- 超商代碼 `$gomypay->payWith(PaymentMethods::SPMCODE)`
- LinePay `$gomypay->payWith(PaymentMethods::LINEPAY)`

License
-------

[](#license)

Gomypay API PHP Client is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

Support
-------

[](#support)

Contact: [ediasoft.com](ediasoft.com) —  — +31 10 84 342 77

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

1143d ago

Major Versions

0.1.1 → 1.0.02023-03-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7081446?v=4)[Shu Chen](/maintainers/shuch3n)[@ShuCh3n](https://github.com/ShuCh3n)

---

Top Contributors

[![ShuCh3n](https://avatars.githubusercontent.com/u/7081446?v=4)](https://github.com/ShuCh3n "ShuCh3n (36 commits)")

---

Tags

apiclientgomypayhttpclientpaymentpayment-gatewayphptaiwan

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ediasoft-gomypay-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/ediasoft-gomypay-api-php/health.svg)](https://phpackages.com/packages/ediasoft-gomypay-api-php)
```

###  Alternatives

[mateusjunges/laravel-kafka

A kafka driver for laravel

7163.1M17](/packages/mateusjunges-laravel-kafka)[workerman/webman

High performance HTTP Service Framework.

2.6k86.6k68](/packages/workerman-webman)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

1935.1k](/packages/onlime-laravel-http-client-global-logger)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)[opiy-org/asterisk-ari-php

An object-oriented client for the Asterisk REST Interface (ARI). Handles ARI calls and events for you.

121.1k](/packages/opiy-org-asterisk-ari-php)

PHPackages © 2026

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