Linux 软件免费装
Banner图

ifthenpay | Payments for SureCart

开发者 ifthenpay
更新时间 2026年8月19日 18:38
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv3
版权网址: 版权信息

标签

payments multibanco mbway ifthenpay surecart

下载

1.0.0

详情介绍:

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: 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
  1. 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.
  2. One Backoffice Key connects everything: pick named accounts for Multibanco/MB WAY, and a Gateway Key + methods for ifthenpay Gateway.
  3. 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.
  4. 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.
  5. 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.
  6. Real ifthenpay brand icons for each payment method, fetched from ifthenpay's own method catalog once your Backoffice Key is connected.
  7. 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.
  8. 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

安装:

  1. Install SureCart: install and activate SureCart, and connect your store (its own Settings → API) if you haven't already.
  2. 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.
  3. Open the settings screen: go to SureCart → ifthenpay in the WordPress admin (also linked from a row on SureCart's own Settings → Processors tab).
  4. Connect your Backoffice Key: this single key powers every method below it.
  5. 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).
  6. ifthenpay Gateway: pick a Gateway Key, then enable whichever card/wallet methods (Card, Apple Pay, Google Pay, etc.) are provisioned on it.
  7. 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.
  8. Test: make a low-value purchase for each method you enabled and confirm the order is marked Paid once ifthenpay's callback arrives.

屏幕截图:

  • (Admin Only) Settings tab — Backoffice Key connected, payment methods list
  • (Admin Only) ifthenpay Gateway tab — Gateway Key selector and payment-methods table
  • (Admin Only) ifthenpay Gateway tab — default payment method and hosted-page settings
  • (Admin Only) MB WAY tab — account selection
  • (Admin Only) Multibanco tab — account selection and expiry days
  • (Admin Only) Settings tab — activating connected payment methods
  • (Admin Only) SureCart → Settings → Payment Processors — Manual Payment Methods created automatically
  • (Admin Only) SureCart Dashboard — revenue and orders overview
  • (Admin Only) Customer Dashboard editor — adding the "ifthenpay Payment Details" block
  • (Customers Experience) Checkout — ifthenpay payment options
  • (Customers Experience) Payment Window — choose how to pay
  • (Customers Experience) MB WAY — enter phone number
  • (Customers Experience) MB WAY — approve payment on your phone
  • (Customers Experience) Multibanco — payment details (Entity/Reference)
  • (Customers Experience) Payment confirmation — Thank you
  • (Admin Only) ifthenpay Orders — payment entries log
  • (Customers Experience) Customer Area — order history
  • (Customers Experience) Single order page — "ifthenpay Payment Details" block (MB WAY paid)
  • (Customers Experience) Single order page — "ifthenpay Payment Details" block (Multibanco pending)

升级注意事项:

1.0.0 Initial release.

常见问题:

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.

更新日志:

1.0.0