Linux 软件免费装
Banner图

BlinkPay NZ for WooCommerce

开发者 reybabilonia
更新时间 2026年9月7日 17:47
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: MIT
版权网址: 版权信息

标签

woocommerce payment gateway new zealand bank payments open banking

下载

1.1.1

详情介绍:

BlinkPay NZ for WooCommerce lets your customers pay directly from their New Zealand bank account using BlinkPay open banking. Customers are sent to BlinkPay's hosted gateway, choose their bank — or card, when card payments are enabled for your BlinkPay merchant account — and authorise the payment. Card is where BlinkPay surcharging applies; see the Surcharges section below. Both the classic and block-based checkout are supported, as is high-performance order storage (HPOS). How payments work
  1. At checkout the plugin creates a quick payment and redirects the customer to BlinkPay's hosted gateway.
  2. The customer picks their bank and authorises the payment.
  3. Back on your site, the plugin confirms the outcome through the BlinkPay API. A completed payment marks the order Processing/Completed; a rejected consent or payment marks it Failed.
  4. Anything still in flight parks the order On hold and WP-Cron re-checks it — every minute at first, backing off to every 2 hours — for up to 36 hours, so a payment that settles overnight completes automatically.
The return redirect alone is never treated as proof of payment — the outcome is always confirmed through the API. Refunds How the customer paid decides how a refund works. A card payment is refunded through the card network: the plugin requests a full or partial refund and BlinkPay moves the money back — the order notes record the refund's status, and a refund still processing should be verified in the BlinkPay merchant portal. A bank payment is refunded with BlinkPay's account-number refund, which does not move money: the bank account the customer paid from is shown in the BlinkPay manual refunds panel on the order screen so you can transfer the refund from your own bank — the panel fetches the number live from BlinkPay each time it renders, so it is never stored in WordPress — and a customer-visible note says the refund will arrive by bank transfer. WooCommerce's own Refund manually button is hidden on BlinkPay orders — it would record money as returned without BlinkPay involvement — so every refund goes through Refund via BlinkPay. That button is only offered when your BlinkPay credentials include the refund permissions (create:refund and view:refund); contact BlinkPay if you need them enabled. Surcharges If surcharging is enabled for your BlinkPay merchant account, BlinkPay adds the surcharge on top of the order total once the customer selects a payment method on the hosted gateway, and the customer sees and authorises the combined amount there. WooCommerce still records the order total as paid; the amount actually charged and the surcharge are recorded on the order as a note and as metadata for reconciliation. The plugin also verifies the paid amount against the order total before completing an order — an order paid for the wrong amount, in either direction, is placed on hold for you to review rather than completed silently. Requirements External service This plugin connects to the BlinkPay Debit API, a third-party service operated by BlinkPay Limited, to create payments, confirm their outcome and retrieve refund details. Depending on the Sandbox mode setting, requests are sent to https://sandbox.debit.blinkpay.co.nz or https://debit.blinkpay.co.nz. Order amounts, the order number and order ID, your configured bank statement particulars and a SHA-256-hashed customer identifier — the WooCommerce customer ID for registered customers, otherwise the billing email address — are sent to BlinkPay so payments can be attributed to a customer. Hashing keeps the raw value out of the request, but it is not anonymisation: a hash of a known email address can be matched back to that address. Customers complete payment on BlinkPay's hosted gateway. Use of the service is governed by BlinkPay's terms of use and privacy policy. Security

安装:

  1. In WordPress admin, go to Plugins → Add New, search for "BlinkPay NZ for WooCommerce", then install and activate it.
  2. Go to WooCommerce → Settings → Payments → BlinkPay.
  3. Enter your client ID and client secret, leave Sandbox mode ticked, and enable the gateway.
  4. Copy the Callback URL shown in the settings and register it in the BlinkPay client portal under Settings → API for the sandbox environment. Redirect URIs must be whitelisted before payments can be created, and each environment keeps its own whitelist.
  5. Place a test order. Sandbox payments never move real money.
  6. When you are ready to go live, replace the credentials with your production pair, untick Sandbox mode, and register the callback URL for the production environment.
To keep the client secret out of the database, add the following to wp-config.php instead of saving credentials in the settings screen: define( 'BLINKPAY_CLIENT_ID', 'your-client-id' ); define( 'BLINKPAY_CLIENT_SECRET', 'your-client-secret' );

升级注意事项:

1.1.1 Now distributed through the WordPress.org plugin directory; future updates arrive through the WordPress updater. 1.1.0 Safer payment confirmation: API-confirmed outcomes, duplicate-completion protection, paid-amount verification, surcharge recording, smarter refunds and clearer failure notes. 1.0.3 Plugin renamed to BlinkPay NZ for WooCommerce. 1.0.0 Initial release.

常见问题:

The gateway does not appear at checkout

Check that the store currency is NZD and that both credentials are set.

Every payment fails with "We could not start your BlinkPay payment"

The most likely cause is that this site's callback URL is not whitelisted for your merchant account. Copy the Callback URL from the gateway settings and register it in the BlinkPay client portal under Settings → API for the environment you are using — sandbox and production each keep their own whitelist. The notes on the failed order name the exact error.

Orders stay on hold

Bank settlement is asynchronous, and a payment made in the evening may not settle until the following morning. WP-Cron re-checks the payment — every minute at first, backing off to every 2 hours — for up to 36 hours, and the order moves to Processing automatically once the payment settles. If your host disables WP-Cron, trigger wp-cron.php from a real cron job. Only if the checks are exhausted after 36 hours should you verify the payment in the BlinkPay merchant portal and update the order manually.

Does a WooCommerce refund send money back to the customer?

For card payments, yes: the plugin requests a full or partial refund and BlinkPay moves the money back through the card network. For bank payments, no: the customer's bank account number is shown in the BlinkPay manual refunds panel on the order screen so you can make the transfer from your own bank — the order note says so explicitly, and the customer is told to expect a bank transfer.

Which currencies are supported?

New Zealand dollars only.

How do I see what the plugin is doing?

Enable Debug logging in the gateway settings, then read WooCommerce → Status → Logs (source blinkpay).

Can developers customise the integration?

Yes. The wc_blinkpay_quick_payment_payload filter modifies the quick payment request body and wc_blinkpay_icon filters the checkout icon URL. Source code and issues are on GitHub.

更新日志:

1.1.1 1.1.0 1.0.4 1.0.3 1.0.0