PHPackages                             payomatix/web-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. payomatix/web-sdk

ActiveLibrary[Payment Processing](/categories/payments)

payomatix/web-sdk
=================

Payomatix Web SDK for PHP

1.2.5(1y ago)018MITPHPPHP &gt;=7.0

Since Dec 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/midlifemario/payomatix_web_SDK)[ Packagist](https://packagist.org/packages/payomatix/web-sdk)[ Docs](https://payomatix.com/)[ RSS](/packages/payomatix-web-sdk/feed)WikiDiscussions main Synced 1mo ago

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

 [![](https://camo.githubusercontent.com/7e798771afdac263933f3eb1dfd4a2336a4bf2d674dae12beb97d759f8b4776f/68747470733a2f2f61646d696e2e7061796f6d617469782e636f6d2f73746f726167652f6e65775468656d652f696d616765732f6c6f676f2e706e67 "Payomatix")](https://camo.githubusercontent.com/7e798771afdac263933f3eb1dfd4a2336a4bf2d674dae12beb97d759f8b4776f/68747470733a2f2f61646d696e2e7061796f6d617469782e636f6d2f73746f726167652f6e65775468656d652f696d616765732f6c6f676f2e706e67)

Payomatix PHP SDK
=================

[](#payomatix-php-sdk)

This Payomatix PHP Library provides easy access to Payomatix APIs for php apps. It abstracts the complexity involved in direct integration and allows you to make quick calls to the APIs.

Table of Contents
-----------------

[](#table-of-contents)

1. [Requirements](#requirements)
2. [Dependencies](#dependencies)
3. [Installation](#installation)
4. [Initialization](#initialization)
5. [Getting Started](#getting-started)
6. [Status](#status)
7. [Custom Request Timeouts](#custom-request-timeouts)
8. [Debugging Errors](#debugging-errors)
9. [Terms and Conditions](#terms-and-conditions)
10. [License](#license)
11. [References](#references)

Requirements
------------

[](#requirements)

1. Payomatix Merchant account with API Keys
2. Minimum PHP versions: &gt;= 7.0.0

Dependencies
------------

[](#dependencies)

The bindings require the following extensions in order to work properly:

- [`curl`](https://secure.php.net/manual/en/book.curl.php)
- [`json`](https://secure.php.net/manual/en/book.json.php)
- [`mbstring`](https://secure.php.net/manual/en/book.mbstring.php) (Multibyte String)

If you use Composer, these dependencies should be handled automatically.

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

[](#installation)

### Installation via Composer.

[](#installation-via-composer)

To install the package via Composer, run the following command.

```
composer require payomatix/web-sdk
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require 'vendor/autoload.php';
```

Initialization
--------------

[](#initialization)

Create a .env file or copy from `.env.example` file Save your SECRET\_KEY in the `.env` file as PAYOMATIX\_SECRET\_KEY

```
cp .env.example .env
```

Your `.env` file should look this.

```
PAYOMATIX_SECRET_KEY=PAYXXXXXXXXXXXXXXXX.XXXXXXSECKEY
```

### Getting Started

[](#getting-started)

The SDK provides two methods of making collections

1. [Payomatix Non-Seamless](https://docs.payomatix.com/directPaymentAPI.php#section-2)
2. [Payomatix Seamless](https://docs.payomatix.com/directPaymentAPI.php#section-3)

Simple usage for non-seamless payments looks like:

```
