PHPackages                             vincsis/omnipay-powertranz - 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. [Payment Processing](/categories/payments)
4. /
5. vincsis/omnipay-powertranz

ActiveLibrary[Payment Processing](/categories/payments)

vincsis/omnipay-powertranz
==========================

PowerTranz Support for Omnipay Payment processing library

242[1 issues](https://github.com/edgarvicentesuc/PowerTranz/issues)PHP

Since Sep 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/edgarvicentesuc/PowerTranz)[ Packagist](https://packagist.org/packages/vincsis/omnipay-powertranz)[ RSS](/packages/vincsis-omnipay-powertranz/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay - PowerTranz 2.4
========================

[](#omnipay---powertranz-24)

**PowerTranz 2.4 Commerce gateway for the Omnipay PHP payment processing library**

[![Packagist License](https://camo.githubusercontent.com/5383b3a6472f6794ea9056476ecae189f0f7bf8cd9c56b804e870bf091b96213/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636c6f7564636f6773696f2f6f6d6e697061792d666972737461746c616e746963636f6d6d657263652d67617465776179)](https://camo.githubusercontent.com/5383b3a6472f6794ea9056476ecae189f0f7bf8cd9c56b804e870bf091b96213/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636c6f7564636f6773696f2f6f6d6e697061792d666972737461746c616e746963636f6d6d657263652d67617465776179) [![Packagist Version](https://camo.githubusercontent.com/80ab969139ea1d6b2c786a025e4fda3e114f8da75ec7144985006e96a161897b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f7564636f6773696f2f6f6d6e697061792d666972737461746c616e746963636f6d6d657263652d67617465776179)](https://camo.githubusercontent.com/80ab969139ea1d6b2c786a025e4fda3e114f8da75ec7144985006e96a161897b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f7564636f6773696f2f6f6d6e697061792d666972737461746c616e746963636f6d6d657263652d67617465776179) [![Packagist PHP Version Support (specify version)](https://camo.githubusercontent.com/3622b4dcc723a8d1d48e043514dee7d6e5a165358e2b935b17d607c2dfb26f45/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f636c6f7564636f6773696f2f6f6d6e697061792d666972737461746c616e746963636f6d6d657263652d676174657761792f6465762d6d6173746572)](https://camo.githubusercontent.com/3622b4dcc723a8d1d48e043514dee7d6e5a165358e2b935b17d607c2dfb26f45/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f636c6f7564636f6773696f2f6f6d6e697061792d666972737461746c616e746963636f6d6d657263652d676174657761792f6465762d6d6173746572) [![GitHub issues](https://camo.githubusercontent.com/4a07b6df34d66e80a187f576dcca07a1b4db5d3496434963c0b526303a149f9c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f636c6f7564636f6773696f2f6f6d6e697061792d666972737461746c616e746963636f6d6d657263652d67617465776179)](https://camo.githubusercontent.com/4a07b6df34d66e80a187f576dcca07a1b4db5d3496434963c0b526303a149f9c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f636c6f7564636f6773696f2f6f6d6e697061792d666972737461746c616e746963636f6d6d657263652d67617465776179) [![GitHub last commit](https://camo.githubusercontent.com/898672742ac7b14229575b1db71b94531bc03a1903345b5cbd070fdb0730cf97/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f636c6f7564636f6773696f2f6f6d6e697061792d666972737461746c616e746963636f6d6d657263652d67617465776179)](https://camo.githubusercontent.com/898672742ac7b14229575b1db71b94531bc03a1903345b5cbd070fdb0730cf97/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f636c6f7564636f6773696f2f6f6d6e697061792d666972737461746c616e746963636f6d6d657263652d67617465776179)

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements PowerTranz 2.4 support for Omnipay.

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

[](#installation)

Via Composer

```
$ composer require vincsis/omnipay-powertranz
```

Gateway Operation Defaults
--------------------------

[](#gateway-operation-defaults)

This gateway driver operates in 3DS mode by default and requires a callback URL to be provided via the '**setMerchantResponseURL**' method. The return URL must then implement the '**acceptNotification**' method to capture the transaction response from ,**PowerTranz**.****

****Usage
-----

[](#usage)**** For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository.

### 3DS Transactions (Direct Integration)

[](#3ds-transactions-direct-integration)

'**MerchantResponseURL**' required. URL must be **https://**

```
use Omnipay\Omnipay;
try {
    $gateway = Omnipay::create('PowerTranz_PWT');
    $gateway
        ->setTestMode(true)  // false to use productions links  , true to use test links
        ->setPWTId('xxxxxxxx')
        ->setPWTPwd('xxxxxxxx')
        // **Required and must be https://
        ->setMerchantResponseURL('https://localhost/accept-notification.php')
        // *** Autogen an order number  UUID V4
        ->setOrderNumberAutoGen(true);

    $cardData = [
        'number' => '4111111111111111', //Mandatory
        'expiryMonth' => '01', //Mandatory
        'expiryYear' => '2025',  ///Mandatory
        'cvv' => '123',   //Mandatory
        'firstName' => 'Jonh', //Mandatory
        'LastName' => 'Doe',   //Mandatory
        'email' => "johDoe@gmail.com", //optional
        'Address1' => 'main Avenue', // optional
        'Address2' => 'Main Avenue', // optional
        'City' => 'Guatemala', // Mandatory
        'State' => 'GT',   //Mandatory
        'Postcode' => '',  //Optional
        'Country' => 'GTQ',   //Mandatory GTQ
        'Phone' => '',  // Optional
    ];

    $transactionData = [
        'card' => $cardData,
        'currency' => 'GTQ',  // Mandatory  GTQ
        'amount' => '1.00',   // Mandatory
        ///'TransactionId' => '2100001',  // is mandatory is setOrderNumberAutoGen is false
        "AddressMatch" => "false"   //Optional
    ];

    $response = $gateway->authorize($transactionData)->send();

    if($response->isRedirect())
    {
	    // Redirect to continue 3DS verification
        $response->redirect();
    }
    else
    {
	    // 3DS transaction failed setup, show error reason.
        echo $response->getMessage();
    }
} catch (Exception $e){
    $e->getMessage();
}
```

***accept-notification.php***Accept transaction response from PowerTranz.

```
$gateway  = Omnipay::create('PowerTranz_PWT');
$gateway
    // Password is required to perform response signature verification
    ->setPWTId('xxxxxxxx')
    ->setPWTPwd('xxxxxxxx')

// Signature verification is performed implicitly once the gateway was initialized with the password.
$response = $gateway->acceptNotification($_POST)->send();

if($response->isSuccessful())
{
    // authorize was succussful, continue purchase the payment
     $paymentResponse = $gateway->purchase($response->getSpiToken())->send();

    //return a JSON with response    //Aproveed = true means payment successfull
    print_r($paymentResponse->getData());

}
else
{
    // Transaction failed
    echo $response->getMessage();
}
```

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/edgarvicentesuc/PowerTranz.git/issues), or better yet, fork the library and submit a pull request.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1feb60607c27fec8048ab73604e1fc6a930da2272d5d88e30398d5e71c6ba0e5?d=identicon)[vicentex360](/maintainers/vicentex360)

### Embed Badge

![Health badge](/badges/vincsis-omnipay-powertranz/health.svg)

```
[![Health](https://phpackages.com/badges/vincsis-omnipay-powertranz/health.svg)](https://phpackages.com/packages/vincsis-omnipay-powertranz)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
