WPRuby Logo WPRuby
Log in Get started
  • Plugins
  • Themes
  • Apps
  • Why WPRuby?
  • Docs
  • Blog
    • eCommerce
    • Plugins
    • How to
    • Coding
  • Contact Us
  • About Us
  • Plugins
  • Themes
  • Apps
  • Why WPRuby?
  • Docs
  • Blog
    • eCommerce
    • Plugins
    • How to
    • Coding
  • Contact Us
  • About Us

WPRuby Account

4
  • How to upgrade your license
  • How to renew your license
  • How to change your plugin’s license domain
  • How to cancel your subscription.

WooCommerce Australia Post Shipping Method Pro

14
  • Installation
  • How to activate your Australia Post Pro license
  • How to Upgrade from Free to Pro
  • Australia Post Zone Settings
  • Australia Post Global Settings
  • Australia Post Tracking
  • Pre-Paid Satchels
  • How to Mark a Product to be Shipped Individually?
  • Troubleshooting and common issues
  • Available WordPress Actions and Filters
  • [Labels Pro] How to connect the plugin with your MyPost Business account
  • [Labels Pro] How to connect Labels Pro with your eParcel account
  • [Labels Pro] How to print labels and create shipping orders.
  • [Labels Pro] How to Mark a Product as Containing Hazardous Materials?

WooCommerce Custom Payment Gateway Pro

11
  • Getting Started
  • Custom Payment Gateway Settings
  • Custom Checkout Field Builder
  • Conditional Display Rules
  • Sending Payment Data to an External API
  • How to Create a Pay by Invoice Payment Method
  • How to Create a Manual Payment Link or Review-Based Payment Method
  • Troubleshooting
  • Frequently Asked Questions
  • Security and Sensitive Payment Data
  • How to Upgrade from Free to Pro

WooCommerce Royal Mail Shipping Calculator Pro

4
  • Installation
  • Settings
  • Troubleshooting and common issues
  • How to activate your plugin license

Controlled Admin Access Pro

3
  • Available Actions for a Restricted Admin
  • Installation
  • Settings

WooCommerce Address Guard Pro

7
  • Get Started
  • Configuring Address Providers
  • Configuring Checkout Validation
  • Creating Address Rules
  • Customizing Customer Messages
  • Using the Address Tester
  • Reviewing Address Quality Inside WooCommerce Orders

WooCommerce Simple Table Rates Pro

8
  • Installation
  • Settings
  • Rules and Actions
  • How to Setup Weight Based Shipping
  • How To Setup Shipping By Shipping Class
  • How to Setup Shipping by Cart Total
  • How to Setup Shipping by Product
  • How to Setup Shipping by Product Category

WooCommerce Pack IQ

5
  • Installation
  • How to activate your plugin license
  • How to add a new box
  • How to change the boxes weight and dimensions units
  • How to view the packing results

WooCommerce Restricted Shipping and Payment Pro

4
  • Installation
  • Setting Up Shipping Methods Conditions
  • Available Shipping & Payment Rules
  • Setting Up Payment Gateways Conditions

Affiliate Butler PRO

11
  • Installation and Upgrade
  • Quick Start Guide
  • Managing Auto Links
  • Link Types
  • Short Links
  • Auto Link in the Block Editor
  • Statistics
  • Import and Export
  • Settings
  • Frequently Asked Questions
  • Developers

WooCommerce Adyen Payment Gateway

2
  • Setup the Adyen payment gateway
  • How to configure Adyen Webhook notifications? 

WooCommerce Free Shipping Per Product

2
  • Installation
  • How to setup free shipping for a certain product

WooCommerce UPS Shipping Method Pro

10
  • Installation
  • How to get your UPS Client ID and Client Secret
  • UPS Center Settings
  • UPS Zone Settings
  • How to ship an order and print UPS labels
  • Managing UPS shipments
  • UPS tracking numbers and order completion
  • Shipping Health checks
  • How to activate your UPS license
  • Troubleshooting common issues

Delivery Promise for WooCommerce

9
  • Getting Started
  • Understanding Processing Time vs Transit Time
  • Setting the Cutoff Countdown
  • Configuring Default Delivery Estimates
  • Creating Delivery Rules
  • Setting Working Days and Holidays
  • Using Rule Presets
  • Product-Level Lead Times
  • Why the “Order Within” Countdown Is Not Showing

Cartavera

16
  • Cartavera documentation
  • Install Cartavera
  • Activate your licence
  • Import a starter site
  • Styles, colours and fonts
  • Headers and footers
  • The homepage
  • Catalog and filters
  • The product page
  • Cart and checkout
  • Translation and right-to-left languages
  • Child themes
  • Hooks and filters reference
  • Troubleshooting
  • FAQ
  • Changelog

Candy Shop

