{"id":42127704,"url":"https://github.com/sudiptpa/omnipay-nabtransact","last_synced_at":"2026-01-26T15:12:37.421Z","repository":{"id":48000882,"uuid":"74269379","full_name":"sudiptpa/omnipay-nabtransact","owner":"sudiptpa","description":"Integrate NAB Transact payment gateway using the php library built on top of Omnipay PHP payment processing library.","archived":false,"fork":false,"pushed_at":"2023-01-27T04:19:08.000Z","size":229,"stargazers_count":10,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T20:57:59.472Z","etag":null,"topics":["nab","omnipay","omnipay-gateway","payment","payment-gateway","payment-gateway-intigration","payment-integration","payment-platforms","payments","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sudiptpa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-20T11:25:06.000Z","updated_at":"2025-06-09T03:34:31.000Z","dependencies_parsed_at":"2023-02-15T05:15:49.034Z","dependency_job_id":null,"html_url":"https://github.com/sudiptpa/omnipay-nabtransact","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/sudiptpa/omnipay-nabtransact","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudiptpa%2Fomnipay-nabtransact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudiptpa%2Fomnipay-nabtransact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudiptpa%2Fomnipay-nabtransact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudiptpa%2Fomnipay-nabtransact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudiptpa","download_url":"https://codeload.github.com/sudiptpa/omnipay-nabtransact/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudiptpa%2Fomnipay-nabtransact/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28781308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nab","omnipay","omnipay-gateway","payment","payment-gateway","payment-gateway-intigration","payment-integration","payment-platforms","payments","php"],"created_at":"2026-01-26T15:12:37.339Z","updated_at":"2026-01-26T15:12:37.403Z","avatar_url":"https://github.com/sudiptpa.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Omnipay: NAB Transact\n\n**NAB Transact driver for the Omnipay PHP payment processing library**\n\n[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment\nprocessing library for PHP. This package implements NAB Transact support for Omnipay.\n\n[![StyleCI](https://styleci.io/repos/74269379/shield?style=flat\u0026branch=master)](https://styleci.io/repos/74269379)\n[![Build Status](https://travis-ci.org/sudiptpa/omnipay-nabtransact.svg?branch=master\u0026style=flat-square)](https://travis-ci.org/sudiptpa/omnipay-nabtransact)\n[![Latest Stable Version](https://poser.pugx.org/sudiptpa/omnipay-nabtransact/v/stable?style=flat-square)](https://packagist.org/packages/sudiptpa/omnipay-nabtransact)\n[![Total Downloads](https://poser.pugx.org/sudiptpa/omnipay-nabtransact/downloads?style=flat-square)](https://packagist.org/packages/sudiptpa/omnipay-nabtransact)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/sudiptpa/omnipay-nabtransact/master/LICENSE)\n\n## Installation\n\nOmnipay is installed via [Composer](http://getcomposer.org/). To install, simply require `league/omnipay` and `sudiptpa/omnipay-nabtransact` with Composer:\n\n```\ncomposer require league/omnipay sudiptpa/omnipay-nabtransact\n```\n\n## Basic Usage\n\nThe following gateways are provided by this package:\n\n* NABTransact_DirectPost (NAB Transact Direct Post v2)\n* NABTransact_SecureXML (NAB Transact SecurePay XML)\n* NABTransact_UnionPay (UnionPay via NAB Transact)\n\n### NAB Transact SecureXML API\n\n```php\n    use Omnipay\\Omnipay;\n    use Omnipay\\Common\\CreditCard;\n\n    $gateway = Omnipay::create('NABTransact_SecureXML');\n    $gateway-\u003esetMerchantId('XYZ0010');\n    $gateway-\u003esetTransactionPassword('abcd1234');\n    $gateway-\u003esetTestMode(true);\n\n    $card = new CreditCard([\n            'firstName' =\u003e 'Sujip',\n            'lastName' =\u003e 'Thapa',\n            'number'      =\u003e '4444333322221111',\n            'expiryMonth' =\u003e '06',\n            'expiryYear'  =\u003e '2030',\n            'cvv'         =\u003e '123',\n        ]\n    );\n\n    $transaction = $gateway-\u003epurchase([\n            'amount'        =\u003e '10.00',\n            'currency'      =\u003e 'AUD',\n            'transactionId' =\u003e 'XYZ100',\n            'card'          =\u003e $card,\n        ]\n    );\n\n    $response = $transaction-\u003esend();\n\n    if ($response-\u003eisSuccessful()) {\n        echo sprintf('Transaction %s was successful!', $response-\u003egetTransactionReference());\n    } else {\n        echo sprintf('Transaction %s failed: %s', $response-\u003egetTransactionReference(), $response-\u003egetMessage());\n    }\n\n```\n\n\n### NAB Transact SecureXML API with Risk Management\n\n```php\n    use Omnipay\\Omnipay;\n    use Omnipay\\Common\\CreditCard;\n\n    $gateway = Omnipay::create('NABTransact_SecureXML');\n    $gateway-\u003esetMerchantId('XYZ0010');\n    $gateway-\u003esetTransactionPassword('abcd1234');\n    $gateway-\u003esetTestMode(true);\n    $gateway-\u003esetRiskManagement(true);\n\n    $card = new CreditCard([\n            'firstName' =\u003e 'Sujip',\n            'lastName' =\u003e 'Thapa',\n            'number'      =\u003e '4444333322221111',\n            'expiryMonth' =\u003e '06',\n            'expiryYear'  =\u003e '2030',\n            'cvv'         =\u003e '123',\n        ]\n    );\n\n    $transaction = $gateway-\u003epurchase([\n            'amount'        =\u003e '10.00',\n            'currency'      =\u003e 'AUD',\n            'transactionId' =\u003e 'XYZ100',\n            'card'          =\u003e $card,\n            'ip'            =\u003e '1.1.1.1',\n        ]\n    );\n\n    $response = $transaction-\u003esend();\n\n    if ($response-\u003eisSuccessful()) {\n        echo sprintf('Transaction %s was successful!', $response-\u003egetTransactionReference());\n    } else {\n        echo sprintf('Transaction %s failed: %s', $response-\u003egetTransactionReference(), $response-\u003egetMessage());\n    }\n```\n\n### NAB Transact DirectPost v2\n\n```php\n    $gateway = Omnipay::create('NABTransact_DirectPost');\n\n    $gateway-\u003esetMerchantId('XYZ0010');\n    $gateway-\u003esetTransactionPassword('abcd1234');\n    $gateway-\u003esetTestMode(true);\n    $gateway-\u003esetHasEMV3DSEnabled(true);\n\n    $card = new CreditCard(array(\n        'firstName' =\u003e 'Sujip',\n        'lastName' =\u003e 'Thapa',\n        'number' =\u003e '4444333322221111',\n        'expiryMonth' =\u003e '10',\n        'expiryYear' =\u003e '2030',\n        'cvv' =\u003e '123',\n    ));\n\n    $response = $gateway-\u003epurchase(array(\n        'amount' =\u003e '12.00',\n        'transactionId' =\u003e 'ORDER-ZYX8',\n        'transactionReference' =\u003e '11fc42b0-bb7a-41a4-8b3c-096b3fd4d402'\n        'currency' =\u003e 'AUD',\n        'card' =\u003e $card,\n        'clientIp' =\u003e '192.168.1.1'\n    ))\n        -\u003esend();\n\n    if ($response-\u003eisRedirect()) {\n        $response-\u003eredirect();\n    }\n\n    if ($response-\u003eisSuccessful()) {\n        echo sprintf('Transaction %s was successful!', $response-\u003egetTransactionReference());\n    } else {\n        echo sprintf('Transaction %s failed: %s', $response-\u003egetTransactionReference(), $response-\u003egetMessage());\n    }\n\n```\n\n### NAB Transact DirectPost v2 UnionPay Online Payment\n\n```php\n    $gateway = Omnipay::create('NABTransact_UnionPay');\n\n    $gateway-\u003esetMerchantId('XYZ0010');\n    $gateway-\u003esetTransactionPassword('abcd1234');\n\n    $gateway-\u003esetTestMode(true);\n\n    /*\n     * The parameter transactionId must be alpha-numeric and 8 to 32 characters in length\n     */\n\n    $response = $gateway-\u003epurchase(array(\n        'amount' =\u003e '12.00',\n        'transactionId' =\u003e '1234566789205067',\n        'currency' =\u003e 'AUD',\n        'returnUrl' =\u003e 'http://example.com/payment/response',\n    ))\n        -\u003esend();\n\n    if ($response-\u003eisRedirect()) {\n        $response-\u003eredirect();\n    }\n```\n\n#### Complete Purchase\n\n```php\n    $gateway = Omnipay::create('NABTransact_UnionPay');\n\n    $gateway-\u003esetMerchantId('XYZ0010');\n    $gateway-\u003esetTransactionPassword('abcd1234');\n\n    $gateway-\u003esetTestMode(true);\n\n    $response = $gateway-\u003ecompletePurchase(array(\n        'amount' =\u003e '12.00',\n        'transactionId' =\u003e '1234566789205067',\n        'transactionReference' =\u003e '11fc42b0-bb7a-41a4-8b3c-096b3fd4d402'\n        'currency' =\u003e 'AUD',\n        'returnUrl' =\u003e 'http://example.com/payment/response',\n    ))\n        -\u003esend();\n\n    if ($response-\u003eisSuccessful()) {\n        echo sprintf('Transaction %s was successful!', $response-\u003egetTransactionReference());\n    } else {\n        echo sprintf('Transaction %s failed: %s', $response-\u003egetTransactionReference(), $response-\u003egetMessage());\n    }\n\n```\n\nFor general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)\nrepository.\n\n## Contributing\n\nContributions are **welcome** and will be fully **credited**.\n\nContributions can be made via a Pull Request on [Github](https://github.com/sudiptpa/omnipay-nabtransact).\n\n## Support\n\nIf you are having general issues with Omnipay, we suggest posting on\n[Stack Overflow](http://stackoverflow.com/). Be sure to add the\n[omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.\n\nIf you want to keep up to date with release anouncements, discuss ideas for the project,\nor ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which\nyou can subscribe to.\n\nIf you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/sudiptpa/nabtransact/issues),\nor better yet, fork the library and submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudiptpa%2Fomnipay-nabtransact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudiptpa%2Fomnipay-nabtransact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudiptpa%2Fomnipay-nabtransact/lists"}