PHPackages                             windwalker/pay2go - 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. windwalker/pay2go

ActiveWindwalker-external-package[Payment Processing](/categories/payments)

windwalker/pay2go
=================

The PHP Pay2Go package

1.0.0-beta6(11y ago)45081LGPL-2.0+PHPPHP &gt;=5.3.10

Since Feb 28Pushed 10y ago3 watchersCompare

[ Source](https://github.com/ventoviro/pay2go)[ Packagist](https://packagist.org/packages/windwalker/pay2go)[ Docs](https://github.com/ventoviro/pay2go)[ RSS](/packages/windwalker-pay2go/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (7)Used By (0)

A Pay2GO PHP Package
====================

[](#a-pay2go-php-package)

開發中，還要一陣子才完成...

使用範例
----

[](#使用範例)

```
$pay2go = new \Windwalker\Pay2Go\Pay2Go('MerchantID', 'key', 'iv');

// Basic options
$pay2go->setTest(true) // Use Test Platform
	->setMerchantOrderNo($orderNo)
	->setVersion('1.1')
	->setAmt((int) $price)
	->setRespondType(Pay2Go::RESPONSE_TYPE_STRING) // Use String response
	->setItemDesc($desc)
	->setEmail($email)
	->setLoginType(0)
	->setNotifyURL($notifyUrl)
	->setReturnURL($returnUrl)
	->setCustomerURL($customUrl);

$pay2go->atm->enable();     // 啟用 ATM
$pay2go->barcode->enable(); // 啟用條碼
$pay2go->cvs->enable();     // 啟用超商代碼
$pay2go->webATM->enable();  // 啟用 Web ATM

// 啟用信用卡
$pay2go->creditCard->enable()
	->setUNIONPAY(1)
	->installment('3, 6, 12');

// 啟用支付寶
$pay2go->alipay->enable()
	->setReceiver('Sakura')
	->setTel1('123-12312-123')
	->setTel2('123-123-123')
	->setCount(1)
	->addProduct(
		$item->id,
		$item->title,
		$desc,
		$item->price,
		1
	);

// 啟用財富通
$pay2go->tenpay->enable()
	->setReceiver('Flower')
	->setTel1('123-12312-123')
	->setTel2('123-123-123')
	->setCount(1)
	->addProduct(
		$item->id,
		$item->title,
		$desc,
		(int) $price,
		1
	);

// 輸出成  直接 POST 即可繳費
echo $pay2go->redner(); // Render HTML Form
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

6

Last Release

4095d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1639206?v=4)[Simon Asika](/maintainers/asika32764)[@asika32764](https://github.com/asika32764)

---

Top Contributors

[![asika32764](https://avatars.githubusercontent.com/u/1639206?v=4)](https://github.com/asika32764 "asika32764 (14 commits)")

---

Tags

pay2gopay2go-phppaymentwindwalkerpay2go

### Embed Badge

![Health badge](/badges/windwalker-pay2go/health.svg)

```
[![Health](https://phpackages.com/badges/windwalker-pay2go/health.svg)](https://phpackages.com/packages/windwalker-pay2go)
```

###  Alternatives

[paymentsuite/stripe-bundle

Stripe PaymentSuite Component

105.0k](/packages/paymentsuite-stripe-bundle)

PHPackages © 2026

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