PHPackages                             mutahirshah/payex-payment - 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. mutahirshah/payex-payment

ActiveLibrary[Payment Processing](/categories/payments)

mutahirshah/payex-payment
=========================

A Payex payment package for Laravel 11,current it works for payment process

v1.0.0(1y ago)012MITPHP

Since Jul 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mutahir-shah/payex-payment)[ Packagist](https://packagist.org/packages/mutahirshah/payex-payment)[ RSS](/packages/mutahirshah-payex-payment/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

payex-payment
=============

[](#payex-payment)

Payex Payment
=============

[](#payex-payment-1)

== Description == With Payex, you can now accept payments from Malaysia &amp; oversea customers via FPX, Cards (Visa/MC/UnionPay), EWallets, Instalments and Subscriptions (thru Cards &amp; Bank Account). Integrated to major courier companies like GDex, J&amp;T Express, Lalamove, MrSpeedy, and more!

Installation

A Payex payment package for Laravel 11.

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

[](#installation)

You can install the package via Composer:

```
composer require mutahirshah/payex-payment

Setup and Configuration

To set up with Payex:

1. Apply for a seller account at https://payex.io/ and your account will be processed within 1 business day.
2. Once your account is set up successfully, login to portal.payex.io and click on Setting on the left panel. Locate Secret.
3. enter different variable in .env file
4. Click on "Manage" once you have enabled Payex, enter your username with Payex (your registered email) and Secret.
5. Save changes.

this package only currently works for only 1 end point the payments

api/v1/PaymentIntents

# configuration
If using Laravel 11, your package service provider should be automatically discovered. If not, you can manually add the service provider to config/app.php:

'providers' => [
    // Other Service Providers
    Mutahirshah\PayexPayment\PayexPaymentServiceProvider::class,
],

php artisan vendor:publish --tag=payex-config

php artisan vendor:publish --provider="Mutahirshah\PayexPayment\PayexPaymentServiceProvider" --tag=config

Enviromental variables setting

PAYMENT_GATEWAY_API_USERNAME="examples@gmail.com"
PAYMENT_GATEWAY_API_SECRET="yourpassword"
PAYMENT_GATEWAY_SANDBOX=false
RETURN_URL="http://localhost:8085/shahge/laravel-api/public/callback"
CALLBACK_URL="http://localhost:8085/shahge/laravel-api/public/callback"
ACCEPT_URL="http://localhost:8085/shahge/laravel-api/public/callback"
REJECT_URL="http://localhost:8085/shahge/laravel-api/public/callback"

PAYMENT_TYPE="card"

You have to allow the CSRF token for payex the call back will through error like not found etc. or not allowed.

How to implement the code in your controller is below

1,'payment_type'=>'card');
        $data    = $paymentProcessor->payexPayment($bill);
        $result = json_decode($data,true);
        if($result['error'] == false){
            header("Location: " . $result['url']);exit;
        }
    }

    public function returnFunction(Request $request)
    {
        dd($request->all());
    }
}

License - The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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

Unknown

Total

1

Last Release

674d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f24a6ea5c5fad225c85b0a2083f282cfb11e1abafa820d84d080e2464435b28?d=identicon)[mutahirshah](/maintainers/mutahirshah)

---

Top Contributors

[![mutahirshah](https://avatars.githubusercontent.com/u/18327141?v=4)](https://github.com/mutahirshah "mutahirshah (5 commits)")[![mutahir-shah](https://avatars.githubusercontent.com/u/26217122?v=4)](https://github.com/mutahir-shah "mutahir-shah (2 commits)")

### Embed Badge

![Health badge](/badges/mutahirshah-payex-payment/health.svg)

```
[![Health](https://phpackages.com/badges/mutahirshah-payex-payment/health.svg)](https://phpackages.com/packages/mutahirshah-payex-payment)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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