Download the PHP package academe/omnipay-elavon without Composer

On this page you can find all versions of the php package academe/omnipay-elavon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package omnipay-elavon

Omnipay: Elavon EPG

Elavon Payment Gateway (EPG) driver for the Omnipay PHP payment processing library

Latest Stable Version Total Downloads License

Omnipay is a framework-agnostic, multi-gateway payment processing library for PHP. This package implements Elavon Payment Gateway (EPG) support for Omnipay.

This driver uses Elavon's Hosted Payment Page (HPP) for secure card entry and 3DS authentication. All card details are entered on Elavon's hosted form, keeping your application out of PCI scope.

This package uses academe/elavon-epg-psr7 as the underlying API message driver and for DTOs.

Installation

Requirements

Basic Usage

Gateway Setup

Hosted Payment Page Flow

The HPP gateway uses a redirect flow where the customer enters their card details on Elavon's secure hosted page:

  1. Create an order and payment session
  2. Redirect customer to Elavon's hosted payment page
  3. Customer enters card details and completes 3DS authentication
  4. Customer is redirected back to your site
  5. Verify the transaction result

Authorize (Two-step flow)

An authorization reserves funds on the cardholder's account but does not capture them. Use capture() to complete the transaction later.

Purchase (Single-step flow)

A purchase authorizes and captures payment in one step.

Capture

Capture a previously authorized transaction.

Refund

Refund a captured/settled transaction.

Void

Void an authorized transaction before capture.

Fetch Transaction

Retrieve details of a transaction.

Gateway Parameters

Parameter Description
merchantAlias Your Elavon merchant alias
apiKey Your API key for authentication
region API region: 'eu' or 'na'
testMode Set to true for sandbox environment

Request Parameters

Common Parameters

Parameter Description
amount Transaction amount (e.g., '10.00')
currency Three-letter ISO currency code (e.g., 'USD')
transactionId Your unique order/transaction ID
transactionReference Gateway's transaction reference (href URL)
returnUrl URL to redirect after successful payment
cancelUrl URL to redirect if payment is cancelled

Response Methods

All responses provide these common methods:

Demo Scripts

The demo/ directory contains working examples demonstrating the HPP payment flow:

Running the Demos

Start the web server:

Then open: http://localhost:8000/

Configuration

Copy demo/config.php.example to demo/config.php and add your credentials:

Testing

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag.

If you believe you have found a bug, please report it using the GitHub issue tracker.

License

This package is released under the MIT License. See the LICENSE file for details.


All versions of omnipay-elavon with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
academe/elavon-epg-psr7 Version ^2.0.1
http-interop/http-factory-guzzle Version ^1.2
omnipay/common Version ^3.0
symfony/http-client Version ^7.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package academe/omnipay-elavon contains the following files

Loading the files please wait ...