Skip to content

Commerce Foundations is our pre-built Craft Commerce store. See what it includes

Craft CMS plugins

Net Terms

Give business customers a credit limit to buy now and pay their invoice later on set terms.

Getting started

Net Terms is a Craft Commerce payment gateway that bills orders on net terms, tracks what each buyer owes, and applies recorded payments to invoices or orders.

This walks you from composer require to an invoice for an order charged to an account. By the end you know how an account, its buyers, the gateway and an invoice fit together.

1. Requirements#

  • Craft CMS ^5.10.0
  • Craft Commerce ^5.4.0
  • PHP ^8.2

2. Install#

composer require fostercommerce/commerce-net-terms
./craft plugin/install net-terms

3. Configure#

Go to Settings -> Plugins -> Net Terms. Once you build a storefront invoice page, set Storefront invoice path so invoice emails link to it. For every setting, see configuration.

4. Add the gateway#

Go to Commerce -> Settings -> Gateways -> New gateway, choose Net Terms, and name it. Choose how you bill in Credit Card Payment Type before you take any charges:

  • Purchase, the default, marks an order paid at checkout and bills the account on invoices you issue. This walkthrough uses it.
  • Authorize only leaves each order unpaid, and you record payments against the orders; see billing by order.

Click Save. Use Commerce’s Match Order, Match Billing Address and Match Shipping Address conditions to narrow which orders can use the gateway.

The Net Terms gateway in Commerce’s gateway settings

5. Open an account#

Go to Net Terms -> Accounts -> New account.

  1. Choose the Account holder: the customer the account belongs to. The holder becomes the account’s first buyer.
  2. Enter the Credit limit.
  3. Leave Sublimits and Payment terms on their defaults.
  4. Click Save.

6. Add a buyer#

Only buyers can charge orders to an account, and the holder already is one. To let someone else buy on it, open the account’s Buyers tab, choose a user, leave Sublimit blank, and click Add buyer.

An account’s Buyers tab, with two buyers and their sublimits

7. Charge an order#

Sign in to the storefront as the buyer and check out. Commerce lists the gateway with your other payment methods under the name you gave it, with the buyer’s available credit. Choose it and pay. The order is paid in full, and the account’s Owed figure rises by the order total.

8. Issue an invoice#

On the account’s Invoices tab, click Issue and email. The invoice bills every charge not yet invoiced, with one line per buyer, and the holder receives the invoice email.

An issued invoice

Where to go next#

We can take it from here.

We take on the Craft and Craft Commerce sites you built, so you can get back to building. Introduce a client who signs a management contract and you get a $3,000 partnership fee.

How the Dev Partnership Program works
See if we’re a fit