PHPackages                             raphaeltrust/paytredphp - 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. raphaeltrust/paytredphp

ActiveLibrary[API Development](/categories/api)

raphaeltrust/paytredphp
=======================

Official PHP library for Paytred API

v1.0.0(11mo ago)01PHP

Since Jun 1Pushed 11mo agoCompare

[ Source](https://github.com/Raphaeltrust/Paytredphp)[ Packagist](https://packagist.org/packages/raphaeltrust/paytredphp)[ RSS](/packages/raphaeltrust-paytredphp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

A PHP API wrapper for Paytred
=============================

[](#a-php-api-wrapper-for-paytred)

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

[](#requirements)

#### Curl 7.34.0 or more recent (Unless using Guzzle)

[](#curl-7340-or-more-recent-unless-using-guzzle)

#### PHP 5.4.0 or more recent

[](#php-540-or-more-recent)

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

[](#installation)

### Via Composer

[](#via-composer)

```
$ composer require raphaeltrust/paytredphp

```

### Via download

[](#via-download)

Download a release version from the releases page. Extract, then:

```
require 'path/to/src/

```

To make a payment do a redirect to the authorization URL received from calling the /pay endpoint. This URL is valid for one time use, so ensure that you generate a new URL per transaction.

When the payment is successful, we will call your callback URL (as setup in your dashboard or while initializing the payment) and return the reference and transaction status as a query parameter.

Using the API
=============

[](#using-the-api)

Check your Paytred wallet balance
---------------------------------

[](#check-your-paytred-wallet-balance)

The endpoint for checking wallet balance is \[/balance\]

```
