WordPress plugin intelligence profile

Dotix

Connect your app with WooCommerce credits. Append additional credits for each product in WooCommerce.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.0
Current version1.5
WordPress coverageTested up to WordPress 6.0
Minimum stackWP 4.0 · PHP —
Directory statusactive
Last directory update27 May 20224y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Dotix version 1.5 as active, updated 4y ago and tested up to WordPress 6.0.

Overview

About this plugin

This plugin will enable the connection between your app and WooCommerce orders for digital credits usage. It can be used to check the remaining credits in one order, or consume them.

Usage

Redirect to your app link on order paid page, carring on the order key.

com/

-

EXAMPLE</a>.

-

com/wp-json/dotix/v1/order/wc_order_xQhmRjJ7 with $_POST[ 'num' ] = 'max', assume the consumed credits is 42 in returned JSON.

-

Add 42 credits into the corresponding user account.

REST APIs

1) Show balance:

Method: GET

com/wp-json/dotix/v1/order/wc_order_xQhmRjJ7

Return: {"_res":"ok", "order_id":45, "status":"completed", "balance":"142"}

// NOTE: only the order with status= completed can be consumed credits.

2) Consume 100 credits:

Method: POST

com/wp-json/dotix/v1/order/wc_order_xQhmRjJ7

Data: [ 'num' => 100 ]

Return: {"_res":"ok", "order_id":45, "consumed":"100", "balance":"42"}

3) Consume all credits:

Method: POST

com/wp-json/dotix/v1/order/wc_order_xQhmRjJ7

Data: [ 'num' => 'max' ]

Return: {"_res":"ok", "order_id":45, "consumed":"42", "balance":"0"}

For all errors, will return {“_res”:”err”, “_msg”:”error_msg_tag or content”}

Order Status

If an order contains only items that have valid credit in product detail, once the order is paid, the status will change to completed automatically instead of processing.

The reason to do this is because some unpaid getways (Bank Wire, Cheque, Cash on delivery) will have status processing once the order is placed while not paid. Thus we can’t use processing to detect if the order is paid or not.

To make the credits in the orders with the unpaid gateways available, please update the order status to completed.

Error Message Tag In REST API

Error code: wrong_hash

Description: The order key doesn’t match any order.

Error code: wrong_status

Description: The order isn’t in processing/completed status, maybe not paid yet?

Error code: lack_of_param

Description: Need to specify the ammount to consume. Either numeric or a fixed string max.

Error code: lack_of_bal

Description: Not enough balance left in this order.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • credit point system for woocommerce
  • ticket system for woocommerce
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.0
Minimum requirementsWordPress 4.0 · PHP not listed
Update activity27 May 20224y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.