This package is abandoned and no longer maintained. The author suggests using the payyo/omnipay-payyo package instead.

TrekkPay Gateway for the Omnipay payment processing library

2.0.1 2017-10-31 11:36 UTC

This package is auto-updated.

Last update: 2019-04-09 14:10:23 UTC


This repository is deprecated in favor of as well as payyo/omnipay-payyo is supposed to be used instead of trekkpay/omnipay-trekkpay

Omnipay: TrekkPay

TrekkPay Gateway for the Omnipay PHP payment processing library.

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+.

The TrekkPay Omnipay library requires PHP 7.0+.


Omnipay can be installed using Composer. Installation instructions.

Run the following command to install omnipay and the TrekkPay gateway:

composer require trekkpay/omnipay-trekkpay

Basic Usage

The following parameters are required:

  • apiKey Your TrekkPay API/public key
  • secretKey Your TrekkPay secret key
  • merchantId Your TrekkPay merchant ID
$gateway = Omnipay::create(\TrekkPay\Omnipay\HostedPaymentPageGateway::class);

// Send purchase request
$response = $gateway->purchase([
    'transactionId' => '123456',
    'description' => '1x Book',
    'amount' => '10.00',
    'currency' => 'USD',
    'returnUrl' => '',
    'cancelUrl' => '',

// This is a redirect gateway, so redirect right away