14
  • Candy Shop documentation
  • Install Candy Shop
  • Activate your licence
  • Import a starter site
  • Set up your products
  • Food information and allergens
  • Shop pages and filters
  • Styles, colors and fonts
  • Headers, footers and menus
  • The homepage
  • Child theme
  • Hooks and filters
  • FAQ
  • Changelog

Foliowick

16
  • Foliowick documentation
  • Install Foliowick
  • Activate your licence
  • Import a demo store
  • Authors and author pages
  • Book details and editions
  • Genres, reading lists and the Editor’s Pick
  • Secondhand copies and forthcoming books
  • Shop pages, search and book pages
  • Styles, colors and fonts
  • Headers, footers and menus
  • The homepage
  • The journal and editorial pages
  • Hooks and filters
  • FAQ
  • Changelog

Gemelune

14
  • Gemelune documentation
  • Install Gemelune
  • Activate your licence
  • Import a starter site
  • Metals, sizes and swatches
  • Size guide, delivery and care pages
  • Shop pages, product cards and product pages
  • Styles, colors and fonts
  • Headers, footers and menus
  • The homepage
  • Child theme
  • Hooks and filters
  • FAQ
  • Changelog

Formafern

15
  • Formafern documentation
  • Install Formafern
  • Activate your licence
  • Import the demo store
  • Finishes and swatches
  • Dimensions, materials and care
  • Rooms and Shop the Room
  • Shop pages, product cards and product pages
  • Styles, colors and fonts
  • Headers, footers and menus
  • The homepage and editorial pages
  • Child theme
  • Hooks and filters
  • FAQ
  • Changelog

Pawtani

15
  • Pawtani documentation
  • Install Pawtani
  • Activate your licence
  • Install a starter site
  • Pets, sizes, flavours and product facts
  • Size & fit guides
  • Shop pages, filters and product pages
  • Repeat purchases, subscriptions and wishlists
  • Styles, colors and fonts
  • Headers, footers and menus
  • The homepage
  • Child theme
  • Hooks and filters
  • FAQ
  • Changelog

Deep Insights for WooCommerce

19
  • Getting Started with Deep Insights for WooCommerce
  • Upgrading from Woo Insights
  • Importing Your Order History
  • Dates, Comparisons and Filters
  • Revenue Report
  • Products Reports
  • Customer Reports
  • RFM Customer Segments
  • Retention and Cohorts
  • Profitability and Cost of Goods
  • Subscriptions Analytics
  • Inventory Intelligence
  • Shipping, Discounts and Refunds
  • Automated Insights
  • Settings Reference
  • Why Numbers Can Differ from WooCommerce Analytics
  • Troubleshooting
  • Privacy, Security and Updates
  • Developer Hooks
WooCommerce GLS Canada Shipping Pro

WooCommerce GLS Canada Shipping Pro

11
  • Installation
  • How to get your GLS Canada API access
  • GLS Canada Centre settings
  • Adding GLS Canada to a shipping zone
  • How to create a GLS shipment and print the label
  • Creating GLS labels in bulk
  • Requesting GLS pickups
  • GLS tracking for you and your customers
  • Shipping Health checks
  • How to activate your GLS Canada license
  • Troubleshooting common issues
WooCommerce Canada Post Extension PRO

WooCommerce Canada Post Extension PRO

17
  • Installation
  • Demo mode, Test API mode and going live
  • How to connect your Canada Post account
  • Canada Post settings
  • Adding Canada Post to a shipping zone
  • Boxes, packing and product shipping options
  • Canada Post at checkout: rates, Deliver to Post Office and address lookup
  • How to create a Canada Post shipment and print the label
  • International shipments and customs
  • Creating Canada Post labels in bulk
  • Manifests: closing out the day
  • Canada Post tracking for you and your customers
  • Canada Post returns
  • Requesting Canada Post pickups
  • Dashboard, Shipments, Rate Calculator and Post Offices
  • How to activate your Canada Post licence
  • Troubleshooting common issues
WPRuby Packing Slips for WooCommerce

WPRuby Packing Slips for WooCommerce

7
  • Getting started with WPRuby Packing Slips
  • Packing slip settings
  • Printing packing slips and PDFs
  • One slip per box: what each shipping plugin provides
  • Marking boxes as packed
  • Packing slips troubleshooting and FAQ
  • Packing slips developer hooks and templates
View Categories
  • Home
  • Knowledge Base
  • WooCommerce Custom Payment Gateway Pro
  • How to Create a Pay by Invoice Payment Method

How to Create a Pay by Invoice Payment Method

Waseem
Updated on July 7, 2026

3 min read

0:00 / 3:41
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

This guide walks you through setting up a Pay by Invoice gateway so B2B customers can place orders now and pay later by invoice.

Table of Contents

