therius-pay/therius-plugin-magento
Requirements
- Magento 2 (Open Source or Commerce), command-line access to run
bin/magento - A Therius account with API keys and a checkout configuration
Install
- Composer (path repository)
- Copy into app/code
-
Place the
therius-plugin-magentofolder where Composer can reach it, and add a path repository to your project’scomposer.json: -
composer require therius/module-payment:* -
Enable and build:
Re-run
bin/magento setup:static-content:deploy and cache:flush after any change to the module’s front-end assets, or the browser blocks the JavaScript on an integrity-hash mismatch.Configure
Webhooks
-
In the Therius Dashboard, go to Developers → Webhooks and add an endpoint pointing at:
Create one endpoint in Sandbox mode and one in Production mode if you use both.
-
Subscribe to at least:
payment.captured,payment.refused,payment.refunded,payment.cancelled,payment.chargeback. - Copy each environment’s signing secret into the module’s Test Webhook Signing Secret / Live Webhook Signing Secret field.
Refunds
Create a credit memo from Sales → Orders → (order) → Credit Memo. The module calls Therius and adds a comment to the order history; the order reflects the refund once thepayment.refunded webhook confirms it.
