PHPackages                             grisgruis/omnipay-ticketasa - 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. grisgruis/omnipay-ticketasa

ActiveLibrary[Payment Processing](/categories/payments)

grisgruis/omnipay-ticketasa
===========================

Ticketasa support for omnipay payment processing library

016PHP

Since Nov 11Pushed 3y agoCompare

[ Source](https://github.com/Grisgruis/ticketasa)[ Packagist](https://packagist.org/packages/grisgruis/omnipay-ticketasa)[ RSS](/packages/grisgruis-omnipay-ticketasa/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay - TicketAsa 1.0.0
=========================

[](#omnipay---ticketasa-100)

**TicketAsaGT 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 TicketAsaGT 2.4 support for Omnipay.

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

[](#installation)

Via Composer

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

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

[](#gateway-operation-defaults)

This gateway driver operates in 3DS mode by default and requires a notify URL to be provided via the '**setNotifyURL**' method.

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)

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

```
use Omnipay\Omnipay;
try {
    $gateway = Omnipay::create('Ticketasa');
    $gateway
        ->setTestMode(true)  // false to use productions links  , true to use test links
        ->setPWTId('xxxxxxxx')
        ->setPWTPwd('xxxxxxxx')
        // **Required and must be https://
        ->setNotifyUrl('https://localhost/webhook.php')
        // **Required and must be https://
        ->setReturnUrl('https://localhost/webhook.php')
        ->setDiscount(false);

    $cardData = [
         'firstName' => 'Gabriel', //optional
         'LastName' => 'Arzu', // optional
    ];

    $transactionData = [
        'card' => $cardData,
        'amount' => '1.00',   // Mandatory
        'TransactionId' => '2100001',  // mandatory, must be unique in each transaction
    ];

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

    if($response->isSuccessful())
         $response->getHostedPageURL();  // return the link with encrypted params

         $response->redirectToHostedPage(); //Redirect automatically to payment form

} catch (Exception $e){
    $e->getMessage();
}
```

***webhook response***Response transaction from TicketasaGT.

```
{
  "TransactionType": 1,
  "Approved": true,  // must be true
  "AuthorizationCode": "123456", // Authorization number from bank
  "TransactionIdentifier": "3dbff695-d7e0-4e90-8187-1e93cf13bb40", // Order Number
  "TotalAmount": 1,  //Mount
  "CurrencyCode": "320",
  "RRN": "227603509881",
  "CardBrand": "Visa",
  "IsoResponseCode": "00",
  "ResponseMessage": "Transaction is approved", // Message Approvement.
  "OrderIdentifier": "TICKET-ASA-3dbff695-d7e0-4e90-8187-1e93cf13bb40" // Order Identifier PREFIX +  Order Number
}
```

### Fetch status Transactions (Direct Integration)

[](#fetch-status-transactions-direct-integration)

'**fetchTransaction**' required. TransactionId

```
use Omnipay\Omnipay;
try {
    $gateway = Omnipay::create('Ticketasa');
    $gateway
        ->setTestMode(true)  // false to use productions links  , true to use test links
        ->setPWTId('xxxxxxxx')
        ->setPWTPwd('xxxxxxxx');

    $transactionData = [
        'TransactionId' => '2100001',  // mandatory, must be unique in each transaction
    ];

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

    $response->getData();  //return the response object
    $response->isSuccessful() //  if IsoResponseCode is 00 return true
    $response->getTransactionId() // return transactionId from object response
    $response->getTotalAmount() // return Amount from object response
    $response->getAuthorizationCode() // return authorizationCode from object response
    $response->getLastCaptureDateTime() // return date capture payment from object response
    $response->getTransactionDateTime() // return date transaction payment from object response

} catch (Exception $e){
    $e->getMessage();
}
```

***PowerTranz response***Response fetch transaction from powerTranz.

```
{
    "AuthorizationCode": "123456",
    "CurrencyCode": "320",
    "IsoResponseCode": "00", // successfull is 00
    "OrderSummary": {
        "CaptureCount": 1,
        "CreditCount": 0,
        "CurrencyCode": "320",
        "LastCaptureDateTime": "2022-10-31T21:38:49.663",
        "OrderIdentifier": "TICKET-ASA-4e895e54-3f5a-428c-ac30-1c0e7bd8ab86",
        "OriginalTrxnDateTime": "2022-10-31T21:38:49.663",
        "OriginalTrxnIdentifier": "4e895e54-3f5a-428c-ac30-1c0e7bd8ab86",
        "SettledAmount": 1.00,
        "TotalCaptureAmount": 1.00,
        "TotalCreditAmount": 0.00
    },
    "OtherAmount": 0.00,
    "TaxAmount": 0.00,
    "TipAmount": 0.00,
    "TotalAmount": 1.00,
    "TransactionDateTime": "2022-10-31T21:38:20.193",
    "TransactionIdentifier": "4e895e54-3f5a-428c-ac30-1c0e7bd8ab86",
    "TransactionType": 2
}
```

### Refund Payment (Direct Integration)

[](#refund-payment-direct-integration)

'**fetchTransaction**' required. TransactionId

```
use Omnipay\Omnipay;
try {
    $gateway = Omnipay::create('Ticketasa');
    $gateway
        ->setTestMode(true)  // false to use productions links  , true to use test links
        ->setPWTId('xxxxxxxx')
        ->setPWTPwd('xxxxxxxx');

    $transactionData = [
         'amount' => '1.00',   // Mandatory
        'TransactionId' => '2100001',  // mandatory, must be unique in each transaction
    ];

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

    $response->getData();  //return the response object
    $response->isSuccessful() //  if Approved response
    $response->getExternalIdentifier() // return transactionId from object response
    $response->getTotalAmount() // return Amount from object response
    $response->getOriginalTrxnIdentifier() // return transactionId from object response
    $response->getErrorCode() // return the error code
    $response->getErrorMessage() // return  the error message
    $response->getIsoResponseCode() // return the iso Code
    $response->getResponseMessage() // return  the error general message

} catch (Exception $e){
    $e->getMessage();
}
```

***PowerTranz response***Response refund Transaction from powerTranz.

```
{
    "OriginalTrxnIdentifier": "a",
    "TransactionType": 5,
    "Approved": false,
    "TransactionIdentifier": "27909349-a43f-411a-9cc1-1ec6e3ab4d89",
    "TotalAmount": 1.00,
    "CurrencyCode": "220",
    "RRN": "230714276757",
    "IsoResponseCode": "96",
    "ResponseMessage": "System error",
    "ExternalIdentifier": "-81aa-42c1-960e-6b535c5f4ae3",
    "Errors": [
        {
            "Code": "451",
            "Message": "General processor error"
        }
    ]
}
```

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

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

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://avatars.githubusercontent.com/u/1905778?v=4)[Chris](/maintainers/Grisgruis)[@Grisgruis](https://github.com/Grisgruis)

### Embed Badge

![Health badge](/badges/grisgruis-omnipay-ticketasa/health.svg)

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

###  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)
