Take Multibanco references, MB WAY, Payshop and card payments through ifthenpay on CS-Cart and Multi-Vendor, confirmed by the ifthenpay callback.
Tested on 2 buildsUpdated Nov 25, 2026Version 1.0.0CS-Cart, Multi-Vendor 4.17.2 – 4.22.x No core file edits
Built for
ifthenpay Payments: overview1 of 10
What it does
For stores that sell to customers in Portugal and have an ifthenpay contract. ifthenpay is a Portuguese payment gateway that issues Multibanco and Payshop references, MB WAY requests and card payments. The add-on adds each of these as a CS-Cart payment method and keeps the order in step with the payment. You need your own ifthenpay keys; ifthenpay is an independent service, not part of this add-on. Prices are charged in euros.
How it works
Enter your ifthenpay keys in test mode, test the connection and activate the callbacks in one click (or send the shown URLs to ifthenpay). Add the Multibanco, MB WAY, Payshop and card payment methods. The shopper places the order and gets a reference to pay at an ATM, home banking or a Payshop agent, approves MB WAY on the phone within 4 minutes, or pays on the card page. ifthenpay confirms the payment and the order moves to your paid status.
Features
Multibanco dynamic references with entity, reference, amount and pay-by date (same day up to 730 days, or no expiry)
Payshop references with an optional pay-by date
MB WAY with a phone field at checkout and a waiting page that continues by itself
Card payments on the ifthenpay page with a signed return
Reference on the order page, in the customer's account and in the order e-mail
Callback checked with your anti-phishing key, the identifiers and the amount; one-click callback activation
Lost callbacks read back from ifthenpay; references expire with grace days you choose
Full and partial refunds of MB WAY and card payments, safe against double clicks and lost answers
Keys stored encrypted, sandbox test mode, connection test, job queue and a log without personal data
Euro amounts converted with your store's own EUR rate when your main currency is not the euro
Multi-Vendor: one marketplace contract (one reference for a cart with several vendors) or one per vendor
Payment records are kept when the add-on is uninstalled, unless you choose to delete them
What you get
Package
kv_ifthenpay_payments-1.0.0.zip, installed through Add-ons → Manage add-ons
Updates & support
12 months included. Download new versions from your account and install them in Add-ons → Manage add-ons or the Upgrade Center.
License
1 production installation. Staging, dev and localhost are free and unlimited. The add-on keeps working after the update period ends. How licensing works
For developers
Uses 8 CS-Cart PHP hooks. No core files are changed.
Compatibility
We list only the builds we install and test on. “Tested” means the full test plan was run on that build; “Supported” means the build is inside the supported range and uses the same hooks.
CS-Cart version and edition compatibility
CS-Cart version
CS-Cart
CS-Cart Ultimate
Multi-Vendor
Multi-Vendor Ultimate
4.22 and later
Testing next
Testing next
Testing next
Testing next
4.21.2
Supported
Supported
Supported
Supported
4.20.x
Supported
Supported
Supported
Supported
4.19.x
Supported
Supported
Supported
Supported
4.18.x
Supported
Supported
Supported
Supported
4.17.2
Supported
Supported
Supported
Supported
Before 4.17.2
Not supported
Not supported
Not supported
Not supported
Requirements
Core changes
None. Hooks and template overrides only
1.0.0
Nov 25, 2026
Latest
Added 10
Four ifthenpay payment methods, each its own CS-Cart processor: Multibanco (dynamic references: entity, reference, amount, pay-by date from the same day up to 730 days or no expiry), MB WAY (phone number at checkout, request sent to the MB WAY app, waiting page with a 4-minute timer that continues by itself), Payshop (13-digit reference with an optional pay-by date) and credit card (ifthenpay card page, signed return).
The Multibanco / Payshop reference is shown on the order complete page, on the customer's order page and at the top of the customer's order e-mails; the order waits in a pending status you choose (default Open).
Payment confirmation by the ifthenpay callback, checked with the account's anti-phishing key (constant-time), the order id, the request id / entity / reference and the amount; wrong key, unknown payment and mismatches are refused, a repeated callback changes nothing. MB WAY notifications are verified with the documented HMAC-SHA256 signature and the status is read back.
Lost callbacks are covered by a spaced-out read-back (Multibanco reference list, MB WAY status, payment list with the BACKOFFICE KEY); unpaid references expire after their date plus grace days (read back once more first) and move the order to the status you choose; a payment that still arrives later books the order.
A paid amount that differs from the payment request, a second paid attempt and an order edited while the payment was pending are flagged and never move the order; pending statuses are never cancelled; the MB WAY / card return while the payment is pending empties the cart (saved cart rows too). Callback, return, poll, cron and the admin button run under one per-payment lock.
Refunds of MB WAY and card payments (full or partial) from the order page or at a chosen order status (BACKOFFICE KEY); the refund row is stored before the call, a lost answer is never re-sent automatically (the admin confirms or drops it after checking the ifthenpay backoffice), a double click refunds once.
Euro only, as ifthenpay charges: stores with another main currency convert with their own EUR rate; without EUR the methods are hidden.
Connection page with the method keys and the BACKOFFICE KEY stored encrypted, test mode on the documented sandbox endpoints, a connection test on side-effect free endpoints, the anti-phishing key and one-click callback activation; job queue with retries and a log with keys and personal data masked.
Multi-Vendor: marketplace owner mode (a cart with several vendors gets one reference on the parent order; child orders refund their share; vendors cannot refund, re-read or touch the queue: the endpoints refuse, not only the buttons) and per-vendor accounts. Retention-safe uninstall (payment records, references and the connection are kept unless you tick the purge setting), licence client (fails closed) and Upgrade Synchronizer.
Built against the official ifthenpay API documentation and tested against a mock of it; not tested with a live ifthenpay account.
Which payment methods are included?
Multibanco (dynamic references), MB WAY, Payshop and card payments through ifthenpay. Each one is a separate payment method in CS-Cart; offer the ones your ifthenpay contract includes.
Does my store need euros?
ifthenpay charges in euros only. If EUR is your primary currency, nothing to do. Otherwise add EUR as a currency with a correct rate: the order total is converted with your store's EUR rate. Without EUR the ifthenpay methods are hidden at checkout.
How does the store know a Multibanco reference was paid?
ifthenpay calls your store (callback) with your anti-phishing key, the reference and the amount. The add-on also reads pending references back from ifthenpay on a schedule, so a lost callback does not leave an order unpaid.
What happens when a reference expires?
After the pay-by date plus the grace days, the add-on reads the reference back once more. If it is still unpaid, the order gets the status you chose (default: Canceled; "-" leaves the order alone). If the customer pays later anyway, the order is marked paid.
Can I refund from CS-Cart?
MB WAY and card payments: yes, full or partial, with the BACKOFFICE KEY. Multibanco and Payshop: ifthenpay offers no refund for them; refund the customer by bank transfer.
Is there a test mode?
Yes. Test mode uses the documented ifthenpay sandbox endpoints for Multibanco, Payshop and cards. ifthenpay documents no sandbox for MB WAY: in test mode MB WAY requests still go to the real phone number.
Does it work with CS-Cart and Multi-Vendor?
Yes, all editions: CS-Cart, CS-Cart Ultimate, Multi-Vendor and Multi-Vendor Ultimate. In Multi-Vendor the marketplace owner uses one ifthenpay contract for everyone (a cart with several vendors is paid once on the parent order) or lets each vendor connect their own.
Which CS-Cart versions are supported?
4.17.2 to 4.22.x.
Where are my keys stored?
In your own database, encrypted. The encryption key is derived from your store's secret in config.php, so a database dump alone does not reveal them. They are never shown again after saving.
Does it send data to Kavio Labs?
No. The add-on talks to ifthenpay only. The licence check sends your domain name to the Kavio Labs licence server once a day.
What happens when ifthenpay is down?
The customer sees "this payment method is not available right now" and can choose another method. Read-backs and refunds in the queue are retried automatically (5 minutes up to 12 hours). A refund whose answer was lost is never sent twice: you confirm it after checking your ifthenpay backoffice.
What happens when the licence expires?
The ifthenpay methods are hidden from new orders. Callbacks, read-backs, expiry and refunds of payments already under way still run.
How do I get updates?
Install the new package over the old one. See Installation.