Back

VibeFox Credits — Help

Requirements

WordPress: 6.0 or later.

WooCommerce: 7.0 or later, installed and active. WordPress does not activate the plugin without it. If WooCommerce is turned off later, the plugin stops working and shows the notice VibeFox Credits requires WooCommerce to be installed and activated.

PHP: 8.0 or later.

VibeFox license key: bought on vibefox.net. One key works on one domain.

Installation

1. In WordPress go to Plugins > Add New > Upload Plugin, choose the plugin ZIP file and click Install Now. You can also upload the vfw_credits folder to /wp-content/plugins/ by FTP.

2. Click Activate. WordPress opens VF Credits > Settings > License. Paste your VibeFox license key into License key and click Activate. Until the key is active the plugin stays switched off and its menu shows only Settings (see License key).

3. Once the key is active, the plugin creates its database tables and a daily WP-Cron job. The menu VF Credits appears with the pages Dashboard, Wallets, Transactions and Settings. The Settings link under the plugin name on the Plugins page opens the settings too.

4. Open VF Credits > Settings and choose what customers can do: buying credits, paying with credits, transfers, bonuses.

5. The Wallet credits payment method is on by default. Check it in WooCommerce > Settings > Payments if customers should pay whole orders with credits.

6. Customers find the wallet in My Account > My Wallet. If that page shows "not found", save Settings > Permalinks once.

Configuration

The plugin settings are on VF Credits > Settings. The sections are listed on the left. Click Save Changes to save them. On a multilingual site the text fields have their own value per language. Amounts are in your store currency.

General

Wallet menu title: the name of the wallet item in My Account. Default: My Wallet.

Floating balance badge: shows the logged-in customer's balance in a small badge at the bottom corner of every page. Default: off. Use the [vfw_credits_balance] shortcode to place the balance anywhere instead.

Buying credits

Customers top up in My Account > My Wallet > Top up or with the [vfw_credits_deposit] shortcode. A WooCommerce order is created and paid with any payment method except Wallet credits and cash on delivery. The credits are added when the order is paid (Processing or Completed), never for Pending payment, On hold or Failed orders.

Preset amounts: buttons with ready amounts, comma separated. Default: 10,25,50,100.

Minimum top-up: default 5.

Maximum top-up: default 10000. 0 = no maximum.

Amount step: the amount must be a multiple of this value, for example 5. 0 = any amount (default).

Top-up fee: added to the price the customer pays. The credits received stay the same.

No fee: the default.
Fixed amount: the value below is added to every top-up.
Percent of the amount: the value below is a percent of the top-up.

Top-up fee value: shown for a fixed or percent fee.

Bonus tiers ("pay 90, get 100"): turns on the tiers below. Default: off.

Tiers: rows of From amount and Discount %. Click Add tier to add one. From the amount of credits bought, the price is reduced by the percent, and the best matching tier applies. Example: from 100, 10 % means 100 credits for 90.

Complete paid top-up orders automatically: a paid top-up order goes straight to Completed. Default: on.

Paying with credits

Full payment uses the Wallet credits payment method. Partial payment uses the "Use my wallet balance" option: the balance is subtracted from the order and debited when the order is placed.

Payment method title: the name of the Wallet credits method at checkout, per language. Leave empty to use the title from the WooCommerce payment settings.

Payment method description: the text under the method at checkout. Leave empty to use the description from the WooCommerce payment settings.

"Use my wallet balance" at checkout: lets customers pay part (or all) of the order with their balance and the rest with another method. Classic and block checkout. Default: on.

Extra discount for paying with the wallet (%): a discount on the part paid with Use my wallet balance. 0 = off (default).

Complete orders paid in full with credits: such orders go straight to Completed. Otherwise WooCommerce sets them to Processing like any paid order. Default: off.

In WooCommerce > Settings > Payments > Wallet credits there are the standard fields Enable/Disable (Enable payment with wallet credits, default on), Title (default Wallet credits) and Description (default Pay with your wallet balance.).

Bonuses

Each bonus is an amount of credits. 0 = off (default for all).

Sign-up bonus: credited once when a customer account is created.

Daily login bonus: once per day on log-in.

