Skip to main content
WooCommerce

WooCommerce Plugin

Integrate Two's B2B payment solution into your WooCommerce store, allowing business customers to pay on invoice with flexible payment terms.


Prerequisites​

Before you begin, ensure you have:

  • WordPress with WooCommerce installed
  • Admin access to your WordPress site
  • At least one tax rate configured in WooCommerce
  • Your Two API credentials
Get Your API Keys
  1. Sign up at portal.two.inc
  2. You'll receive an email with your test API keys
  3. Once ready for production, you'll receive your live API keys

Installation​

Choose one of the following installation methods:

Option 1: Install via WordPress Marketplace​

  1. Navigate to Plugins → Add New in your WordPress admin

WooCommerce dashboard

  1. Search for "two - bnpl"

Search for Two plugin

  1. Click Install Now
  2. Click Activate

Activate plugin

Option 2: Install via ZIP File​

  1. Download the ZIP file from the WordPress Plugin Directory

Download plugin

  1. Navigate to Plugins → Add New in your WordPress admin

Add plugin

  1. Click Upload Plugin

Upload plugin

  1. Select the downloaded ZIP file
  2. Click Install Now, then Activate

Install plugin


Configuration​

Step 1: Enable Two Payment Method​

  1. Navigate to WooCommerce → Settings → Payments
  2. Find Two in the payment methods list
  3. Toggle the switch to enable it
  4. Click Manage to configure

Configure the plugin

Step 2: Configure Settings​

General Settings & API Credentials
SettingDescription
Enable/DisableActivate Two as a payment option
TitlePayment method name shown at checkout
DescriptionText displayed at checkout
API URLProduction: api.two.inc/v1
Clear on deactivateClear all settings when deactivating the plugin
UsernameYour Two username
API KeyYour Two API key

API credentials

Payment & Invoice Settings
SettingDescription
Invoice typeSelect the invoice type agreed with Two
Payment daysNumber of days for payment (e.g., 14, 30, 45)
Company logoUpload your logo for invoices

Invoice settings

Checkout Options
SettingDescription
Enable credit checkPre-check buyer eligibility (recommended)
Private customersAllow private customer option
Sole traderAllow sole trader option
Business customerAllow business customer option
Required fieldsMake all Two-related fields required
Department fieldAdd department input field
Project fieldAdd project input field
Use buttonsReplace radio buttons with styled buttons

Checkout options

Auto-complete & Additional Options
SettingDescription
About Two linkLink to a page describing Two payment
Default to businessShow business checkout by default
Flat feeCharge buyer a flat fee on purchase
Initiate refund paymentAuto-initiate payment to buyer on refund
Enable other paymentsEnable all other payment methods
Fallback paymentEnable fallback if Two unavailable
Company name searchAuto-complete company names
Organisation ID searchAuto-complete organisation numbers

Additional options

Click Save Changes when done.

Product Page Settings​

Available from plugin version 2.25.0. All are off by default and independent, so you can run either, both or neither.

FieldDescription
Show message on product pagesAdds a short line telling the buyer they can pay on invoice with Two
Product page messageOptional custom wording for that line. Leave empty for the default
Show buy button on product pagesAdds a button beside Add to cart that adds the item and opens checkout with Two preselected where it is available
The buy button never places the order

It takes the buyer to checkout, where they confirm as usual. It sits beside your theme's Add to cart rather than replacing it, and respects the quantity and any variant the buyer has chosen.

Exactly where it appears depends on your theme.

Preselection depends on the finished basket

A product page has no cart, so the button cannot know in advance whether your minimum order value, the buyer's country or the currency will allow Two. When the completed basket does not qualify, checkout opens with nothing selected and the buyer chooses as they normally would.

Company Search in Action​

When enabled, the company search auto-complete feature helps buyers quickly find their company:

Search API in action


Tax Configuration​

Required

Two requires at least one tax rate to be enabled. If you haven't configured taxes, you must do so before offering Two as a payment method.

Configure taxes at WooCommerce → Settings → Tax.

Configure taxes step 1

Configure taxes step 2

Most merchants will need to configure VAT rates for their region.


Processing Refunds​

To refund an order paid with Two:

  1. Navigate to WooCommerce → Orders

WooCommerce orders

  1. Select an order with status Completed
  2. Scroll down to the order items section
  3. Click Refund

Refund button

  1. Set the quantity for each item to refund
  2. Click Refund via Two

Refund edit

Irreversible Action

When you click Refund via Two, a confirmation dialog will appear. Once confirmed, this action cannot be undone.


Quick Reference​

TaskLocation
Enable TwoWooCommerce → Settings → Payments
Configure settingsWooCommerce → Settings → Payments → Two → Manage
Configure taxesWooCommerce → Settings → Tax
Process refundsWooCommerce → Orders → [Order] → Refund

Need Help?​

If you have questions or need assistance, please contact our support team.