PHPackages                             webguru221/paytrust-php - 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. webguru221/paytrust-php

ActiveLibrary[Payment Processing](/categories/payments)

webguru221/paytrust-php
=======================

PayTrust88 API Client

0401PHP

Since Jan 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/webguru221/paytrust-php)[ Packagist](https://packagist.org/packages/webguru221/paytrust-php)[ RSS](/packages/webguru221-paytrust-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PayTrust PHP API client
=======================

[](#paytrust-php-api-client)

Setup
-----

[](#setup)

**Composer:**

```
composer require "webguru221/paytrust-php:dev-master"
```

Quickstart
----------

[](#quickstart)

### Examples Using Factory

[](#examples-using-factory)

All following examples assume this step.

```
// The only required value is the 'key'

$paytrust = new PayTrust\Factory([
  'key'      => 'demo',
  'base_url' => 'https://api.paytrust88.com' // default
]);
```

*Note:* You can prevent any error handling provided by this package by passing following options into client creation routine:

```
$paytrust = new PayTrust\Factory([
  'key'      => 'demo',
  'base_url' => 'https://api.paytrust88.com' // default
],
null,
[
  'http_errors' => false // pass any Guzzle related option to any request, e.g. throw no exceptions
],
false // return Guzzle Response object for any ->request(*) call
);
```

By setting `http_errors` to false, you will not receive any exceptions at all, but pure responses. For possible options, see .

### Example Without Factory

[](#example-without-factory)

```
