PHPackages                             academe/elavon-epg-psr7 - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. academe/elavon-epg-psr7

ActiveLibrary[HTTP &amp; Networking](/categories/http)

academe/elavon-epg-psr7
=======================

PSR-7 messages and DTO classes for the Elavon Payment Gateway (EPG) API

2.0.1(4mo ago)0111MITPHPPHP ^8.1

Since Nov 23Pushed 4mo agoCompare

[ Source](https://github.com/academe/elavon-epg-psr7)[ Packagist](https://packagist.org/packages/academe/elavon-epg-psr7)[ RSS](/packages/academe-elavon-epg-psr7/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (5)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/0f1aa157a7d9be69904eb5563157447e83fded17c76abc689be0a2adfa0e9c0b/687474703a2f2f706f7365722e707567782e6f72672f61636164656d652f656c61766f6e2d6570672d707372372f76)](https://packagist.org/packages/academe/elavon-epg-psr7) [![Total Downloads](https://camo.githubusercontent.com/dea3abb55d5f80023a7ac0c654c295212868383aa8ced17499f966cc23d45372/687474703a2f2f706f7365722e707567782e6f72672f61636164656d652f656c61766f6e2d6570672d707372372f646f776e6c6f616473)](https://packagist.org/packages/academe/elavon-epg-psr7) [![Latest Unstable Version](https://camo.githubusercontent.com/67d0503471d901fe12009b595ad29dd961598a17f9cca08cbd3c41750b8441bc/687474703a2f2f706f7365722e707567782e6f72672f61636164656d652f656c61766f6e2d6570672d707372372f762f756e737461626c65)](https://packagist.org/packages/academe/elavon-epg-psr7) [![License](https://camo.githubusercontent.com/f8561672b45d94908228754ad21e68c7ac97461e81c04903a7c226ff30ed9b73/687474703a2f2f706f7365722e707567782e6f72672f61636164656d652f656c61766f6e2d6570672d707372372f6c6963656e7365)](https://packagist.org/packages/academe/elavon-epg-psr7) [![PHP Version Require](https://camo.githubusercontent.com/723b97e07c55cf13566ca890e866b57d78d74ad072c44e2858572171f212d5b4/687474703a2f2f706f7365722e707567782e6f72672f61636164656d652f656c61766f6e2d6570672d707372372f726571756972652f706870)](https://packagist.org/packages/academe/elavon-epg-psr7)

Elavon EPG PSR-7
================

[](#elavon-epg-psr-7)

PSR-7 HTTP messages and Data Transfer Object (DTO) classes for the Elavon Payment Gateway (EPG) API.

The [API is described here](https://developer.elavon.com/products/en-uk/elavon-payment-gateway/v1/api-reference) and the [OpenAPI description is here](./docs/openapi.json)

Table of Contents
-----------------

[](#table-of-contents)

- [Overview](#overview)
- [Get an Elavon Merchant Account](#get-an-elavon-merchant-account)
- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start)
    - [Using DTOs (fromData)](#using-dtos-fromdata)
    - [Using Value Objects (Type-Safe)](#using-value-objects-type-safe)
    - [Paginated Lists with QueryParams](#paginated-lists-with-queryparams)
- [Features](#features)
- [API Endpoints](#api-endpoints)
- [Development](#development)
- [License](#license)
- [Contributing](#contributing)
- [Namespace](#namespace)

Overview
--------

[](#overview)

This package provides strongly-typed PHP classes for interacting with the Elavon Payment Gateway API. It includes:

- PSR-7 compliant HTTP message implementations
- DTO classes for request and response data structures
- Type-safe value objects for payment data
- Support for all EPG API resources and operations

This package handles message construction and serialization. A separate HTTP client package will handle the actual sending of requests.

Get an Elavon Merchant Account
------------------------------

[](#get-an-elavon-merchant-account)

Tip

Don't have an Elavon merchant account yet? [**Sign up here**](https://www.elavon.eu/partner-form.html?partner_id=0014H00004E0iYw) to get started. Elavon's team will contact you within 24-48 hours to discuss your payment processing needs.

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

[](#requirements)

- PHP 8.1 or higher
- An [Elavon merchant account](https://www.elavon.eu/partner-form.html?partner_id=0014H00004E0iYw) with API credentials
- PSR-7 HTTP Message implementation (or use built-in message factory)
- PSR-17 HTTP Factory implementation (or user built-in factory)

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

[](#installation)

```
composer require academe/elavon-epg-psr7
```

Quick Start
-----------

[](#quick-start)

Here's a complete example creating a credit card payment using Guzzle:

```
