PHPackages                             paytring/php - 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. paytring/php

ActiveLibrary[Payment Processing](/categories/payments)

paytring/php
============

php sdk for paytring

v0.0.2(3y ago)01.7kPHP

Since Dec 12Pushed 2y agoCompare

[ Source](https://github.com/paytring/php-sdk)[ Packagist](https://packagist.org/packages/paytring/php)[ RSS](/packages/paytring-php/feed)WikiDiscussions bugs\_fixes Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

PHP SDK
=======

[](#php-sdk)

Supported Features

- Only Non Seamless Integration Api SUpported
- Create Order
- Fetch/Verify Order

Non Seamless
------------

[](#non-seamless)

```
This sdk only supports non seamless integration, by non seamless we mean the the use will alway need to redirect the ens user to payment gateways where he'll select his preferred payment method and complete payment.

```

Create Order
------------

[](#create-order)

```
$api_key = "test_123";
$api_secret = "secret_123";

$paytring = new  \Paytring\Php\Api($api_key, $api_secret);

$amount_in_paisa  = "100";
$receipt_number  = "10123450";
$merchant_callback_Url  = "http://localhost:8000/callback";

$customer_info = [
    'name' => 'John Doe',
    'email' => 'a@mcsam.in',
    'phone' => '9234567890',
];

$response = $paytring->CreateOrder(
        $amount_in_paisa,
        $receipt_number,
        $merchant_callback_Url,
        $customer_info
    );

var_dump($response);
```

CreateOrder method ask you to provide below listened info and wont proceed without it.

- Amount in paisa eg. for Rs.1 == 100
- Receipt Number eg. 100d12 # this is merchant order ref no
- Merchant Callback url , this is were pg will redirect user after payment complete(success/failure) in post request.
- CUstomer Info eg. Name, Email and Phone

Fetch Order
-----------

[](#fetch-order)

```
$api_key = "test_123";
$api_secret = "secret_123";

$paytring = new  \Paytring\Php\Api($api_key, $api_secret);

$pg_order_id  = "d234ew32r4345fd";

$fetchResponse = $paytring->FetchOrder($pg_order_id);

var_dump($fetchResponse);
```

Fetch Order method ask you to provide below listened info and wont proceed without it.

- PG Order Id, when you create a order pg will give you an order if you can pass the same to this function to get info like payment status and more about that here.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.6% 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 ~121 days

Total

2

Last Release

1130d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/741b09503bc9e7f1ce3d112b8c4ef7343027f8600e9cbbe06e4fdb7fa0b930ce?d=identicon)[paytring](/maintainers/paytring)

---

Top Contributors

[![preetamwebinfomart](https://avatars.githubusercontent.com/u/80381862?v=4)](https://github.com/preetamwebinfomart "preetamwebinfomart (5 commits)")[![ramsharan-mcsam](https://avatars.githubusercontent.com/u/103238640?v=4)](https://github.com/ramsharan-mcsam "ramsharan-mcsam (2 commits)")[![4nkitd](https://avatars.githubusercontent.com/u/52023083?v=4)](https://github.com/4nkitd "4nkitd (1 commits)")[![sharma-preetam](https://avatars.githubusercontent.com/u/159436160?v=4)](https://github.com/sharma-preetam "sharma-preetam (1 commits)")

### Embed Badge

![Health badge](/badges/paytring-php/health.svg)

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

###  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)