Product review bonus: for an approved product review by a logged-in customer.

Review bonuses per customer: the maximum number of review bonuses one customer can get. 0 = unlimited (default).

First order bonus: when the customer's first order is completed. Top-up orders do not count.

Birthday bonus: once a year. It needs the birthday field below.

Birthday field in the wallet: adds the Birthday tab to the wallet, where the customer enters the date of birth once. Default: off.

Transfers

Allow transfers between customers: also enables payment requests. Default: on.

Minimum transfer: default 1.

Maximum transfer: default 5000. 0 = no maximum.

Transfers per day: per customer. Default 10. 0 = unlimited.

Transfer fee: No fee (default), Fixed amount or Percent of the amount. Paid by the sender on top of the amount.

Transfer fee value: shown for a fixed or percent fee.

Pay later (BNPL)

Allow paying with a negative balance: the Wallet credits payment method accepts orders above the balance up to the limit. The next top-ups repay the debt first. Transfers use the available balance only. Default: off.

Debt limit per customer: default 100.

Roles that cannot pay later: customer roles that never get pay later.

Credit expiry

Credits expire: each credit gets an expiry date by its type. Spending uses the credits that expire first. Expired credits are removed by the daily job. Default: off.

Bought credits (top-ups) — days: default 0.

Bonuses — days: default 60.

Refunds to the wallet — days: default 0.

Credits added by the shop and received transfers — days: default 365.

0 = never expire.

Reminder e-mail — days before expiry: default 7. 0 = no reminder.

E-mails

Sender name: per language. Empty = WordPress / WooCommerce default.

Sender e-mail: empty = WordPress / WooCommerce default.

Switches for each customer e-mail, all on by default: Credits added (top-up, refund, shop credit), Payment with credits, Bonus received, Transfers and payment requests, Low balance, Credits expire soon, Pay later debt reminder (weekly).

Low balance threshold: the low balance e-mail is sent when the balance falls below this amount. 0 = off (default).

Cron

Scheduled jobs: credit expiry, reminders and birthday bonuses run once a day with WP-Cron. The section shows the next and the last run. If WP-Cron is disabled on your server, call the URL shown there (with ?vfw_cr_cron= and a secret key) once a day from a system cron job.

Logging

Write a log: balance changes and transfers, in a protected .php file in the plugin's logs folder (logs/vfw_cr.log.php). Default: off.

Log level: Info (default), Warning or Error.

Log: the latest 200 entries and the Clear log button.

Uninstall & Clear

Delete all data when the plugin is deleted: deleting the plugin removes its tables, settings, log and legacy uploads. Default: off.

Data Cleanup: Clear legacy data removes records, settings and uploaded files of features that were removed from the plugin (old withdrawal and verification data); wallet balances and transaction history are kept. Clear log clears the current and previous log files. Clear Wallet Cache clears cached wallet records when the site uses a persistent object cache.

License, Status, Import / Export

License holds the license block (see License key). Status shows your PHP, WordPress and WooCommerce versions against the minimum versions, and the multilingual support: the language plugin in use and the site languages. Import / Export saves the settings to a JSON file and loads them on another site.

How it works

The wallet: logged-in customers open My Account > My Wallet. The balance card shows the balance, a note when the wallet is locked or in debt, and credits that expire soon, with Top up and Send buttons. The tabs are Overview (recent activity, payment requests to answer, credits expiring in the next 30 days), History (filters by type and date), Top up, Send (when transfers are on) and Birthday (when the birthday field and bonus are on). A wallet is created the first time a customer receives or buys credits.

Buying credits: the customer picks a preset or enters an amount. The form shows You receive, Bonus discount, Fee and You pay. Continue to payment creates a top-up order without tax and opens the order payment page. Credits are added once, when the order is paid. For bank transfer or cheque that is when you set the order to Processing. A refund or cancellation of a paid top-up takes the credits back; a partial refund takes back a proportional part. If the customer has already spent them, the order note says how much could not be taken back.

Paying the whole order: the Wallet credits method appears at checkout for logged-in customers with an active wallet whose balance covers the total (or the debt limit, with pay later). It shows Your wallet balance. The order is marked paid at once.

