PHPackages                             dev1d3/checkoutpage-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. dev1d3/checkoutpage-sdk

ActiveLibrary[Payment Processing](/categories/payments)

dev1d3/checkoutpage-sdk
=======================

1D3 PHP SDK

v1.0.0(2y ago)05.7k↓50%MITPHP

Since Dec 14Pushed 2y agoCompare

[ Source](https://github.com/dev1D3/checkoutpage-sdk-php)[ Packagist](https://packagist.org/packages/dev1d3/checkoutpage-sdk)[ RSS](/packages/dev1d3-checkoutpage-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

1D3 PHP SDK
===========

[](#1d3-php-sdk)

This is a set of libraries in the PHP language to ease integration of your service with the 1D3 Checkout Page.

Please note that for correct SDK operating you must have at least PHP 7.0.

Payment flow
------------

[](#payment-flow)

[![Payment flow](flow.png)](flow.png)

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

[](#installation)

Install with composer

```
composer require dev1d3/checkoutpage-sdk
```

### Get URL for payment

[](#get-url-for-payment)

```
$gate = new dev1d3\Gate('secret');
$payment = new dev1d3\Payment('11', 'some payment id');
$payment->setPaymentAmount(1000)->setPaymentCurrency('EUR');
$url = $gate->getPurchaseCheckoutPageUrl($payment);
```

`$url` here is the signed URL.

If you want to use another domain for URL you can change it with optional `Gate` constructor parameter:

```
new dev1d3\Gate('secret', 'https://mydomain.com/payment');
```

or change it with method

```
$gate->setPaymentBaseUrl('https://mydomain.com/payment');
```

### Handle callback from 1D3

[](#handle-callback-from-1d3)

You'll need to autoload this code in order to handle notifications:

```
$gate = new dev1d3\Gate('secret');
$callback = $gate->handleCallback($data);
```

`$data` is the JSON data received from payment system;

`$callback` is the Callback object describing properties received from payment system; `$callback` implements these methods:

1. `Callback::getPaymentStatus();`Get payment status.
2. `Callback::getPayment();`Get all payment data.
3. `Callback::getPaymentId();`Get payment ID in your system.

### TODO

[](#todo)

- Checkout Page opening
- Notifications handling
- Direct Gate requests
- PHPDoc

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

878d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/153829744?v=4)[pt1d3](/maintainers/pt1d3)[@pt1d3](https://github.com/pt1d3)

---

Top Contributors

[![pt1d3](https://avatars.githubusercontent.com/u/153829744?v=4)](https://github.com/pt1d3 "pt1d3 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/dev1d3-checkoutpage-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/dev1d3-checkoutpage-sdk/health.svg)](https://phpackages.com/packages/dev1d3-checkoutpage-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)
