PHPackages                             laranex/laravel-myanmar-payments - 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. laranex/laravel-myanmar-payments

ActiveLibrary[Payment Processing](/categories/payments)

laranex/laravel-myanmar-payments
================================

A Laravel package to deal with Payment Providers from Myanmar

v2.2.5(6mo ago)2111.1k↓50%7MITPHPPHP ^7.4|^8.0

Since Nov 14Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/laranex/laravel-myanmar-payments)[ Packagist](https://packagist.org/packages/laranex/laravel-myanmar-payments)[ Docs](https://github.com/laranex/laravel-myanmar-payments)[ RSS](/packages/laranex-laravel-myanmar-payments/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (33)Used By (0)

Laravel Myanmar Payments
========================

[](#laravel-myanmar-payments)

[![Latest Version on Packagist](https://camo.githubusercontent.com/064416a309ed0743dd0bcc75ce1cb1689cae05fe4fbac664b7d3407676b50574/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c6172616e65782f6c61726176656c2d6d79616e6d61722d7061796d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Laranex/laravel-myanmar-payments)[![Total Downloads](https://camo.githubusercontent.com/0be3f312e16052aa50b2c59105041229b914090fd772135ebe34c270d9dd7677/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4c6172616e65782f6c61726176656c2d6d79616e6d61722d7061796d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Laranex/laravel-myanmar-payments)

A Laravel Package to deal with Payment Providers from Myanmar. This package can take care of PGW payments.

Supported Payments are as follows.

- Wave Money
- 2C2P
- KBZPay
- Cybersource
- AYA Payment Gateway

### Workflows

[](#workflows)

- Client App - Server Workflow

[![Client App - Server Workflow](docs/ClientAppServerPGW.png)](docs/ClientAppServerPGW.png)

- Server Side only Workflow

[![Server Side only Workflow](docs/ServerSideOnlyPGW.png)](docs/ServerSideOnlyPGW.png)

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

[](#installation)

You can install the package via composer:

```
composer require laranex/laravel-myanmar-payments
```

Configuration
-------------

[](#configuration)

```
  php artisan vendor:publish --tag="laravel-myanmar-payments"
```

Upgrade Guide
-------------

[](#upgrade-guide)

- v1 -&gt; v2
    - Backup &amp; Delete the existing config/laravel-myanmar-payments.php (if only published before)
    - Publish the new config/laravel-myanmar-payments, and re-merge the old config/laravel-myanmar-payments.php
    - Update .env (KBZ Pay is supported now)

[Wave Money Configuration](https://github.com/DigitalMoneyMyanmar/wppg-documentation#23-environment)[2c2P Configuration](https://developer.2c2p.com/docs/redirect-api-integrate-with-payment)[KBZ Pay Configuration](https://wap.kbzpay.com/pgw/uat/api/#/en/dashboard)

Usage
-----

[](#usage)

```
use Laranex\LaravelMyanmarPayments\LaravelMyanmarPaymentsFacade;

# WAVEMONEY
# Payment Screen
LaravelMyanmarPaymentsFacade::channel('wave_money')
    ->getPaymentScreenUrl($items, $orderId, $amount, $merchantReferenceId, $backendResultUrl, $frontendResultUrl, $paymentDescription)
# Validate Response Signature
Laranex\LaravelMyanmarPayments\LaravelMyanmarPaymentsFacade::channel("wave_money")
    ->verifyWaveSignature($request)

# 2C2P
# Payment Screen
LaravelMyanmarPaymentsFacade::channel('2c2p')
    ->getPaymentScreenUrl($orderId, $amount, $noneStr, $backendResultUrl,$currencyCode, $frontendResultUrl, $paymentDescription, $userDefined)
# Parse Response Payload
Laranex\LaravelMyanmarPayments\LaravelMyanmarPaymentsFacade::channel('2c2p')
->parseJWT('jwtTokenFrom2c2cServer', $currencyCode)
# $frontendResultUrl & $paymentDescription are optional and the rest are mandatory.

#KBZ PAY
# PWA URL
LaravelMyanmarPaymentsFacade::channel("kbz_pay.pwaapp")
    ->getPaymentScreenUrl($orderId, $amount, $nonceStr,  $backendResultUrl)
# QR Code
LaravelMyanmarPaymentsFacade::channel("kbz_pay.qr")
    ->getPaymentQr($orderId, $amount, $nonceStr,  $backendResultUrl)

# In App
LaravelMyanmarPaymentsFacade::channel("kbz_pay.app")->getPaymentData($orderId, $amount, $nonceStr, $backendResultUrl);

# $nonceStr should be at least 32 characters long, uppercase & numbers according to KbzPay Documentation

# Validate Response Signature
LaravelMyanmarPaymentsFacade::channel("kbz_pay.qr")
    verifySignature($request)

#Cybersource
# Secure Acceptance
LaravelMyanmarPaymentsFacade::channel("cyber_source.secure_acceptance")
    ->getPaymentData($transactionId, $referenceNumber, $amount)

# Validate Request Signature
LaravelMyanmarPaymentsFacade::channel("cyber_source.secure_acceptance")
    ->verifySignature($request)

# AYA Payment Gateway
# Request available payment methods
LaravelMyanmarPaymentsFacade::channel("aya_pgw")
    ->getPaymentServices()
# Payment Screen Payload
LaravelMyanmarPaymentsFacade::channel("aya_pgw")
    ->paymentRequest($orderId, $amount, $channel, $method, $currencyCode)
# Enquiry Payment Status
LaravelMyanmarPaymentsFacade::channel("aya_pgw")
    ->paymentEnquiry($orderId)
# Validate Response Payload Signature
LaravelMyanmarPaymentsFacade::channel("aya_pgw")
    ->verifySignature($payload, $checkSum)
```

For more api options, you can read the composition of the

- Wave Money function [here](src/WaveMoney.php)
- 2c2P [here](src/TwoCTwoP.php)
- KBZ Pay
    - [PWA](src/KbzPayPwa.php)
    - [QR](src/KbzPayQr.php)
    - [InApp](src/KbzPayApp.php)
- Cybersource
    - [Secure Acceptance](src/CyberSourceSecureAcceptance.php)
- AYA Payment Gateway [here](src/AyaPgw.php)

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contributors
------------

[](#contributors)

- [Nay Thu Khant](https://github.com/naythukhant)
- [Thin Aung](https://github.com/makgsoewar)
- [Pai Soe Htike](https://github.com/paisoedev)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance67

Regular maintenance activity

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 76.8% 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 ~47 days

Recently: every ~57 days

Total

24

Last Release

192d ago

Major Versions

v1.1.4 → v2.0.02024-03-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2325853b60b6406c6858e62ccac7bc18920067222cd3d704e288aacc0d29798?d=identicon)[NayThuKhant](/maintainers/NayThuKhant)

---

Top Contributors

[![NayThuKhant](https://avatars.githubusercontent.com/u/61656360?v=4)](https://github.com/NayThuKhant "NayThuKhant (43 commits)")[![paisoehtike-onenex](https://avatars.githubusercontent.com/u/137976244?v=4)](https://github.com/paisoehtike-onenex "paisoehtike-onenex (11 commits)")[![hareom284](https://avatars.githubusercontent.com/u/64596861?v=4)](https://github.com/hareom284 "hareom284 (1 commits)")[![Makgsoewar](https://avatars.githubusercontent.com/u/9625092?v=4)](https://github.com/Makgsoewar "Makgsoewar (1 commits)")

---

Tags

laranexlaravel-myanmar-paymentslaravel-wave-moneylaravel-2c2p

### Embed Badge

![Health badge](/badges/laranex-laravel-myanmar-payments/health.svg)

```
[![Health](https://phpackages.com/badges/laranex-laravel-myanmar-payments/health.svg)](https://phpackages.com/packages/laranex-laravel-myanmar-payments)
```

###  Alternatives

[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)[paypayopa/php-sdk

PHP SDK for PayPay Open Payment API

18279.6k3](/packages/paypayopa-php-sdk)[yanlongli/app-store-server-api

PHP client for App Store Server API. Manage your customers’ App Store transactions from your server.The App Store Server API is a REST API that you call from your server to request and provide information about your customers' in-app purchases. The App Store signs the transaction and subscription renewal information that this API returns using the JSON Web Signature (JWS) specification.App Store Server API is independent of the app’s installation status on the customer’s devices. The App Store server returns information based on the customer’s in-app purchase history regardless of whether the customer installed, removed, or reinstalled the app on their devices.To request transaction and subscription status information with this API, provide any original transaction identifier that belongs to the customer. The transaction history API responds with a complete list of transactions, 20 at a time, starting with the oldest first. The subscription status API returns the status for all of the customer’s subscriptions, organized by their subscription group identifier.Use the Send Consumption Information endpoint to send information to the App Store when customers request a refund for a consumable in-app purchase, after you receive the CONSUMPTION\_REQUEST App Store server notification. Your data helps inform refund decisions.

2532.0k](/packages/yanlongli-app-store-server-api)

PHPackages © 2026

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