Paying part of the order: at checkout the customer ticks Use my wallet balance (… available). On the block checkout the option is in the order summary. The wallet part is shown as a line in the order totals and is debited when the order is placed. If the balance changed in the meantime, checkout stops with Your wallet balance has changed. Please review the order totals and place the order again. A cancelled or failed order gives the wallet part back; if the order is paid later, it is taken again (if the balance is short, the order is set to On hold with a note). WooCommerce does not let a negative line cover tax, so the tax part is paid with another method or with the Wallet credits method.

Refunds: a WooCommerce refund of an order paid with Wallet credits goes back to the wallet, never more than was paid with credits. A Refunded status returns what is still held. On the order screen the Wallet credits line shows what was paid and returned, and the order action Return wallet credits to the customer returns it manually. Every return happens exactly once.

Transfers and requests: in Send the customer enters Recipient e-mail or username, Amount and an optional message, and sees the fee and the available balance. Transfers to yourself, zero and negative amounts are refused. With Request credits the customer asks another customer for an amount. The other customer gets an e-mail and answers with Pay or Decline in the wallet, once. Your requests lists the status: Waiting, Paid or Declined.

Locked wallets: a locked wallet keeps its balance. The customer cannot spend or send credits, but refunds and top-ups are still credited.

Daily job: once a day (WP-Cron or the external URL) the plugin removes expired credits, sends expiry reminders once, gives birthday bonuses and sends the weekly pay-later reminder.

Multilingual: with WPML, Polylang or qTranslate-XT the wallet menu title, payment method title and description, and the sender name can be set per language, and e-mails use the customer's language.

The plugin works with WooCommerce High-Performance Order Storage (HPOS) and the Cart and Checkout blocks. Wallet CSS and JavaScript load only on the wallet page and on pages with its shortcodes.

Admin pages

Dashboard

Tiles: Credits held by customers (with the pay-later debt and the number of wallets with a balance), Bought this month, Spent this month and Bonuses this month. Below are the Last 30 days chart of credits added and spent per day, Bulk credit / debit and Latest transactions.

Bulk credit / debit: choose Add credits or Remove credits (never below 0), the Amount per customer, Customers with role and a Reason (shown to customers), then click Apply.

Wallets

The list of wallets with tabs All, With balance, In debt and Locked, search by customer and sorting by last activity, balance or user ID. Open wallet opens the wallet of any customer by e-mail, username or ID. Export CSV downloads the list.

The wallet page shows the balance, status and transactions. Add or remove credits: choose Add credits or Remove credits, enter the Amount and a Reason (required, shown to the customer), and click Apply. Lock wallet / Unlock wallet change the status. The wallet's transactions can be exported to CSV.

Transactions

The full journal: date, customer, type, amount, balance after, reference (order or transfer), note and who made the change. Filters by type, user ID and dates, and Export CSV.

Shortcodes and blocks

[vfw_credits_wallet]: the whole wallet, as in My Account.

[vfw_credits_balance]: the balance as text.

[vfw_credits_deposit]: the top-up form.

[vfw_credits_transactions per_page="15"]: the history.

[vfw_credits_transfer]: sending credits and payment requests (when transfers are on).

[vfw_credits_qr size="200"]: a QR code that opens Send with this customer filled in, with the text "Scan to send me credits". It is drawn in the browser; nothing is sent to an external service.

Guests see Please log in to use your wallet. with a link. Each shortcode is also a block in the VibeFox Credits block category: Credits Wallet, Credits Balance, Credits Deposit, Credits Transactions, Credits Transfer and Credits QR Code.

To change the wallet forms, the checkout option or the e-mails, copy the file from the plugin folder template/ to yourtheme/vfw-credits/ with the same path and edit it there.

REST API

Namespace vfw-credits/v1. Authentication: WordPress (cookie with nonce, application passwords) or WooCommerce REST API keys.

GET /balance: the customer's own balance.

GET /transactions: the customer's own transactions; shop managers can pass user_id. Parameters: type, page, per_page.

POST /transfer: a transfer by the customer. Parameters: recipient_id, amount, note.

