PHPackages                             allsecure-pay/php-exchange - 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. allsecure-pay/php-exchange

ActiveProject

allsecure-pay/php-exchange
==========================

AllSecure eXchange Client for PHP

v3.9.0(2y ago)29.3k↓31.4%3[1 issues](https://github.com/allsecure-pay/exchange-php-client/issues)MITPHPPHP &gt;=5.6

Since May 10Pushed 2y agoCompare

[ Source](https://github.com/allsecure-pay/exchange-php-client)[ Packagist](https://packagist.org/packages/allsecure-pay/php-exchange)[ RSS](/packages/allsecure-pay-php-exchange/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (15)Used By (0)

Exchange Client
===============

[](#exchange-client)

[![Packagist](https://camo.githubusercontent.com/e5f70597cf301ffd6a40053cd1b41576bee870084b780a2bd95f50ea59ad990c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6c7365637572652d7061792f7068702d65786368616e67652e737667)](https://packagist.org/packages/allsecure-pay/php-exchange)[![PHP Version](https://camo.githubusercontent.com/9a9a16b03b0bfd0e3f0e84991a59df5123926a1f8ccc9f162c07c466fba6f86d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616c6c7365637572652d7061792f7068702d65786368616e67652e737667)](https://packagist.org/packages/allsecure-pay/php-exchange)[![License](https://camo.githubusercontent.com/25e4dd9857d1440c9e2057eab16a22117b84af8a1693e23967e5d18cf189d0bd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616c6c7365637572652d7061792f7068702d65786368616e67652e737667)](LICENSE)

API Documentation:
------------------

[](#api-documentation)

Learn more about AllSecure Exchange platform by reading our [documentation](https://asxgw.com/documentation/gateway).

Installation via composer:
--------------------------

[](#installation-via-composer)

### Requirements

[](#requirements)

- PHP 5.6 or newer
- Installed \[Composer\]\[composer\]

### Composer

[](#composer)

Add the ALLSECURE EXCHANGE PHP SDK to your `composer.json`.

```
composer require allsecure-pay/php-exchange
```

Refer to [Composer Documentation](https://github.com/composer/composer/blob/master/doc/00-intro.md#introduction) if you are not familiar with composer).

Usage with test parameters:
---------------------------

[](#usage-with-test-parameters)

PHP client is made having in mind the LIVE environment. If you are to test on a Sandbox environment, you should ammend the client as follows:

- src/Client.php to comment-out line 46 and uncomment line 47
- src/Client.php to comment-out line 70 and uncomment line 71
- src/Xml/Generator.php to comment-out line 43 and uncomment line 44

Usage:
------

[](#usage)

### Prerequisites

[](#prerequisites)

- \[ALLSECURE EXCHANGE\] account
- API User - consisting of:
    - username, and
    - password
- Connector - consisting of:
    - API key, and
    - optional: shared secret

### Setting up credentials

[](#setting-up-credentials)

Instantiate a new `Exchange\Client\Client` authenticated via your API user &amp; password, connecting it to a payment adapter identified by an API key and authenticated using a shared secret.

```
