PHPackages                             giicms/one\_pay - 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. giicms/one\_pay

ActiveLibrary

giicms/one\_pay
===============

Integrated payment in laravel simple onepay

024PHP

Since Sep 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/giicms/one_pay)[ Packagist](https://packagist.org/packages/giicms/one_pay)[ RSS](/packages/giicms-one-pay/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Installation
------------

[](#installation)

The preferred way to install this extension is through composer.

Either run

composer require "giicms/one\_pay" "dev-master" or add

"giicms/one\_pay": "dev-master" to the require section of your application's composer.json file.

$onepay = new Onepay();

// cài đặt thông số bắt buộc

```
$onepay->setupMerchant($merchant, $access, $secure);

```

// $order\_info bat buoc viet tieng Viet, khong dau, va it hon 30 ky tu, nen dung order\_id. // Noi dia

```
$refer = $onepay->build_link($order_id, $total_amount, $order_info, $url_return);

```

// Quoc te

```
$refer = $onepay->build_link_vn($order_id, $total_amount, $order_info, $url_return);

```

// Chuyển trang

```
$onepay = new Onepay();
// cài đặt thông số bắt buộc
$onepay->setupMerchant($merchant, $access, $secure);
$hashValidated = $onepay->validate($_GET);
//Lấy thông tin giao dịch
// Define Variables
// ----------------
// Extract the available receipt fields from the VPC Response
// If not present then let the value be equal to 'No Value Returned'
// Standard Receipt Data
$amount = $onepay->null2unknown ( $_GET ["vpc_Amount"] );
$locale = $onepay->null2unknown ( $_GET ["vpc_Locale"] );
$batchNo = $onepay->null2unknown ( $_GET ["vpc_BatchNo"] );
$command = $onepay->null2unknown ( $_GET ["vpc_Command"] );
$message = $onepay->null2unknown ( $_GET ["vpc_Message"] );
$version = $onepay->null2unknown ( $_GET ["vpc_Version"] );
$cardType = $onepay->null2unknown ( $_GET ["vpc_Card"] );
$orderInfo = $onepay->null2unknown ( $_GET ["vpc_OrderInfo"] );
$receiptNo = $onepay->null2unknown ( $_GET ["vpc_ReceiptNo"] );
$merchantID = $onepay->null2unknown ( $_GET ["vpc_Merchant"] );
$authorizeID = $onepay->null2unknown ( $_GET ["vpc_AuthorizeId"] );
$merchTxnRef = $onepay->null2unknown ( $_GET ["vpc_MerchTxnRef"] );
$transactionNo = $onepay->null2unknown ( $_GET ["vpc_TransactionNo"] );
$acqResponseCode = $onepay->null2unknown ( $_GET ["vpc_AcqResponseCode"] );
$txnResponseCode = $onepay->null2unknown ( $_GET ["vpc_TxnResponseCode"] );
$transStatus = "";
if($hashValidated=="CORRECT" && $txnResponseCode=="0"){
    $transStatus = 2;
}elseif ($txnResponseCode!="0"){
    $transStatus = 0;
}elseif ($hashValidated=="INVALID HASH"){
    $transStatus = 3;
}
// code xu ly cua ban

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

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.

### Community

---

Top Contributors

[![giicms](https://avatars.githubusercontent.com/u/18387330?v=4)](https://github.com/giicms "giicms (18 commits)")

### Embed Badge

![Health badge](/badges/giicms-one-pay/health.svg)

```
[![Health](https://phpackages.com/badges/giicms-one-pay/health.svg)](https://phpackages.com/packages/giicms-one-pay)
```

PHPackages © 2026

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