Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/kasparek-net/payment-matcher-for-fio-bank/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Marks WooCommerce bank-transfer orders as paid automatically using the Fio banka API. See readme.txt for the full feature list.
Development
- Unit tests (no WordPress needed):
php tests/harness.php - Translations:
wp i18n make-pot . languages/payment-matcher-for-fio-bank.pot, thenpython3 languages/build-cs.py && python3 languages/build-sk.py(add new strings to their dictionaries) and runwp i18n make-mo languages && wp i18n make-php languages. tests/is not part of the release ZIP.
How it works
- Every 15 minutes (Action Scheduler or the server cron address) the plugin downloads movements for the last N days of every connected account (one token per account) from
https://fioapi.fio.cz/v1/rest/periods/{token}/{from}/{to}/transactions.json. - Each incoming movement is stored once (by Fio movement ID) in
{prefix}pmfio_movements. - The variable symbol (or a number in the message) is matched to the order number.
- Amount and currency are checked. Partial payments add up.
License: GPLv2 or later.