PHPackages                             kennebula/ayapaymentintegration - 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. kennebula/ayapaymentintegration

ActiveComposer-package

kennebula/ayapaymentintegration
===============================

Payment Integration Services for aya provider

13PHP

Since Aug 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hnineiphyu-ken/AYAPaymentIntegration)[ Packagist](https://packagist.org/packages/kennebula/ayapaymentintegration)[ RSS](/packages/kennebula-ayapaymentintegration/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AYA Payment Integration Package
===============================

[](#aya-payment-integration-package)

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

[](#requirements)

- PHP &gt;= 8.0;
- composer;

Features
--------

[](#features)

- PSR-4 autoloading compliant structure.
- Easy to use with Laravel framework.
- Useful tools for better code included.

Installation
============

[](#installation)

```
composer require kennebula/ayapaymentintegration

```

Set Up Tools
============

[](#set-up-tools)

Running Command:
----------------

[](#running-command)

```
php artisan vendor:publish --provider="KenNebula\AYAPaymentIntegration\PackageServiceProvider" --tag="config"

```

Config Output
-------------

[](#config-output)

```
return [
    #to fill app type (uat or production)
    'APP_TYPE' => null,
    'uat' => [
        #to fill access token of uat url
        'access_token' => null,
        #to fill user token of uat url
        'user_token' => null,
        #to fill push payment (pin) of uat url
        'push_payment' => null,
        #to fill qr payment of uat url
        'qr_payment' => null,
    ],
    'production' => [
        #to fill access token of production url
        'access_token' => null,
        #to fill user token of production url
        'user_token' => null,
        #to fill push payment (pin) of production url
        'push_payment' => null,
        #to fill qr payment of production url
        'qr_payment' => null,
    ],
    #to fill merchant's consumer key
    'consumer_key' => null,
    #to fill merchant's consumer secret
    'consumer_secret' => null,
    #to fill merchant's user id
    'user_id' => null,
    #to fill merchant's phone
    'phone' => null,
    #to fill merchant's password
    'password' => null,
    #to fill merchant's service code for pin
    'servic_code_pin' => null,
    #to fill merchant's service code for qr
    'servic_code_qr' => null,
    #to fill call back key to decrypt call back response
    'callback_key' => null
];

```

- This command will create aya.php file inside config folder like this,
- Important - You need fill the aya info in this config file for package usage.

Package Usage
-------------

[](#package-usage)

Get Access Token :
------------------

[](#get-access-token-)

```
use KenNebula\AYAPaymentIntegration\AYA;

AYA::getAccessToken();

```

Load Output
-----------

[](#load-output)

- This will return json array include the following field. { "access\_token": "6c8e0cac-7fb8-3751-80df-5cec3dbc7dd7", "scope": "am\_application\_scope default", "token\_type": "Bearer", "expires\_in": 3600 }
- Each data can be change according to provider's response.

Get User Token :
----------------

[](#get-user-token-)

```
use KenNebula\AYAPaymentIntegration\AYA;

AYA::getUserToken(@String $access_token);

```

- Note
- access\_token must be string.

Load Output
-----------

[](#load-output-1)

- This will return json array include the following field. { "err": 200, "message": "Success", "token": { "token": "5e2f768a-5228-49ca-b228-3fc1eaa27373", "expiredAt": "2020-02-06T01:35:40.545Z" }, }
- Each data can be change according to provider's response.

Send payment with (pin):
------------------------

[](#send-payment-with-pin)

```
use KenNebula\AYAPaymentIntegration\AYA;

AYA::pushPayment(@String $amount, @String $order_no, @String $customer_phone, @String $access_token, @String $user_token);

```

- Note
- amount must be string.
- order\_no must be integer.
- customer\_phone must be string.
- access\_token must be string.
- user\_token must be string.

Load Output
-----------

[](#load-output-2)

- This will return json array include the following field. { "err": 200, "message": "Success",
    "data": { "externalTransactionId": "HD100001", "referenceNumber": "5e816c06959b1f3db0113a7e" } }
- Each data can be change according to provider's response.

Send payment with (qr):
-----------------------

[](#send-payment-with-qr)

```
use KenNebula\AYAPaymentIntegration\AYA;

AYA::qrPayment(@String $amount, @String $order_no, @String $access_token, @String $user_token);

```

- Note
- amount must be string.
- order\_no must be integer.
- access\_token must be string.
- user\_token must be string.

Load Output
-----------

[](#load-output-3)

- This will return json array include the following field. { "err": 200, "message": "Success", "data": { "status": 0, "qrdata": "000201010212514200245d83683da3b8053cb768ef200110L3K4237989520430095405100005802MM5908HoangND6003Mon62720111123456543210309storeshop051206805361754150245e216cc54d067ef2b7adafb264180002en0108Hoang ND6304e1f6", "amount": 10000, "fees": { "debitFee": 200, "creditFee": 0 }, "type": "online\_merchant", "expiredAt": "2020-02-26T09:19:57.541Z", "action": "paymentCode", "externalTransactionId": "HD10001", "referenceNumber": "068053617541" } }
- Each data can be change according to provider's response.

License
=======

[](#license)

KenNebula Reserved Since 2024.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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://www.gravatar.com/avatar/92243ae854e38b6e7804de35e6a451406e7b1ccdbc2845df9b829f76c8184f76?d=identicon)[hnineiphyu-ken](/maintainers/hnineiphyu-ken)

---

Top Contributors

[![hnineiphyu-ken](https://avatars.githubusercontent.com/u/61172339?v=4)](https://github.com/hnineiphyu-ken "hnineiphyu-ken (25 commits)")

### Embed Badge

![Health badge](/badges/kennebula-ayapaymentintegration/health.svg)

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

PHPackages © 2026

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