PHPackages                             siddik-web/unified-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. siddik-web/unified-payment-gateway

ActiveLibrary[Payment Processing](/categories/payments)

siddik-web/unified-payment-gateway
==================================

A unified payment gateway for PayPal and Stripe integrations in PHP

202PHP

Since Nov 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/siddik-web/unified-payment-gateway)[ Packagist](https://packagist.org/packages/siddik-web/unified-payment-gateway)[ RSS](/packages/siddik-web-unified-payment-gateway/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Unified Payment Gateway
=======================

[](#unified-payment-gateway)

**Unified Payment Gateway** is a PHP library that provides a unified interface for integrating both PayPal and Stripe payments. This package is designed with the SOLID principles in mind, making it modular, extendable, and easy to use in any PHP project.

Features
--------

[](#features)

- Unified API for handling payments across PayPal and Stripe.
- Support for creating payments, capturing, and refunds.
- Subscription management for both PayPal and Stripe.
- Webhook handling for both PayPal and Stripe.
- Easy configuration through a single config file.

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

[](#installation)

Install the package using Composer:

```
composer require siddik-web/unified-payment-gateway
```

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

[](#configuration)

To configure your payment providers, create a configuration file (e.g., `config/payment_config.php`) with the following structure:

```
