PHPackages                             peopleapps-dev/ticketasa-visa-omnipay-package - 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. peopleapps-dev/ticketasa-visa-omnipay-package

ActiveLibrary

peopleapps-dev/ticketasa-visa-omnipay-package
=============================================

Ticketasa support for omnipay payment processing library

V1.0.0(3y ago)02MITPHP ^7.2

Since Apr 13Pushed 2y agoCompare

[ Source](https://github.com/vicente-suc/ticketasa-visa)[ Packagist](https://packagist.org/packages/peopleapps-dev/ticketasa-visa-omnipay-package)[ RSS](/packages/peopleapps-dev-ticketasa-visa-omnipay-package/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

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

[](#omnipay---ticketasa-visa-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 peopleapps-dev/ticketasa-visa-omnipay-package
```

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('Ticketasavisa');
    $gateway
        ->setTestMode(true)  // false to use productions links  , true to use test links
        ->setMerchantId('xxxxxxxx')
        ->setPublicKey('xxxxxxxx')
        ->setPrivateKey('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.

```
{
    "clientReferenceInformation": {
        "code": "VlISZ4VI2kKFcz07JELCTw2"
    },
    "id": "6638930703846085404953",
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "1.00",
            "currency": "GTQ"
        }
    },
    "reconciliationId": "6638927696246293304951",
    "status": "PENDING",
    "submitTimeUtc": "2022-09-23T00:31:10Z"
}
```

### Fetch status Transactions (Direct Integration)

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

'**fetchTransaction**' required. TransactionId

```
use Omnipay\Omnipay;
try {
    $gateway = Omnipay::create('Ticketasavisa');
    $gateway
        ->setTestMode(true)  // false to use productions links  , true to use test links
        ->setMerchantId('xxxxxxxx')
        ->setPublicKey('xxxxxxxx')
        ->setPrivateKey('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();
}
```

***Visa Cybersource response***Response fetch transaction from powerTranz.

```
{
   "success":true,
   "message":"OK",
   "statusCode":200,
   "data":{
      "id":"6814001314506170404951",
      "rootId":"6814001314506170404951",
      "reconciliationId":"6814001314506170404951",
      "merchantId":"visanetgt_ticketasa",
      "submitTimeUTC":"2023-04-13T15:35:31Z",
      "applicationInformation":{
         "status":"PENDING",
         "reasonCode":"100",
         "applications":[
            {
               "name":"ics_auth",
               "reasonCode":"100",
               "rCode":"1",
               "rFlag":"SOK",
               "reconciliationId":"6814001314506170404951",
               "rMessage":"Request was processed successfully.",
               "returnCode":1010000
            }
         ]
      },
      "orderInformation":{
         "amountDetails":{
            "totalAmount":"1",
            "currency":"GTQ",
            "taxAmount":"0",
            "authorizedAmount":"1"
         }
      },
      "paymentInformation":{
         "paymentType":{
            "name":"vdcguatemala",
            "type":"credit card",
            "method":"VI"
         },
         "card":{
            "suffix":"1005",
            "prefix":"445653",
            "expirationMonth":"12",
            "expirationYear":"2031",
            "type":"001"
         }
      },
      "processingInformation":{
         "paymentSolution":"Visa",
         "commerceIndicator":"5",
         "commerceIndicatorLabel":"vbv"
      },
      "processorInformation":{
         "processor":{
            "name":"vdcguatemala"
         },
         "networkTransactionId":"016153570198200",
         "retrievalReferenceNumber":"310315180334",
         "approvalCode":"831000",
         "responseCode":"00"
      },
      "riskInformation":{
         "profile":{
            "name":"Perfil de Pruebas CVV2",
            "decision":"ACCEPT"
         },
         "score":{
            "factorCodes":[
               "V",
               "H",
               "F"
            ],
            "result":91
         }
      }
   }
}
```

### Refund Payment (Direct Integration)

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

'**fetchTransaction**' required. TransactionId, OrderIdentifier and amount

```
use Omnipay\Omnipay;
try {
    $gateway = Omnipay::create('Ticketasavisa');
    $gateway
        ->setTestMode(true)  // false to use productions links  , true to use test links
        ->setMerchantId('xxxxxxxx')
        ->setPublicKey('xxxxxxxx')
        ->setPrivateKey('xxxxxxxx');

    $transactionData = [
         'amount' => '1.00',   // Mandatory
         'TransactionId' => '6694214339196447904951',  // mandatory, must be unique in each transaction
        'OrderIdentifier' => '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->getIdentifier(); // return transactionId from object response
    $response->getTotalAmount(); // return Amount from object response
    $response->getOrderIdentifier(); // return transactionId from object response
    $response->getReconciliationIdentifier(); // return transactionId from object response
    $response->getStatus(); // return the iso Code
    $response->getResponseMessage(); // return  the error general message

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

***Visa Cybersource response***Response refund Transaction from powerTranz.

```
{
   "success":true,
   "message":"OK",
   "statusCode":201,
   "data":{
      "id":"6814069291496607104953",
      "submitTimeUtc":"2023-04-13T17:28:49Z",
      "status":"PENDING",
      "reconciliationId":"6814004474776245104951",
      "clientReferenceInformation":{
         "code":"68ef8f5d-f3d9-4ed2-98a6-a12f57dfa27f"
      },
      "refundAmountDetails":{
         "refundAmount":"1.00",
         "currency":"GTQ"
      }
   }
}
```

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/danbart/ticketasavisa.git/issues), or better yet, fork the library and submit a pull request.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1126d ago

### Community

Maintainers

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

---

Top Contributors

[![lamperem](https://avatars.githubusercontent.com/u/30357369?v=4)](https://github.com/lamperem "lamperem (3 commits)")

### Embed Badge

![Health badge](/badges/peopleapps-dev-ticketasa-visa-omnipay-package/health.svg)

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

###  Alternatives

[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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