PHPackages                             netlab/commerce-two - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. netlab/commerce-two

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

netlab/commerce-two
===================

Two integration for Craft CMS

2.0.11(2y ago)0244[1 issues](https://github.com/GitNetlab/two-payment/issues)MITPHPPHP ^8.0.2|^9.0

Since Jan 19Pushed 1y ago3 watchersCompare

[ Source](https://github.com/GitNetlab/two-payment)[ Packagist](https://packagist.org/packages/netlab/commerce-two)[ RSS](/packages/netlab-commerce-two/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (21)Used By (0)

Commerce Two plugin for Craft CMS 3.x
=====================================

[](#commerce-two-plugin-for-craft-cms-3x)

Two integration for Craft CMS

[![Screenshot](resources/img/plugin-logo.jpeg)](resources/img/plugin-logo.jpeg)

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

[](#requirements)

- Craft CMS version 3.7.0 or later
- Craft Commerce version 3.4.0 or later

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

[](#installation)

1. Navigate to the root directory of your Craft project in the terminal:

    ```
     cd /path/to/project

    ```
2. Use composer to load the plugin:

    ```
     composer require netlab/commerce-two

    ```
3. In the Control Panel, navigate to Settings &gt; Plugins and click the “Install” button for Commerce Two.

Usage
-----

[](#usage)

This plugin enables integration with [Two](https://www.two.inc/) through a custom implementation of the [Omnipay](https://github.com/craftcms/commerce-omnipay/) gateway. However, it is not a plug-and-play solution and requires implementation steps to be performed using the controller actions provided for the checkout process.

Configuration
-------------

[](#configuration)

The following steps must be taken to configure the plugin:

1. Go to the plugin settings page (admin/settings/plugins/commerce-two) and add your API credentials (Merchant ID, API keys, select the appropriate environment, and language for invoice generation). Consider using environment variables for storing sensitive information.
2. Create a new payment gateway in Craft Commerce (admin/commerce/settings/gateways) and set Two as the gateway. The plugin supports both Authorize Only and Purchase options. Note that for the Authorize Only option, you will need to manually capture the payment for each order.

Features
--------

[](#features)

- Query companies by their names or organization numbers using the `commerce-two/company-search` action.
- Retrieve the address of a desired company using `commerce-two/company-address`.
- Verify that a company is allowed to use Two as a payment provider using `commerce-two/company-check` action.
- If the company is accepted by Two, use `commerce-two/set-company` to save the company information to the cart object. This is a mandatory step as this information is used during API communication.
- If your website uses a custom implementation to handle billing or shipping addresses, use the `commerce-two/set-customer-addresses` endpoint to attach the information to the customer object. This is also mandatory as the plugin uses the built-in [Address handling](https://craftcms.com/docs/4.x/addresses.html) provided by Craft 4.

Brought to you by [Netlab](https://netlab.no)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity73

Established project with proven stability

 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 ~26 days

Recently: every ~110 days

Total

18

Last Release

852d ago

Major Versions

1.0.1 → 2.0.12023-01-24

1.02 → 2.0.22023-01-24

1.0.3 → 2.0.32023-01-24

1.0.4 → 2.0.52023-01-26

1.0.5 → 2.0.82023-06-21

PHP version history (2 changes)2.0.0PHP ^8.0.2|^9.0

1.0.1PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22356967?v=4)[Advanced Communication Networks Lab](/maintainers/Netlab)[@NetLab](https://github.com/NetLab)

---

Top Contributors

[![GitNetlab](https://avatars.githubusercontent.com/u/95863427?v=4)](https://github.com/GitNetlab "GitNetlab (1 commits)")

---

Tags

cmsCraftcraftcmscraft-plugincommercetwo

### Embed Badge

![Health badge](/badges/netlab-commerce-two/health.svg)

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

###  Alternatives

[verbb/events

A full-featured plugin for event management and ticketing.

2312.1k](/packages/verbb-events)[verbb/formie

The most user-friendly forms plugin for Craft.

101400.6k78](/packages/verbb-formie)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.5M73](/packages/nystudio107-craft-seomatic)[verbb/hyper

A user-friendly links field for Craft.

24153.5k14](/packages/verbb-hyper)[verbb/vizy

A flexible visual editor field for Craft.

4251.5k1](/packages/verbb-vizy)[verbb/comments

Add comments to your site.

13754.0k1](/packages/verbb-comments)

PHPackages © 2026

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