{"id":36981856,"url":"https://github.com/swiftmade/omnipay-everypay","last_synced_at":"2026-01-13T22:51:44.937Z","repository":{"id":46330483,"uuid":"206309671","full_name":"swiftmade/omnipay-everypay","owner":"swiftmade","description":"EveryPay Gateway (v4) implementation for PHP Omnipay","archived":false,"fork":false,"pushed_at":"2023-11-29T09:21:48.000Z","size":61,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-08T12:58:20.380Z","etag":null,"topics":["gateway","omnipay","payment","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/swiftmade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"swiftmade"}},"created_at":"2019-09-04T12:04:37.000Z","updated_at":"2024-12-09T18:49:37.000Z","dependencies_parsed_at":"2023-11-29T10:42:14.793Z","dependency_job_id":null,"html_url":"https://github.com/swiftmade/omnipay-everypay","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.1428571428571429,"last_synced_commit":"c28fe7ea76887e44c62b7c6096e40e202ba87320"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/swiftmade/omnipay-everypay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftmade%2Fomnipay-everypay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftmade%2Fomnipay-everypay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftmade%2Fomnipay-everypay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftmade%2Fomnipay-everypay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swiftmade","download_url":"https://codeload.github.com/swiftmade/omnipay-everypay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftmade%2Fomnipay-everypay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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":["gateway","omnipay","payment","php"],"created_at":"2026-01-13T22:51:44.231Z","updated_at":"2026-01-13T22:51:44.930Z","avatar_url":"https://github.com/swiftmade.png","language":"PHP","funding_links":["https://github.com/sponsors/swiftmade"],"categories":[],"sub_categories":[],"readme":"[![Latest Version on Packagist](https://img.shields.io/packagist/v/swiftmade/omnipay-everypay.svg?style=flat-square)](https://packagist.org/packages/swiftmade/omnipay-everypay)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/swiftmade/omnipay-everypay.svg?style=flat-square)](https://packagist.org/packages/swiftmade/omnipay-everypay)\n\n# PHP EveryPay Client (for Omnipay)\n\nUse this package to integrate EveryPay into your PHP application using [Omnipay](http://omnipay.thephpleague.com).\n\nEveryPay is a payment gateway currently used by:\n\n- LHV\n- SEB\n- Swedbank\n\nThe package supports the following payment types:\n\n- One-off payments\n- Requesting card tokens\n- One-click / CIT (Customer Initiated Transactions) Payments\n- MIT (Merchant Initiated Transactions) Payments\n\n## Usage\n\nInstall the package using composer\n\n```bash\ncomposer require swiftmade/omnipay-everypay\n```\n\n### Initialize the gateway\n\n```php\n$gateway = Omnipay::create('EveryPay')-\u003einitialize([\n  'username' =\u003e '', // EveryPay api username\n  'secret' =\u003e '', // EveryPay api secret\n  'accountName' =\u003e '', // merchant account ID\n  'testMode' =\u003e true, // set to false for production!\n  'locale' =\u003e 'en', // et=Estonian, see integration guide for more options.\n]);\n```\n\n### One-off Purchase\n\n```php\n$purchase = $gateway\n    -\u003epurchase([\n        'amount' =\u003e $amount,\n        'paymentType' =\u003e PaymentType::ONE_OFF,\n    ])\n    -\u003esetTransactionId($orderId) // unique order id for this purchase\n    -\u003esetReturnUrl($customerUrl) // the url to redirect if the payment fails or gets cancelled\n    -\u003esetClientIp($_SERVER['REMOTE_ADDR']) // optional, helps fraud detection\n    -\u003esetEmail(''); // optional, helps fraud detection\n\n// Use this, if you want to make the payment using a previously stored card token\n// Only applicable for MIT and CIT payment types.\n$purchase-\u003esetCardReference($token);\n\n// Uncomment if you want to store the card as a token after the payment\n// (Only supported with One-off payment type)\n$purchase-\u003esetSaveCard(true);\n\n$response = $purchase-\u003esend();\n\n// IMPORTANT: Store this payment data somewhere so that we can validate / process it later\n$payment = $response-\u003egetData();\n\nreturn $response-\u003eredirect(); // this will return a self-submitting html form to EveryPay Gateway API\n```\n\n### Customer Initiated Transaction (One-click payment)\n\n```php\n$purchase = $gateway\n    -\u003epurchase([\n        'amount' =\u003e $amount,\n        'paymentType' =\u003e PaymentType::CIT,\n    ])\n    -\u003esetTransactionId($orderId) // unique order id for this purchase\n    -\u003esetCardReference('previously stored card token')\n    -\u003esetReturnUrl($customerUrl)\n    -\u003esetClientIp($_SERVER['REMOTE_ADDR']) // optional, helps fraud detection\n    -\u003esetEmail(''); // optional, helps fraud detection\n\n$response = $purchase-\u003esend();\n\n// Store the payment response data if you wish.\n$payment = $response-\u003egetData();\n\nif ($response-\u003eisSuccessful()) {\n   // Payment done!\n} else if($response-\u003eisRedirect()) {\n   // 3DS Confirmation needed!\n   // Redirect the user to 3DS Page.\n   return $response-\u003eredirect();\n} else {\n  // Something went wrong!\n  // Check $response-\u003egetMessage();\n}\n```\n\n### Complete Payment (handle Gateway redirect from EveryPay)\n\nEveryPay will redirect the user to the `returnUrl` once the payment is finalized.\nYou need to validate whether the payment went through.\n\n```php\n// Here, pass the payment array that we previously stored when creating the payment\n$response = $gateway-\u003ecompletePurchase()\n    // These values are passed back to you by EveryPay\n    -\u003esetTransactionId($_GET['order_reference'])\n    -\u003esetTransactionReference($_GET['payment_reference'])\n    -\u003esend();\n\nif (!$response-\u003eisSuccessful()) {\n  // Payment failed!\n  // Check $response-\u003egetMessage() for more details.\n}\n\n// Payment succeeded!\n// Here's your payment reference number: $response-\u003egetTransactionReference()\n\nif ($card = $response-\u003egetCardToken()) {\n  // You also got back a card token\n  // Store this somewhere safe for future use!\n}\n```\n\n### Authorize \u0026 Capture Later\n\nIn EveryPay, when the payment will be captured is configured at the account level. If you want to authorize a payment without capturing it, then you need a Merchant Account configured accordingly.\n\nTo authorize a payment, simply substitue `purchase` and `completePurchase` methods with `authorize` and `completeAuthorize`. Then call `capture` to capture the funds.\n\n```php\n// Here, pass the payment array that we previously stored when creating the payment\n$gateway-\u003eauthorize([\n        'amount' =\u003e $amount,\n        'paymentType' =\u003e PaymentType::CIT,\n    ])\n    -\u003esetCardReference('previously stored card token')\n    // Set all the other parameters. See previous examples ...\n    -\u003esend();\n\n// Redirect the user to 3DS confirmation as necessary.\n\n// When EveryPay redirects the user back, do this...\n// This won't capture the payment yet, but makes sure the authorization is successful.\n$authorizeResponse = $gateway-\u003ecompleteAuthorize()\n    -\u003esetTransactionId($_GET['order_reference'])\n    -\u003esetTransactionReference($_GET['payment_reference'])\n    -\u003esend();\n\n// Hold on to this.. You'll use this reference to capture the payment.\n$paymentReference = $authorizeResponse-\u003egetTransactionReference();\n\n// When you're ready to capture, call:\n$response = $gateway-\u003ecapture([\n  'amount' =\u003e $amount, // You can capture partially, or the whole amount.\n  'transactionReference' =\u003e $paymentReference,\n])-\u003esend();\n\nif ($response-\u003eisSuccessful()) {\n   // Payment captured!\n} else {\n  // Something went wrong!\n  // Check $response-\u003egetMessage();\n}\n```\n\n---\n\n### Security\n\nIf you discover any security related issues, please email hello@swiftmade.co instead of using the issue tracker.\n\n### Disclaimer\n\nThis package is **not** an official package by EveryPay AS nor by Omnipay.\n\n### License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftmade%2Fomnipay-everypay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftmade%2Fomnipay-everypay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftmade%2Fomnipay-everypay/lists"}