PHPackages                             payus/payus-sdk-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. [API Development](/categories/api)
4. /
5. payus/payus-sdk-php

ActiveLibrary[API Development](/categories/api)

payus/payus-sdk-php
===================

Payus API Client

1163PHP

Since Aug 6Pushed 6y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PayusAPI PHP API client
=======================

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

Setup
-----

[](#setup)

**Composer:**

```
composer require "payus/payus-sdk-php:dev-master"
```

Quickstart
----------

[](#quickstart)

### Examples Using Factory

[](#examples-using-factory)

All following examples assume this step.

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

$payusapi = new PayusAPI\Factory([
  'access_token'      => 'demo'
]);
```

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

```
$payusapi = new PayusAPI\Factory([
  'access_token'      => 'demo'
],
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)

```
