PHPackages                             jiggsawphp/paygatepro - 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. jiggsawphp/paygatepro

ActiveLibrary

jiggsawphp/paygatepro
=====================

A Laravel package for handling multiple payment gateways.

1.7.0(1y ago)211MITPHPPHP ^8.0

Since Aug 11Pushed 1y ago2 watchersCompare

[ Source](https://github.com/jiggsaw85/laravel-paygatepro)[ Packagist](https://packagist.org/packages/jiggsawphp/paygatepro)[ RSS](/packages/jiggsawphp-paygatepro/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

PayGatePro - Handle Payments in Your Laravel Application
========================================================

[](#paygatepro---handle-payments-in-your-laravel-application)

Introduction
------------

[](#introduction)

PayGatePro is a Laravel package designed to streamline the integration of multiple payment gateways into your Laravel application. Whether you need to handle payments via Stripe, PayPal, or any other supported gateway, PayGatePro provides a unified interface for managing transactions.

Features
--------

[](#features)

- **Multi-Gateway Support:** Easily switch between different payment gateways.
- **Simple Integration:** Quick setup with minimal configuration.
- **Flexible Configuration:** Define payment gateways and settings through configuration files.
- **Laravel Integration:** Built to work seamlessly with Laravel applications.

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

[](#requirements)

- PHP 8.0 or higher
- Laravel 9.x, 10.x, or 11.x

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

[](#installation)

To install PayGatePro, follow these steps:

1. **Add the Package to Your Project**

    Add the package to your `composer.json` file or run the following command:

    ```
    composer require jiggsawphp/paygatepro
    ```
2. **Publish the configuration file to customize the payment gateways and settings**

    ```
    php artisan vendor:publish --provider="JiggsawPhp\PayGatePro\Providers\PaymentServiceProvider"
    ```

Usage
-----

[](#usage)

Package supports Stripe, Authorize.net and PayPal payment gateways.

Get your credentials for payment gateway you want to use.

In your .env add:

```
# jiggsawphp/paygatepro
PAYMENT_GATEWAY=stripe
# stripe
STRIPE_API_KEY=your_stripe_key
# authorize.net
AUTHORIZE_NET_API_LOGIN_ID=your_api_login_id
AUTHORIZE_NET_TRANSACTION_KEY=your_transaction_key
# paypal
PAYPAL_MODE=sandbox_or_live
PAYPAL_CLIENT_ID=your_paypal_client_id
PAYPAL_SECRET=your_paypal_secret
```

PAYMENT\_GATEWAY variable defines payment gateway you want to use (default is stripe) (stripe, paypal or authorize).

1. Include PaymentService in your code and use charge or refund methods from it.
2. Examples:

    ```
     use JiggsawPhp\PayGatePro\Services\PaymentService;

     public function __construct(PaymentService $paymentService)
     {
         $this->paymentService = $paymentService;
     }

     /**
      * Charge with Stripe
      * @return JsonResponse
      */
     public function chargeWithStripe(): JsonResponse
     {
         $response = $this->paymentService->charge(100, 'USD', ['source' => 'tok_visa']);

         return response()->json($response, Response::HTTP_OK);
     }

     /**
      * Refund with Stripe
      * @return JsonResponse
      */
     public function refundWithStripe(): JsonResponse
     {
         $response = $this->paymentService->charge(100, 'USD', ['source' => 'tok_visa']);
         $refund = $this->paymentService->refund($response->id, 50, []);

         return response()->json($refund, Response::HTTP_OK);
     }

     /**
      * Charge with PayPal
      * @return JsonResponse
      */
     public function chargeWithPayPal(): JsonResponse
     {
         $response = $this->paymentService->charge(100.00, 'USD', [
             'return_url' => route('payment.success'),
             'cancel_url' => route('payment.cancel'),
             'description' => 'Payment for Order #12345',
         ]);

         return response()->json($response, Response::HTTP_OK);
     }

     /**
      * Refund with PayPal
      * @return JsonResponse
      */
     public function refundWithPayPal(): JsonResponse
     {
         $charge = $this->paymentService->charge(100.00, 'USD', [
             'return_url' => route('payment.success'),
             'cancel_url' => route('payment.cancel'),
             'description' => 'Payment for Order #12345',
         ]);
         $refund = $this->paymentService->refund($charge->id, 50.00);

         return response()->json($refund, Response::HTTP_OK);
     }

     /**
      * Charge with Authorize.net
      * @return JsonResponse
      */
     public function chargeWithAuthorize(): JsonResponse
     {
         $response = $this->paymentService->charge(100.00, 'USD', [
             'card_number' => '4111111111111111',
             'expiration_date' => '2024-12',
             'cvv' => '123',
         ]);

         return response()->json($response, Response::HTTP_OK);
     }

     /**
      * Refund with Authorize.net
      * @return JsonResponse
      */
     public function refundWithAuthorize(): JsonResponse
     {
         $charge = $this->paymentService->charge(100.00, 'USD', [
             'card_number' => '4111111111111111',
             'expiration_date' => '2024-12',
             'cvv' => '123',
         ]);
         $refund = $this->paymentService->refund($charge->id, 50.00, [
             'card_number' => '4111111111111111',
         ]);

         return response()->json($refund, Response::HTTP_OK);
     }
    ```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

644d ago

### Community

Maintainers

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

---

Top Contributors

[![jiggsaw85](https://avatars.githubusercontent.com/u/10550241?v=4)](https://github.com/jiggsaw85 "jiggsaw85 (15 commits)")

### Embed Badge

![Health badge](/badges/jiggsawphp-paygatepro/health.svg)

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

###  Alternatives

[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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