PHPackages                             webdna/commerce-opayo - 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. webdna/commerce-opayo

ActiveCraft-plugin

webdna/commerce-opayo
=====================

Opayo integration for Craft Commerce 3.3+

3.1.0(3mo ago)32.6k[2 issues](https://github.com/webdna/commerce-opayo/issues)proprietaryPHP

Since Jun 15Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/webdna/commerce-opayo)[ Packagist](https://packagist.org/packages/webdna/commerce-opayo)[ RSS](/packages/webdna-commerce-opayo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (30)Used By (0)

[![Opayo for Craft Commerce icon](./src/icon.svg)](./src/icon.svg)

Opayo for Craft Commerce
========================

[](#opayo-for-craft-commerce)

This plugin provides a [Opyao](https://www.opayo.co.uk/) integration for [Craft Commerce](https://craftcms.com/commerce).

Requirements
------------

[](#requirements)

This plugin requires Craft 3.6 and Craft Commerce 3.3 or later.

Installation
------------

[](#installation)

You can install this plugin from the Plugin Store or with Composer.

#### From the Plugin Store

[](#from-the-plugin-store)

Go to the Plugin Store in your project’s Control Panel and search for Opayo for Craft Commerce”. Then click on the “Install” button in its modal window.

#### With Composer

[](#with-composer)

Open your terminal and run the following commands:

```
# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require craftcms/commerce-opayo

# tell Craft to install the plugin
./craft install/plugin commerce-opayo
```

Setup
-----

[](#setup)

To add an Opayo payment gateway, go to Commerce → Settings → Gateways, create a new gateway.

> **Tip:** The Vendor, Integration Key and Integration Password gateway settings can be set to environment variables. See [Environmental Configuration](https://docs.craftcms.com/v3/config/environments.html) in the Craft docs to learn more about that.

### Using the legacy basket format

[](#using-the-legacy-basket-format)

Example implementation

```

       {{ csrfInput() }}
       {% set gateway = craft.commerce.gateways.getGatewayByHandle('opayo') %}

       Submit

```

```
function paymentFormSubmit(e) {
        e.preventDefault();
        // disable submit button
        e.target.querySelector('button[type="submit"]').disabled = true;

        sagepayOwnForm({
                merchantSessionKey: e.target.querySelector('input[name="sessionKey"]').value
        }).tokeniseCardDetails({
                cardDetails: {
                        cardholderName: e.target.querySelector('[id="name"]').value,
                        cardNumber: e.target.querySelector('[id="cardnumber"]').value,
                        expiryDate: e.target.querySelector('[id="expiry"]').value,
                        securityCode: e.target.querySelector('[id="cvv"]').value,
                },
                onTokenised: function(result) {
                        if (result.success) {
                                e.target.querySelector('[name="nonce"]').value = result.cardIdentifier;
                                e.target.removeEventListener('submit', paymentFormSubmit);
                                e.target.submit();
                        } else {
                                alert(result.errors.join(', '));
                        }
                }
        });
}
document.getElementById('opayo-form').addEventListener('submit', paymentFormSubmit);
```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance75

Regular maintenance activity

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 91.3% 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 ~60 days

Recently: every ~176 days

Total

29

Last Release

92d ago

Major Versions

1.0.4 → 2.0.02022-07-13

1.0.6 → 2.0.12023-01-30

2.0.3 → v4.x-dev2024-03-05

1.0.7 → v3.x-dev2024-03-05

3.1.0 → v5.x-dev2026-02-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/af76e3e79806ca4a242a00774c92bc950a956c4ac8d3fa5d545e758e4617599b?d=identicon)[webdna](/maintainers/webdna)

---

Top Contributors

[![samuelbirch](https://avatars.githubusercontent.com/u/13586?v=4)](https://github.com/samuelbirch "samuelbirch (21 commits)")[![CharlieGentle](https://avatars.githubusercontent.com/u/15872856?v=4)](https://github.com/CharlieGentle "CharlieGentle (2 commits)")

---

Tags

cmsCraftcraftcmscraft-plugincommerceopayo

### Embed Badge

![Health badge](/badges/webdna-commerce-opayo/health.svg)

```
[![Health](https://phpackages.com/badges/webdna-commerce-opayo/health.svg)](https://phpackages.com/packages/webdna-commerce-opayo)
```

###  Alternatives

[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[verbb/events

A full-featured plugin for event management and ticketing.

2311.7k](/packages/verbb-events)

PHPackages © 2026

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