PHPackages                             satyam147/central-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. satyam147/central-payment-gateway

ActiveLibrary[Payment Processing](/categories/payments)

satyam147/central-payment-gateway
=================================

Modular Central Payment Gateway Package

0.0.4(3mo ago)0909↓46.6%MITPHP

Since Mar 9Pushed 3mo agoCompare

[ Source](https://github.com/satyam147/central-payment-gateway-sdk)[ Packagist](https://packagist.org/packages/satyam147/central-payment-gateway)[ RSS](/packages/satyam147-central-payment-gateway/feed)WikiDiscussions main Synced 3w ago

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

Central Payment Gateway (satyam147/central-payment-gateway)
===========================================================

[](#central-payment-gateway-satyam147central-payment-gateway)

A modular Laravel package for central payment gateway functionality.

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

[](#installation)

Require the package in your Laravel project (for local development, use Composer path repository):

```
composer require satyam147/central-payment-gateway

```

Service Provider
----------------

[](#service-provider)

The package registers its own service provider.

Package Requirements
--------------------

[](#package-requirements)

- Laravel Framework &gt;= 12.0
- guzzlehttp/guzzle &gt;= 7.0

Publish the Config
------------------

[](#publish-the-config)

To publish the config file to your app, run:

```
php artisan vendor:publish --tag=central-payment-gateway-config

```

SDK Usage Example
-----------------

[](#sdk-usage-example)

### Initialize the client

[](#initialize-the-client)

```
use Satyam147\CentralPaymentGateway\CentralPaymentGatewayClient;

// Easiest: Automatically uses config values from config/central-payment-gateway.php
$client = new CentralPaymentGatewayClient();

// Or override config values with explicit arguments
$client = new CentralPaymentGatewayClient(
    'https://your-gateway.example.com', // baseUrl
    'your_public_key',                  // apiKey
    'your_secret_key',                  // apiSecret
);
```

### Initiate a payment

[](#initiate-a-payment)

```
$response = $client->initiatePayment([
    'amount' => 1000,
    'currency' => 'INR',
    // ... other fields
]);
$data = json_decode($response->getBody(), true);
```

### Get payment status/details

[](#get-payment-statusdetails)

```
$response = $client->getPaymentStatus('txn_abc123'); // Your transaction reference
$status = json_decode($response->getBody(), true);
```

### Check payment status (manual)

[](#check-payment-status-manual)

```
$response = $client->checkPaymentStatus('txn_abc123');
$statusCheck = json_decode($response->getBody(), true);
```

### Refund payment

[](#refund-payment)

```
$response = $client->refundPayment('txn_abc123', [
    'amount' => 500, // partial/main refund amount
]);
$refund = json_decode($response->getBody(), true);
```

### Get refund summary

[](#get-refund-summary)

```
$response = $client->getRefundSummary('txn_abc123');
$summary = json_decode($response->getBody(), true);
```

See `src/CentralPaymentGatewayClient.php` for more details.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance79

Regular maintenance activity

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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

4

Last Release

109d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20718656?v=4)[Satyam Dasari](/maintainers/satyam147)[@satyam147](https://github.com/satyam147)

---

Top Contributors

[![satyam147](https://avatars.githubusercontent.com/u/20718656?v=4)](https://github.com/satyam147 "satyam147 (6 commits)")

### Embed Badge

![Health badge](/badges/satyam147-central-payment-gateway/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.3M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.4M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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