POST /deposit, POST /debit: shop managers only. Parameters: user_id, amount, note.

POST /adjust: shop managers only. Parameters: user_id, type (deposit or debit), amount, note.

GET /users: shop managers only. Parameters: search, page, per_page.

License key

VibeFox license key: bought on vibefox.net. One key works on one domain.

The plugin works only with an activated key. Without it the plugin is switched off: its features, shortcodes, blocks, admin pages, scheduled tasks and e-mails do not run, and its menu shows only Settings with the License tab. Your settings and data are kept and come back as soon as a key is activated. Right after you activate the plugin in Plugins, WordPress opens this tab.

Open VF Credits > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox Credits then shows the masked key, the status Active until with the date and the domain, the buttons Check now, Change key, Remove key and the link Manage licenses and domains in your account.

Messages under the field: The key looks incomplete — copy the whole key from your account. (nothing is sent), Key not found. Check that you copied the whole key from your account., This key belongs to another product. (use the key bought for VibeFox Credits) and Domain limit reached (free a slot for this domain in your account, then click Check now). After the site address changes, click Check now.

An expired license keeps the plugin working, but without updates and support. Remove key switches the plugin off on this site; the domain slot is freed only in your vibefox.net account. If the license server cannot be reached, the plugin keeps working on the last known status. When the plugin is deleted, the key and its status are always removed.

Troubleshooting

The plugin menu shows only Settings: the license key is not active. Open VF Credits > Settings > License and click Activate (or Check now if a key is already entered); the messages under the field are explained in License key.

My Wallet shows "not found": save Settings > Permalinks once.

Wallet credits does not appear at checkout: check that the method is enabled in WooCommerce > Settings > Payments, the customer is logged in, the wallet is not locked and the balance covers the order total (or pay later is on and the debt limit allows it). The method is never offered for top-up orders.

Bought credits were not added: credits are added only when the top-up order is Processing or Completed. For bank transfer, cheque or another offline method, set the order to Processing after the money arrives.

"Use my wallet balance" does not cover the whole order: WooCommerce limits negative lines to the price without tax. The customer pays the rest with another method, or chooses the Wallet credits method.

Checkout stops with a wallet message: Your wallet balance has changed and no longer covers the amount you chose to pay with it. Please review your order and try again. The balance was spent in another order or tab. The wallet line is removed; the customer reviews the order and places it again.

Top-up amount refused: the customer sees Amount must be between … and …., The minimum amount is …. or The amount must be a multiple of …. Check Minimum top-up, Maximum top-up and Amount step.

A refund is refused: Only … paid with wallet credits can still be refunded for this order. The rest was already returned or paid with another method.

Expiry, reminders or birthday bonuses do not run: check Settings > Cron. If WP-Cron is disabled, call the shown URL once a day. A wrong key returns 403 Unauthorized.

For developers: filters vfw_cr_before_deposit, vfw_cr_before_debit, vfw_cr_before_transfer (return false or a WP_Error to stop the operation), vfw_cr_transaction_types, vfw_cr_wallet_tabs, vfw_cr_topup_blocked_gateways, vfw_cr_expiry_type_map, vfw_cr_bnpl_role_limits, vfw_cr_gateway_icon; actions vfw_cr_after_deposit, vfw_cr_after_debit, vfw_cr_balance_updated, vfw_cr_after_transfer, vfw_cr_wallet_created, vfw_cr_wallet_status_changed, vfw_cr_bonus_awarded, vfw_cr_payment_requested, vfw_cr_credits_expired.

Uninstall

Deactivating the plugin keeps all data and only stops the daily job. To remove the plugin, deactivate and delete it on the Plugins page. The daily job and the license key and license status of this plugin are always removed. Wallet tables, transactions, settings, user data of the plugin, the cron key, the log and legacy uploads are removed only if Delete all data when the plugin is deleted was on. Otherwise they stay for a later re-install. Order notes and order data stay in the shop's order history.

Bug Report

Thank you for helping us improve. We carefully review every report, but we do not reply to them individually. If your report leads to a change, it will be listed in the product changelog together with the report number. To discuss something in detail, please open a support ticket.

Slide to fit the puzzle