PHPackages                             realexpayments/rxp-hpp-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. realexpayments/rxp-hpp-php

ActiveLibrary

realexpayments/rxp-hpp-php
==========================

SDK to send requests and parse responses from Realex Payments using HPP

v1.1.3(6y ago)13114.2k↓46.3%41[5 issues](https://github.com/realexpayments/rxp-hpp-php/issues)[1 PRs](https://github.com/realexpayments/rxp-hpp-php/pulls)MITPHPPHP &gt;=5.3.9

Since Sep 15Pushed 3y ago4 watchersCompare

[ Source](https://github.com/realexpayments/rxp-hpp-php)[ Packagist](https://packagist.org/packages/realexpayments/rxp-hpp-php)[ RSS](/packages/realexpayments-rxp-hpp-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Please use our new PHP SDK
==========================

[](#please-use-our-new-php-sdk)

We've moved. We highly recommend you use the Global Payments PHP SDK which supports all the features of this SDK and will benefit from all future releases:

With the latest update (1.1.3) this SDK supports the mandatory and recommended HPP fields for 3D Secure 2. Going forward it will only receive critical security updates, no further feature updates will be released beyond 3D Secure 2.

Realex Payments HPP PHP SDK
===========================

[](#realex-payments-hpp-php-sdk)

You can sign up for a Global Payments (formerly Realex Payments) account at

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

[](#requirements)

- PHP &gt;= 5.3.9
- For security and support we highly recommend you use PHP 7
- Composer ()

Instructions
------------

[](#instructions)

1. Add the following to your 'composer.json' file

    ```
    {
        "require": {
            "realexpayments/rxp-hpp-php": "1.1.3"
        }
    }

    ```
2. Inside the application directory run composer:

    ```
    composer update

    ```

    OR (depending on your server configuration)

    ```
    php composer.phar update

    ```
3. Add a reference to the autoloader class anywhere you need to use the sdk

    ```
    require_once ('vendor/autoload.php');
    ```
4. Use the sdk

    ```
    $hppRequest = new HppRequest();
    $hppRequest->addMerchantId("MerchantId");
    $hppRequest->addAccount("internet");
    ....
    ```

Usage
-----

[](#usage)

### Creating HPP Request JSON for Realex Payments JS Library

[](#creating-hpp-request-json-for-realex-payments-js-library)

```