Toggle
  • Before you start
  • Step 1: Create the gateway
  • Step 2: Enable the gateway
  • Step 3: Set the Method Title
  • Step 4: Add a customer message
  • Step 5: Add invoice instructions
  • Step 6: Add payment terms
  • Step 7: Add invoice contact email
  • Step 8: Set order status to On hold
  • Step 9: Add recommended checkout fields
    • Example help text
  • Step 10: Add a customer note (optional)
  • Step 11: Optional conditional rule
  • Step 12: Test as an administrator
  • Copy-paste example text

Before you start

  • WooCommerce Custom Payment Gateway Pro is installed and licensed.
  • You know your invoice process: who sends invoices, payment terms, and contact details.

The fastest way to start is the Pay by Invoice template. You can also configure a gateway manually.


Step 1: Create the gateway

  1. Go to WooCommerce → Settings → Custom Payment Gateways.
  2. Under Create gateway, select the Pay by Invoice template.
  3. Enter a gateway name (for example, Pay by Invoice).
  4. Click create.
  5. Click Configure (or go to WooCommerce → Settings → Payments and click Manage).

Step 2: Enable the gateway

On the gateway settings page:

  1. Check Enable Custom Payment.
  2. Leave Enable Debug Mode checked for now (admin-only testing).

Step 3: Set the Method Title

Method Title: Pay by Invoice

This is the name customers see at checkout.


Step 4: Add a customer message

In Customer Message, add text that explains the process:

Place your order now and pay later by invoice. We will send the invoice and payment instructions after reviewing your order.

Step 5: Add invoice instructions

In Invoice Instructions (template field), add details shown in the Payment details section:

After your order is approved, we will email a PDF invoice to your billing contact. Please reference your order number on all payments and correspondence.

Step 6: Add payment terms

In Payment Terms:

Net 30 days from invoice date

Adjust to match your business (Net 15, Net 45, Due on receipt, and so on).


Step 7: Add invoice contact email

In Invoice Contact Email:

[email protected]

Replace with your accounts or finance email address.


Step 8: Set order status to On hold

Order Status After The Checkout: On hold

This keeps orders open until you review them and receive payment.


Step 9: Add recommended checkout fields

Scroll to Custom Form. The Pay by Invoice template includes these fields by default. Confirm or add them:

Field typeField labelRequired
TextCompany nameNo
TextVAT / Tax IDNo
TextPurchase order numberNo
EmailBilling contact emailYes

Example help text

  • Company name: Enter your registered company name
  • VAT / Tax ID: Your tax or VAT registration number
  • Purchase order number: Your internal PO reference
  • Billing contact email: We will send the invoice to this address

Click Save changes in the field builder.


Step 10: Add a customer note (optional)

In Customer Note, add post-checkout text:

Thank you for your order. Our accounts team will review your order and send an invoice within 2 business days. If you have questions, contact [email protected].

Step 11: Optional conditional rule

Show Pay by Invoice only to logged-in wholesale customers:

  1. Under Conditional Display Rules, check Enable conditional display rules.
  2. Add condition:
    • Condition type: User role
    • Operator: is
    • Value: Your wholesale role
  3. Save changes.

See Conditional Display Rules for more examples.


Step 12: Test as an administrator

  1. Confirm Enable Debug Mode is on.
  2. Log in as an administrator.
  3. Add a product to the cart and go to checkout.
  4. Select Pay by Invoice.
  5. Confirm:
    • Customer message and payment details appear
    • Checkout fields work and required fields block submission when empty
    • Order status is On hold after checkout
    • Submitted data appears on the order in admin
    • Customer note appears on the thank-you page
  6. When everything looks correct, turn off Enable Debug Mode and save.

Copy-paste example text

Use and adapt these blocks:

Customer Message

Place your order now and pay later by invoice. We will send the invoice and payment instructions after reviewing your order.

Invoice Instructions

We will email your invoice after order review. Include your order number on all payments.

Payment Terms

Net 30 days from invoice date

Customer Note

Thank you for your order. Your invoice will be sent shortly. Payment is due within 30 days of the invoice date.

This guide is for

WooCommerce Custom Payment Gateway Pro

Customize how customers complete checkout in WooCommerce by adding manual or custom payment methods. This plugin does not process payments or handle financial transactions.

From US$79.00 /year

See features and pricing
Sending Payment Data to an External APIHow to Create a Manual Payment Link or Review-Based Payment Method
WPRuby Logo WPRuby

Since 2015, WPRuby has built and maintained WooCommerce shipping and checkout plugins for stores that depend on them every day. Code is easy. Reliability is earned: every plugin is kept compatible, updated and supported by the people who build it.

Resources

  • Knowledge Base
  • Affiliate Area
  • About Us
  • Nomad Jar
  • GarnerDocs
  • UnavailableToday
  • Why WPRuby?

Legal

  • Privacy Policy
  • Terms of Use

Follow us

  • Github
  • X.com
  • LinkedIn
  • Facebook

© 2026 - WPRuby