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)0206[1 issues](https://github.com/GitNetlab/two-payment/issues)MITPHPPHP ^8.0.2|^9.0

Since Jan 19Pushed 10mo 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 1mo 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

36

—

LowBetter than 82% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

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

761d 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://www.gravatar.com/avatar/3ae35f1ef1bfe80fd415d549cb637ead5eebc2f3bf6e98bcef5a4efca6b952a2?d=identicon)[Netlab](/maintainers/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/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/events

A full-featured plugin for event management and ticketing.

2311.7k](/packages/verbb-events)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[verbb/vizy

A flexible visual editor field for Craft.

4348.6k](/packages/verbb-vizy)

PHPackages © 2026

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