{"id":21748651,"url":"https://github.com/adnane-ka/omnipay-sepay","last_synced_at":"2026-02-20T17:02:18.488Z","repository":{"id":255633030,"uuid":"852948396","full_name":"adnane-ka/omnipay-sepay","owner":"adnane-ka","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-06T11:42:34.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T03:39:02.339Z","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","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-09-05T17:54:34.000Z","updated_at":"2024-09-06T11:42:18.000Z","dependencies_parsed_at":"2024-09-06T12:17:49.199Z","dependency_job_id":null,"html_url":"https://github.com/adnane-ka/omnipay-sepay","commit_stats":null,"previous_names":["adnane-ka/omnipay-sepay"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/adnane-ka/omnipay-sepay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-sepay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-sepay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-sepay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-sepay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adnane-ka","download_url":"https://codeload.github.com/adnane-ka/omnipay-sepay/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-sepay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29658167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-26T08:14:35.415Z","updated_at":"2026-02-20T17:02:18.461Z","avatar_url":"https://github.com/adnane-ka.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Omnipay: Sepay\n\n**Sepay payments gateway for Omnipay payment processing library**\n\n[![Build Status](https://img.shields.io/travis/com/adnane-ka/omnipay-sepay.svg?style=flat-square)](https://travis-ci.com/adnane-ka/omnipay-sepay)\n[![Latest Stable Version](https://img.shields.io/packagist/v/adnane-ka/omnipay-sepay.svg?style=flat-square)](https://packagist.org/packages/adnane-ka/omnipay-sepay)\n[![Total Downloads](https://img.shields.io/packagist/dt/adnane-ka/omnipay-sepay.svg?style=flat-square)](https://packagist.org/packages/adnane-ka/omnipay-sepay)\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-sepay\n```\n## Basic Usage\nThe following gateways are provided by this package:\n\n* Sepay\n\nThis package ineteracts with [Sepay's API](https://sepay.vn/lap-trinh-cong-thanh-toan.html). \n\nFor general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)\nrepository.\n\n## Flow\n\n1. Configure gateway.\n2. Create a QR image for the operation.\n3. Display the QR image for the end-user in a on-site checkout page.\n4. Once the operation is accomplished, a webhook should be fired.\n5. Receive data from webhook.\n6. Complete purchase by comparing / proccessing the received data.\n\n## Example usage\n### Configuration\n\n```php\nuse Omnipay\\Omnipay;\n\n$gateway = Omnipay::create('Sepay');\n$gateway-\u003esetApiKey('YOUR_API_KEY');\n$gateway-\u003esetBankAccountNumber('YOUR_BANK_ACCOUNT_NUMBER');\n$gateway-\u003esetBankName('YOUR_BANK_NAME');\n```\n\n### Creating a Purchase\n```php\n$response = $gateway-\u003epurchase([\n    'amount' =\u003e 100000, // the amount in VND\n    'checkoutUrl' =\u003e 'http://localhost:8000/checkout.php', // the page where the QR image is displayed\n    'returnUrl' =\u003e 'http://localhost:8000/complete.php', // the URL to return to after the operation is fully proccessed\n    'transactionId' =\u003e uniqid() // A unique identifier for the operation\n])-\u003esend();\n\nif ($response-\u003eisRedirect()) {\n    // The QR code is generated successfully and you're ready to be redirected to checkout\n    $response-\u003eredirect(); \n} else {\n    // An error occured\n    echo $response-\u003egetMessage();\n}\n```\n\n### Checkout\n```html\n\u003c!-- The return URL is going be injected as encoded URL `completeUrl` --\u003e\n\u003cform action=\"\u003c?php echo urldecode($_GET['completeUrl']); ?\u003e\" method=\"post\" style=\"display: flex; flex-direction: column; width:30%;\"\u003e\n    \u003c!-- Display the QR image for the end-user --\u003e\n    \u003cimg src='\u003c?php echo urldecode($_GET['qrSrc']); ?\u003e'\u003e\n\n    \u003c!-- The transaction ID is received as a query param --\u003e\n    \u003cinput type=\"hidden\" name=\"transactionId\" value=\"\u003c?php echo $_GET['transactionId']; ?\u003e\"\u003e\n    \u003cbutton type=\"submit\"\u003eI've Paid, Complete My Order.\u003c/button\u003e\n\u003c/form\u003e\n```\n\n### Completing Purchase\nWhen users submit the checkout form after they pay using the displayed QR image, they'll be redirected to `returnUrl` where you'll be proccessing the payment:\n```php\n$response = $gateway-\u003ecompletePurchase([\n    'transactionId' =\u003e 'FGJAKANMCHK', // This should be retrieved from request redirect\n    'amount' =\u003e 100000, // Locate this from your system \n    'webhookResponse' =\u003e /*This should be located from the webhook*/ \n    json_decode('{\n        \"id\": 92704,                              \n        \"gateway\":\"Vietcombank\",                  \n        \"transactionDate\":\"2024-07-25 14:02:37\",  \n        \"accountNumber\":\"0010000000355\",             \n        \"code\":null,                              \n        \"content\":\"chuyen tien mua iphone\",        \n        \"transferType\":\"in\",                      \n        \"transferAmount\":100000,                 \n        \"accumulated\":19077000,                    \n        \"subAccount\":null,                         \n        \"referenceCode\":\"MBVCB.3278907687\",       \n        \"description\":\"FGJAKANMCHK\"\n    }', true)\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-sepay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadnane-ka%2Fomnipay-sepay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnane-ka%2Fomnipay-sepay/lists"}