PHPackages                             swiftmade/omnipay-everypay - 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. [Payment Processing](/categories/payments)
4. /
5. swiftmade/omnipay-everypay

ActiveLibrary[Payment Processing](/categories/payments)

swiftmade/omnipay-everypay
==========================

(Unofficial) payment gateway for Every Pay (Estonia)

v0.4.4(2y ago)159.6k1MITPHPPHP ^7.2|^8CI passing

Since Oct 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/swiftmade/omnipay-everypay)[ Packagist](https://packagist.org/packages/swiftmade/omnipay-everypay)[ GitHub Sponsors](https://github.com/swiftmade)[ RSS](/packages/swiftmade-omnipay-everypay/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (7)Dependencies (4)Versions (9)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c6b536d4ff56e27b681d30dc64bfaa5d6db94394094247a5fb27c77c51a8ed30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73776966746d6164652f6f6d6e697061792d65766572797061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swiftmade/omnipay-everypay)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/04934f15f34e52e583269218ffec4ccff34e7a5790332617c2bca855d5a1af73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73776966746d6164652f6f6d6e697061792d65766572797061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swiftmade/omnipay-everypay)

PHP EveryPay Client (for Omnipay)
=================================

[](#php-everypay-client-for-omnipay)

Use this package to integrate EveryPay into your PHP application using [Omnipay](http://omnipay.thephpleague.com).

EveryPay is a payment gateway currently used by:

- LHV
- SEB
- Swedbank

The package supports the following payment types:

- One-off payments
- Requesting card tokens
- One-click / CIT (Customer Initiated Transactions) Payments
- MIT (Merchant Initiated Transactions) Payments

Usage
-----

[](#usage)

Install the package using composer

```
composer require swiftmade/omnipay-everypay
```

### Initialize the gateway

[](#initialize-the-gateway)

```
$gateway = Omnipay::create('EveryPay')->initialize([
  'username' => '', // EveryPay api username
  'secret' => '', // EveryPay api secret
  'accountName' => '', // merchant account ID
  'testMode' => true, // set to false for production!
  'locale' => 'en', // et=Estonian, see integration guide for more options.
]);
```

### One-off Purchase

[](#one-off-purchase)

```
$purchase = $gateway
    ->purchase([
        'amount' => $amount,
        'paymentType' => PaymentType::ONE_OFF,
    ])
    ->setTransactionId($orderId) // unique order id for this purchase
    ->setReturnUrl($customerUrl) // the url to redirect if the payment fails or gets cancelled
    ->setClientIp($_SERVER['REMOTE_ADDR']) // optional, helps fraud detection
    ->setEmail(''); // optional, helps fraud detection

// Use this, if you want to make the payment using a previously stored card token
// Only applicable for MIT and CIT payment types.
$purchase->setCardReference($token);

// Uncomment if you want to store the card as a token after the payment
// (Only supported with One-off payment type)
$purchase->setSaveCard(true);

$response = $purchase->send();

// IMPORTANT: Store this payment data somewhere so that we can validate / process it later
$payment = $response->getData();

return $response->redirect(); // this will return a self-submitting html form to EveryPay Gateway API
```

### Customer Initiated Transaction (One-click payment)

[](#customer-initiated-transaction-one-click-payment)

```
$purchase = $gateway
    ->purchase([
        'amount' => $amount,
        'paymentType' => PaymentType::CIT,
    ])
    ->setTransactionId($orderId) // unique order id for this purchase
    ->setCardReference('previously stored card token')
    ->setReturnUrl($customerUrl)
    ->setClientIp($_SERVER['REMOTE_ADDR']) // optional, helps fraud detection
    ->setEmail(''); // optional, helps fraud detection

$response = $purchase->send();

// Store the payment response data if you wish.
$payment = $response->getData();

if ($response->isSuccessful()) {
   // Payment done!
} else if($response->isRedirect()) {
   // 3DS Confirmation needed!
   // Redirect the user to 3DS Page.
   return $response->redirect();
} else {
  // Something went wrong!
  // Check $response->getMessage();
}
```

### Complete Payment (handle Gateway redirect from EveryPay)

[](#complete-payment-handle-gateway-redirect-from-everypay)

EveryPay will redirect the user to the `returnUrl` once the payment is finalized. You need to validate whether the payment went through.

```
// Here, pass the payment array that we previously stored when creating the payment
$response = $gateway->completePurchase()
    // These values are passed back to you by EveryPay
    ->setTransactionId($_GET['order_reference'])
    ->setTransactionReference($_GET['payment_reference'])
    ->send();

if (!$response->isSuccessful()) {
  // Payment failed!
  // Check $response->getMessage() for more details.
}

// Payment succeeded!
// Here's your payment reference number: $response->getTransactionReference()

if ($card = $response->getCardToken()) {
  // You also got back a card token
  // Store this somewhere safe for future use!
}
```

### Authorize &amp; Capture Later

[](#authorize--capture-later)

In 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.

To authorize a payment, simply substitue `purchase` and `completePurchase` methods with `authorize` and `completeAuthorize`. Then call `capture` to capture the funds.

```
// Here, pass the payment array that we previously stored when creating the payment
$gateway->authorize([
        'amount' => $amount,
        'paymentType' => PaymentType::CIT,
    ])
    ->setCardReference('previously stored card token')
    // Set all the other parameters. See previous examples ...
    ->send();

// Redirect the user to 3DS confirmation as necessary.

// When EveryPay redirects the user back, do this...
// This won't capture the payment yet, but makes sure the authorization is successful.
$authorizeResponse = $gateway->completeAuthorize()
    ->setTransactionId($_GET['order_reference'])
    ->setTransactionReference($_GET['payment_reference'])
    ->send();

// Hold on to this.. You'll use this reference to capture the payment.
$paymentReference = $authorizeResponse->getTransactionReference();

// When you're ready to capture, call:
$response = $gateway->capture([
  'amount' => $amount, // You can capture partially, or the whole amount.
  'transactionReference' => $paymentReference,
])->send();

if ($response->isSuccessful()) {
   // Payment captured!
} else {
  // Something went wrong!
  // Check $response->getMessage();
}
```

---

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

### Disclaimer

[](#disclaimer)

This package is **not** an official package by EveryPay AS nor by Omnipay.

### License

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Every ~215 days

Recently: every ~190 days

Total

8

Last Release

948d ago

PHP version history (2 changes)v0.1.0PHP &gt;=7.0.0

v0.4.0PHP ^7.2|^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/735011?v=4)[Ahmet Özışık](/maintainers/aozisik)[@aozisik](https://github.com/aozisik)

---

Top Contributors

[![aozisik](https://avatars.githubusercontent.com/u/735011?v=4)](https://github.com/aozisik "aozisik (19 commits)")

---

Tags

gatewayomnipaypaymentphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/swiftmade-omnipay-everypay/health.svg)

```
[![Health](https://phpackages.com/badges/swiftmade-omnipay-everypay/health.svg)](https://phpackages.com/packages/swiftmade-omnipay-everypay)
```

###  Alternatives

[omnipay/payflow

Payflow driver for the Omnipay payment processing library

201.0M3](/packages/omnipay-payflow)[omnipay/payfast

PayFast driver for the Omnipay payment processing library

24651.4k3](/packages/omnipay-payfast)[aimeos/ai-payments

Payment extension for Aimeos e-commerce solutions

2164.1k](/packages/aimeos-ai-payments)

PHPackages © 2026

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