Description
This plugin adds three ifthenpay payment methods to SureCart checkout, each provisioned automatically as a SureCart Manual Payment Method the moment the plugin is activated: Multibanco, MB WAY, and ifthenpay Gateway (cards, Apple Pay, Google Pay, and any other method provisioned on your Gateway Key).
A single ifthenpay Backoffice Key connects everything — Multibanco and MB WAY are picked as named accounts already provisioned on it, and ifthenpay Gateway additionally uses a Gateway Key (and its enabled methods) chosen from that same Backoffice Key. There are no separate keys to hunt down.
Payment is triggered the instant the customer clicks Purchase, via a checkout-time modal that calls ifthenpay directly — with a confirmation-page fallback for stores where that isn’t available. Because Multibanco and MB WAY are paid asynchronously (sometimes hours after checkout), the order stays “awaiting payment” until ifthenpay’s server-to-server callback confirms it, at which point the plugin marks the SureCart checkout paid automatically — no manual action required.
In plain terms you get:
- Three ifthenpay payment methods, auto-provisioned in SureCart on activation
- One Backoffice Key powers all of them — no separate keys to collect
- Automatic, webhook-driven payment confirmation
- A live payment-status block on the customer’s own order page
- No card numbers stored on your website
All settings are configured directly in this plugin’s own settings screen (under SureCart’s admin menu) and your ifthenpay Backoffice. The plugin is designed so site owners can manage payments without requiring deep technical knowledge.
Key Features
- Three ifthenpay payment methods — Multibanco, MB WAY, and ifthenpay Gateway (cards, Apple Pay, Google Pay, and other methods provisioned on your Gateway Key) — auto-provisioned as SureCart Manual Payment Methods on activation.
- One Backoffice Key connects everything: pick named accounts for Multibanco/MB WAY, and a Gateway Key + methods for ifthenpay Gateway.
- Checkout-time payment modal — calls ifthenpay the instant “Purchase” is clicked, with a confirmation-page fallback for stores that don’t use the modal path.
- Automatic payment confirmation via secure server-to-server callbacks that mark the SureCart order paid; MB WAY payments are additionally re-checked actively, so a slow or missing callback doesn’t leave the customer stuck waiting.
- An “ifthenpay Payment Details” block for SureCart’s customer-dashboard order page — shows the customer their payment method and status, plus (while still pending) the Multibanco entity/reference or MB WAY confirmation status.
- Real ifthenpay brand icons for each payment method, fetched from ifthenpay’s own method catalog once your Backoffice Key is connected.
- Subscriptions are intentionally excluded: ifthenpay has no auto-renewal API, so these three methods are automatically hidden at checkout for any cart containing a recurring/subscription price — customers are never offered a payment method that can’t actually renew.
- An admin “ifthenpay Orders” log of every Multibanco/MB WAY/ifthenpay Gateway payment attempt (method, amount, state), linking straight to the resulting SureCart order once paid.
Requirements
- An active ifthenpay merchant account with a Backoffice Key — subscribe here to obtain your credentials.
- Multibanco/MB WAY/card-and-wallet accounts provisioned on that Backoffice Key (ifthenpay’s helpdesk can guide you).
- SureCart installed, active, and connected (its own API token configured) — this plugin creates its Manual Payment Methods through SureCart’s API.
- WordPress 6.5+ (tested up to 6.9), PHP 7.4+.
- HTTPS (SSL) enabled on your site, so ifthenpay’s callbacks can reach it.
External Services
This plugin integrates with the ifthenpay payment platform to process payments for SureCart submissions. ifthenpay is a third-party service that provides secure payment processing for cards, wallets, and local bank transfers.
SureCart
What it is and what it is used for: SureCart is the e-commerce checkout and order-management platform this plugin is built for. It provides the checkout flow, order records, and the Manual Payment Method framework that this plugin registers Multibanco, MB WAY, and ifthenpay Gateway into. The plugin reads SureCart order/checkout data to build ifthenpay payment requests, then writes the payment result back to the SureCart order once ifthenpay confirms it.
What data is sent and when:
- During checkout: Order ID, amount, and available customer details (email, name, billing data) are read from SureCart to initiate the ifthenpay payment.
- After payment: Payment status (paid/failed) and the ifthenpay Transaction ID are written back to the SureCart order.
ifthenpay Backoffice & Integrations
What it is and what it is used for: The ifthenpay Backoffice is the merchant dashboard used to manage integrations and payment configurations. The plugin uses the ifthenpay API to generate payment links and validate transactions.
What data is sent and when:
- During setup: Backoffice Key and Gateway Key for authentication and configuration retrieval.
- During payment processing: Transaction ID, amount, description, enabled payment method accounts, success/error/cancel return URLs, language, and optionally the selected payment method, customer email, customer name, and form field data.
- During callbacks: Payment status, Transaction ID, and payment method (received from ifthenpay).
Network & VPN Requirements: Outbound HTTPS requests are made to ifthenpay APIs for setup, link generation, and status validation. Servers behind strict firewalls or restrictive outbound VPNs must allowlist the following domains to prevent connection timeouts:
End-User License Agreement (EULA): EULA
Privacy Policy: Privacy Policy
All network requests are performed server-side over HTTPS. Sensitive credentials are stored securely and are not publicly exposed. No raw card or bank details are stored.
Support
For assistance use the WordPress.org support forum.
Pre-checks:
- Backoffice Key connected, and the method you’re testing enabled on the Settings tab
- Running current recommended versions of WordPress, PHP, and SureCart
Commercial helpdesk available (no direct email required): helpdesk.ifthenpay.com
- ifthenpay support: suporte@ifthenpay.com
- SureCart docs: SureCart docs
Screenshots




















