PHPackages                             dnc-grafmen/white-pay-sdk - 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. dnc-grafmen/white-pay-sdk

ActiveLibrary[Payment Processing](/categories/payments)

dnc-grafmen/white-pay-sdk
=========================

00PHP

Since Apr 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nazarskrinskyi/white-pay-sdk)[ Packagist](https://packagist.org/packages/dnc-grafmen/white-pay-sdk)[ RSS](/packages/dnc-grafmen-white-pay-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP WhitePay SDK
================

[](#php-whitepay-sdk)

###### Simple PHP sdk for WhitePay api

[](#simple-php-sdk-for-whitepay-api)

### Installation

[](#installation)

`composer require dnc-grafmen/white-pay-sdk`

### Usage

[](#usage)

Make the `WhitePayClientFactory` and call his method `create` with parameters for create the `WhitePayClient`

#### Example

[](#example)

```
$apikey = 2300142124;
$slug = 'my_super_secret_slug_from_account';
$factory = new \WhitePaySdk\Factory\WhitePayClientFactory();
$clientSandbox = $factory->create($apikey, $slug, new \GuzzleHttp\Client(), \WhitePaySdk\Constants::URL_SANDBOX);
// or for production
$clientProduction = $factory->create($apikey, $slug, new \GuzzleHttp\Client());
```

The next step - make the factory which implemented the `PaymentFactoryInterface`.

#### Example

[](#example-1)

```
$factory = new \WhitePaySdk\Factory\CreatePaymentFactory();
```

And we also need to create a DTO that implements `DataDTOInterface`

#### Example

[](#example-2)

```
$dto = new \WhitePaySdk\DTO\CreatePaymentDTO(
        new \WhitePaySdk\DTO\TransactionDTO(
            300,
            'USDT',
            '00231'
            'https://my.site.com/payment/ok', 'https://my.site.com/payment/fail'
        )
);
```

And put this data to client send method.

#### Example

[](#example-3)

```
$response = $client->send($factory, $dto);
```

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/27bb90c5771e6107caedebcd1af8278775d3b5e7d609294b9bc62bee96c82ada?d=identicon)[nazarskrinskyi](/maintainers/nazarskrinskyi)

---

Top Contributors

[![nazarskrinskyi](https://avatars.githubusercontent.com/u/90456305?v=4)](https://github.com/nazarskrinskyi "nazarskrinskyi (2 commits)")

### Embed Badge

![Health badge](/badges/dnc-grafmen-white-pay-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/dnc-grafmen-white-pay-sdk/health.svg)](https://phpackages.com/packages/dnc-grafmen-white-pay-sdk)
```

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