PHPackages                             azaharizaman/nexus-payment-gateway - 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. azaharizaman/nexus-payment-gateway

ActiveLibrary[Payment Processing](/categories/payments)

azaharizaman/nexus-payment-gateway
==================================

Payment gateway extension providing integrations with Stripe, PayPal, Square, and other online payment processors

v0.1.0-alpha1(1mo ago)00MITPHPPHP ^8.3

Since May 5Pushed 1mo agoCompare

[ Source](https://github.com/azaharizaman/nexus-payment-gateway)[ Packagist](https://packagist.org/packages/azaharizaman/nexus-payment-gateway)[ RSS](/packages/azaharizaman-nexus-payment-gateway/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

Nexus\\PaymentGateway
=====================

[](#nexuspaymentgateway)

**Version:** 0.1.0
**Status:** In Development
**PHP:** ^8.3
**Extends:** `azaharizaman/nexus-payment`

Overview
--------

[](#overview)

`Nexus\PaymentGateway` is an extension package for `Nexus\Payment` providing integrations with online payment processors like Stripe, PayPal, Square, Adyen, and regional gateways. This package handles tokenization, authorization, capture, refunds, and webhook processing.

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

[](#installation)

```
composer require azaharizaman/nexus-payment-gateway
```

Features
--------

[](#features)

- **Multi-Gateway Support** - Stripe, PayPal, Square, Adyen, Braintree
- **Tokenization** - Secure card tokenization (PCI DSS compliant)
- **Payment Intents** - 3D Secure / SCA support
- **Webhooks** - Standardized webhook handling
- **Refunds** - Full and partial refunds
- **Disputes** - Chargeback handling

Security &amp; PCI Compliance
-----------------------------

[](#security--pci-compliance)

**CRITICAL:** This package is designed to minimize PCI scope.

1. **Never Store PAN/CVV:** You must **NEVER** store raw credit card numbers (PAN) or CVV codes in your database or logs.
2. **Use Tokenization:** Always use client-side tokenization (e.g., Stripe Elements, PayPal JS SDK) to send card data directly to the gateway. Your server should only receive a `payment_method_id` or `token`.
3. **Logging Redaction:** Ensure your logging configuration redacts sensitive fields. This package's DTOs are designed to carry tokens, not raw card data.

Quick Start
-----------

[](#quick-start)

```
use Nexus\PaymentGateway\Contracts\GatewayManagerInterface;

final readonly class OnlinePaymentService
{
    public function __construct(
        private GatewayManagerInterface $gatewayManager,
    ) {}

    public function charge(string $gateway, ChargeRequest $request): ChargeResult
    {
        $processor = $this->gatewayManager->getProcessor($gateway);
        return $processor->charge($request);
    }
}
```

Supported Gateways
------------------

[](#supported-gateways)

GatewayStatusFeaturesStripePlannedCards, ACH, SEPA, 3DSPayPalPlannedPayPal, VenmoSquarePlannedCards, Apple PayAdyenPlannedCards, Local MethodsBraintreePlannedCards, PayPalDocumentation
-------------

[](#documentation)

- [Requirements](REQUIREMENTS.md)
- [Implementation Summary](IMPLEMENTATION_SUMMARY.md)
- [Test Suite Summary](TEST_SUITE_SUMMARY.md)

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance93

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

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

36d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/117408?v=4)[Azahari Zaman](/maintainers/azaharizaman)[@azaharizaman](https://github.com/azaharizaman)

---

Top Contributors

[![azaharizaman](https://avatars.githubusercontent.com/u/117408?v=4)](https://github.com/azaharizaman "azaharizaman (26 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (3 commits)")

---

Tags

stripepaymentgatewaypaypalERPonline-paymentsquare

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/azaharizaman-nexus-payment-gateway/health.svg)

```
[![Health](https://phpackages.com/badges/azaharizaman-nexus-payment-gateway/health.svg)](https://phpackages.com/packages/azaharizaman-nexus-payment-gateway)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M395](/packages/drupal-core-recommended)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k11](/packages/tempest-framework)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

1237.8M117](/packages/web-auth-webauthn-lib)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51090.8k2](/packages/web-auth-webauthn-framework)[tastyigniter/ti-ext-payregister

Allows you to accept credit card payments using PayPal, Stripe, Authorize.Net and/or Mollie.

1016.7k6](/packages/tastyigniter-ti-ext-payregister)

PHPackages © 2026

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