Blocks
This plugin provides 1 block.
- ifthenpay Payment Details Shows the ifthenpay payment details (Multibanco entity/reference, MB WAY/ifthenpay Gateway status, etc.) for the order the customer is currently viewing on their single-order page.
Installation
- Install SureCart: install and activate SureCart, and connect your store (its own Settings API) if you haven’t already.
- Install this plugin: on activation, it creates three Manual Payment Methods in SureCart — Multibanco, MB WAY, and ifthenpay Gateway — automatically. If SureCart’s API token isn’t configured yet, this step is deferred and retried until it succeeds.
- Open the settings screen: go to
SureCart → ifthenpayin the WordPress admin (also linked from a row on SureCart’s ownSettings → Processorstab). - Connect your Backoffice Key: this single key powers every method below it.
- Multibanco / MB WAY: on each tab, pick which of your ifthenpay Backoffice’s named accounts to use — there’s nothing to type, just a dropdown (or a one-line confirmation if you only have one account).
- ifthenpay Gateway: pick a Gateway Key, then enable whichever card/wallet methods (Card, Apple Pay, Google Pay, etc.) are provisioned on it.
- Activate: on the Settings tab, turn on each method you’ve connected — a method can only be activated once it’s connected on its own tab.
- Test: make a low-value purchase for each method you enabled and confirm the order is marked Paid once ifthenpay’s callback arrives.
FAQ
-
Does this plugin require SureCart?
-
Yes. SureCart must be installed and active to use this plugin.
Without SureCart, the plugin has no forms to attach payments to and will show an admin notice.
-
Do I need a separate key for each payment method?
-
No. A single ifthenpay Backoffice Key connects all three methods — Multibanco and MB WAY are picked as named accounts already provisioned on it, and ifthenpay Gateway additionally uses a Gateway Key chosen from that same Backoffice Key.
-
Why don’t I see ifthenpay at checkout for a subscription product?
-
ifthenpay has no native way to automatically charge a stored payment method for future renewals, so this plugin intentionally hides its payment methods on any checkout containing a recurring price. Use Stripe, PayPal, or another SureCart-native recurring processor for subscriptions.
-
Does this plugin store card numbers?
-
No. Card payments go through ifthenpay’s own hosted ifthenpay Gateway page; this plugin never sees or stores card data.
-
Which payment methods are supported?
-
Any ifthenpay method attached to your Gateway Key, including:
ifthenpay Gateway (Pay By Link):
- Multibanco
- MB WAY
- Payshop
- Credit Card
- Google Pay
- Apple Pay
- Pix
Separated single methods:
- MBWAY
- Multibanco
-
What confirms a Multibanco or MB WAY payment?
-
ifthenpay calls a webhook registered against your Backoffice Key’s accounts once the payment is received. The plugin validates that callback and marks the SureCart checkout paid — no polling from the customer’s side is required, though MB WAY is additionally re-checked directly so a slow or missing webhook doesn’t leave the customer stuck on a “waiting” screen.
-
Where can the customer see their payment status?
-
On their own SureCart order page (customer-dashboard Orders an order), via the “ifthenpay Payment Details” block — it shows the method used, its icon, and whether it’s still pending, paid, or didn’t complete.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“ifthenpay | Payments for SureCart” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “ifthenpay | Payments for SureCart” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release: Multibanco, MB WAY, and ifthenpay Gateway support for SureCart one-time checkouts.
