Adding a Custom Item Type

Getting started

In this post describes example of how to create a custom item with custom item type and accept payments.
You can download our sample plugin here:

Register a item type

Let’s start by registering a custom item type “product” with the title “Product”.

Adding a some description about “Product” item type which will be displayed under Item Info metabox in add/edit item form in backend.


Handle Item Payment Received

Here is example that explains how to handle payment received for “product” item.

Handle Item for Refunded Payment

Here is example that explains how to handle refunded for “product” item.

Custom Actions

When deleting invoicing item this will decide whether to allow or not to delete item with item type “product”.

Add a item via API data