{"id":21748648,"url":"https://github.com/adnane-ka/omnipay-tap","last_synced_at":"2026-02-27T15:39:31.569Z","repository":{"id":252824351,"uuid":"841386186","full_name":"adnane-ka/omnipay-tap","owner":"adnane-ka","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-12T20:42:58.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-15T16:53:42.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/adnane-ka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-12T09:56:27.000Z","updated_at":"2024-08-12T20:43:01.000Z","dependencies_parsed_at":"2024-08-12T20:23:54.214Z","dependency_job_id":null,"html_url":"https://github.com/adnane-ka/omnipay-tap","commit_stats":null,"previous_names":["adnane-ka/omnipay-tap"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-tap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-tap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-tap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-tap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adnane-ka","download_url":"https://codeload.github.com/adnane-ka/omnipay-tap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226462239,"owners_count":17629049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-26T08:14:34.605Z","updated_at":"2026-02-27T15:39:26.529Z","avatar_url":"https://github.com/adnane-ka.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Omnipay: Tap\n\n**Tap payments gateway for Omnipay payment processing library**\n\n[![Build Status](https://img.shields.io/travis/com/adnane-ka/omnipay-tap.svg?style=flat-square)](https://travis-ci.com/adnane-ka/omnipay-tap)\n[![Latest Stable Version](https://img.shields.io/packagist/v/adnane-ka/omnipay-tap.svg?style=flat-square)](https://packagist.org/packages/adnane-ka/omnipay-tap)\n[![Total Downloads](https://img.shields.io/packagist/dt/adnane-ka/omnipay-tap.svg?style=flat-square)](https://packagist.org/packages/adnane-ka/omnipay-tap)\n\n[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment\nprocessing library for PHP 5.3+. This package implements Tap support for Omnipay.\n\n## Installation\n```shell\ncomposer require adnane-ka/omnipay-tap\n```\n## Basic Usage\nThe following gateways are provided by this package:\n\n* Tap\n\nThis package ineteracts with [Tap's Charges API](https://developers.tap.company/reference/charges). \n\nFor general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)\nrepository.\n\n\n## Example usage\n### Configuration\n\n```php\nuse Omnipay\\Omnipay;\n\n$gateway = Omnipay::create('Tap');\n\n/**\n * You can use the testing API key provided by Tap.\n * No worries on switching test \u0026 live mode since Tap provides \n * Keys for both, and can distinguish between them\n * \n * @see https://developers.tap.company/reference/api-endpoint\n * @see https://developers.tap.company/reference/testing-keys\n*/\n$gateway-\u003esetApiToken('sk_test_XKokBfNWv6FIYuTMg5sLPjhJ'); \n```\n### Creating a charge\n```php\n$response = $gateway-\u003epurchase([\n    'amount' =\u003e 1, // Required\n    'currency' =\u003e 'KWD',  // Optional, Default is USD\n    'customerName' =\u003e 'Test', // Optional, Default is Test\n    'customerEmail' =\u003e 'test@test.com', // Optional, Default is Test\n    'sourceId' =\u003e 'src_all',  //  Optional, Default is src_all @see https://developers.tap.company/reference/charges#the-payment-source-object\n    'threeDSecure' =\u003e false, // Optional, Default is true\n    'returnUrl' =\u003e 'http://your_website.com/redirect_url' // Required\n])\n-\u003esend();\n\nif ($response-\u003eisRedirect()) {\n    // Data is valid and you're ready to be redirected offsite\n    $response-\u003eredirect(); \n} else {\n    // An error occured\n    // @see https://developers.tap.company/reference/charge-response-codes\n    echo $response-\u003egetMessage();\n}\n```\n### Retrieving a charge\n```php\n$response = $gateway-\u003ecompletePurchase([\n    // tap_id is usually injected as a URL param when returned from gateway\n    'tap_id' =\u003e 'TYPE_IN_THE_TARGET_CHARGE_ID'\n])-\u003esend();\n\nif($response-\u003eisSuccessful()){\n    // Payment was successful and charge was captured\n    // $response-\u003egetData()\n    // $response-\u003egetTransactionReference() // payment reference\n}else{\n    // Charge was not captured and payment failed\n    // $response-\u003egetData()\n}\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/adnane-ka/omnipay-tap/issues),\nor better yet, fork the library and submit a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnane-ka%2Fomnipay-tap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadnane-ka%2Fomnipay-tap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnane-ka%2Fomnipay-tap/lists"}