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

ActiveLibrary[Payment Processing](/categories/payments)

paywant/php-sdk
===============

paywant api php client

1.0.2(3y ago)05.3k↓57.9%MITPHPPHP &gt;=5.6.0

Since Mar 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/paywant/php-sdk)[ Packagist](https://packagist.org/packages/paywant/php-sdk)[ Docs](https://www.paywant.com)[ RSS](/packages/paywant-php-sdk/feed)WikiDiscussions main Synced 2d ago

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

paywant/php-sdk
===============

[](#paywantphp-sdk)

[![Latest Stable Version](https://camo.githubusercontent.com/51def4768168cbc8004836157083ae07f02e511e53df60e046fa2bd28576f758/68747470733a2f2f706f7365722e707567782e6f72672f70617977616e742f7068702d73646b2f762f737461626c65)](https://packagist.org/packages/paywant/php-sdk)[![Build Status](https://camo.githubusercontent.com/3f7c816bf486a004f888849120191292d009ccda76c1d7cc351b988e9ec1d4f3/68747470733a2f2f7472617669732d63692e6f72672f70617977616e742f7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/paywant/php-sdk)

To use this library, you must have an approved Paywant merchant account and store. You can access Paywant at .

The document for this service is at

Requirement
===========

[](#requirement)

PHP 5.6 and above. Curl

Install
=======

[](#install)

### Composer

[](#composer)

Execute this command to use via [Composer](http://getcomposer.org/) :

```
composer require paywant/php-sdk
```

Call composer [autoload](https://getcomposer.org/doc/00-intro.md#autoloading) file for define:

```
require_once('vendor/autoload.php');
```

### Composer Olmadan

[](#composer-olmadan)

If you don't want to use Composer, you can download the latest version of sdk from [latest release](https://github.com/paywant/php-sdk/releases).

To use, it will be sufficient to include the `Bootstrap.php` file in the folder you downloaded to your project.

```
require_once('/path/to/php-sdk/Bootstrap.php');
```

Example
=======

[](#example)

Usage for Create Store Url
--------------------------

[](#usage-for-create-store-url)

```
use Paywant\Config;
use Paywant\Model\Buyer;
use Paywant\Store\Create;

$config = new Config();
$config->setAPIKey('TEST'); // API KEY
$config->setSecretKey('TEST'); // API SECRET
$config->setServiceBaseUrl('https://secure.paywant.com');

// create request object with config
$request = new Create($config);

// buyer info.
$buyer = new Buyer();

$buyer->setUserAccountName('username');
$buyer->setUserEmail('customer@email.com');
$buyer->setUserID('1');

// set objects to Request
$request->setBuyer($buyer);

if ($request->execute())
{ // execute request
    try
    {
        echo $request->getResponse(); // json
    }
    catch (Exception $ex)
    {
        echo $ex->getMessage();
    }
}
else
{
    echo $request->getError(); // got a error
}
```

To create a direct payment screen, [you can check the example here](https://github.com/paywant/php-sdk/blob/master/example/Payment.php).

For IPN [you can check the example here](https://github.com/paywant/php-sdk/blob/master/example/IPN.php).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

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 ~709 days

Total

2

Last Release

1240d ago

### Community

Maintainers

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

---

Top Contributors

[![ozdemiremrah](https://avatars.githubusercontent.com/u/11933291?v=4)](https://github.com/ozdemiremrah "ozdemiremrah (5 commits)")

---

Tags

payment processingpaywantpaywant paymentpaywant phppaywant.compaywant apipaywant api php clientpaywant api php

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[iyzico/iyzipay-php

iyzipay api php client

3291.2M31](/packages/iyzico-iyzipay-php)[omise/omise-php

A PHP library designed specifically to connect with Omise API.

71508.9k8](/packages/omise-omise-php)[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

40952.8k6](/packages/cybersource-rest-client-php)[sumup/sumup-ecom-php-sdk

SumUp PHP SDK

52303.6k1](/packages/sumup-sumup-ecom-php-sdk)[eway/eway-rapid-php

Eway Rapid PHP library

151.3M9](/packages/eway-eway-rapid-php)[unitpay/php-sdk

PHP SDK for Unitpay

4289.7k](/packages/unitpay-php-sdk)

PHPackages © 2026

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