Description
PortPos (formerly PortWallet) adds PortPos as a payment method at WooCommerce checkout. Customers pay on the secure PortPos hosted payment page and are sent back to your store when they finish. Card and mobile banking details are entered on PortPos, never on your site.
The plugin checks every payment with PortPos before it marks an order as paid. Orders are still updated if a customer closes the browser before returning to your store.
Features
- Cards, mobile banking and internet banking through one PortPos checkout
- EMI (installment) payments, limited to the tenures you choose
- Separate Sandbox and Live credentials, with a simple switch between them
- Works with both the Checkout block and the classic shortcode checkout
- Compatible with WooCommerce High-Performance Order Storage (HPOS)
- Payments are verified server-side with PortPos; the redirect status is never trusted
- Shows Bangladeshi Taka (BDT) prices with the “Tk.” symbol instead of “৳”
How it works
- The customer chooses PortPos at checkout, and can switch on “Avail EMI” if you offer it.
- The plugin creates a PortPos invoice and sends the customer to the PortPos payment page.
- After payment, PortPos notifies your store (IPN) and redirects the customer back.
- Whichever arrives first, the plugin confirms the payment with PortPos and updates the order.
External services
This plugin connects to the PortPos payment gateway, a service provided by Portonics Limited, to take payments. The plugin cannot work without it. Nothing is sent until PortPos is enabled with API keys and a customer chooses PortPos at checkout.
PortPos payment API (https://api.portpos.com, or https://api-sandbox.portpos.com when the Sandbox environment is selected)
- When a customer places an order with PortPos, the plugin creates a payment invoice. It sends: the order total, currency, order ID and order number; the names and quantities of the ordered items; the customer’s billing name, email address, phone number and billing address; whether the customer chose EMI and the allowed EMI tenures; and your store’s payment notification (IPN) and return URLs. If a required billing value is missing or not accepted by PortPos, a placeholder is sent instead. A missing or invalid email address is replaced with your site’s admin email address, so PortPos receipts for those orders go to you.
- When PortPos notifies your store that a payment was accepted, and when the customer returns from PortPos, the plugin sends the invoice ID and amount to PortPos to confirm the payment status.
- Every request is authenticated with your PortPos application key and a time-based signature made from your secret key. The secret key itself is never sent. Requests also include the plugin and WordPress version numbers in the User-Agent header.
PortPos hosted payment page (https://payment.portpos.com, or https://ppv2.portpos.com in Sandbox)
- The customer is redirected here to pay. Card, mobile banking and other payment details are entered on PortPos, not on your store.
See the PortPos Terms & Conditions and Privacy Policy.
Installation
- In your WordPress admin, go to Plugins → Add New Plugin, search for “PortPos for WooCommerce”, then click Install Now and Activate. WooCommerce must be installed and active.
- Go to WooCommerce → Settings → Payments → PortPos.
- Tick “Enable PortPos”. PortPos does not appear at checkout until this is on and keys are saved for the selected environment.
- Enter your Application Key and Application Secret for each environment you use. You can find them in the PortPos merchant panel: sandbox or live.
- Optional: enable EMI for an environment and enter the tenures you want to offer, in months, separated by commas (for example
3,6,12). Enter0to offer every tenure on your PortPos account. - Save your changes and place a test order with the Environment set to Sandbox (see “How do I test payments?” below).
- When you are ready to accept real payments, set the Environment to Live and save.
FAQ
Do I need to set the IPN URL in PortPos?
No. The plugin sends the IPN URL with every invoice automatically.
How do I test payments?
Tick “Enable PortPos”, set the Environment to Sandbox and enter your sandbox keys. A “Sandbox” badge appears next to PortPos at checkout, and no real money is charged.
Test on a staging site, or while your store is closed. While Sandbox is selected, any shopper can choose PortPos and complete a test payment, and the order becomes Processing as if it were paid. Orders paid in Sandbox get an order note saying no real money was received, so check for it before fulfilling.
You can switch between Sandbox and Live at any time. Each order is verified in the environment it was created in, as long as that environment’s keys stay saved. If a Sandbox invoice is paid after you switch to Live, the order is put on hold with a note instead of being marked as paid.
What happens if the customer leaves the PortPos page without paying?
If PortPos reports that the payment failed or was cancelled, the order is cancelled. If the payment is not confirmed yet, the customer is sent back to the order payment page with a notice, and the order is updated as soon as PortPos confirms the payment.
What happens if the customer closes the browser before returning to my store?
The order is still updated. PortPos sends a payment notification (IPN) to your store, and the plugin confirms it with PortPos before marking the order as paid.
Why is an order “On hold” with a PortPos note?
PortPos accepted the payment, but it did not match the order. This happens when the paid amount or currency differs from the order total, when the order was edited after checkout, or when PortPos did not report an amount (the note then shows “?”). Check the payment in your PortPos merchant panel before you fulfil the order.
Can I refund from WooCommerce?
No. The plugin does not send refunds to PortPos. Process the refund through PortPos, then record a manual refund on the order in WooCommerce.
Does it work with the Block Checkout?
Yes. PortPos appears in the Checkout block and in the classic [woocommerce_checkout] shortcode checkout. Like other redirect payment methods, it is not shown in the Cart block.
How does EMI work?
When EMI is enabled for the active environment, customers see an “Avail EMI” switch under PortPos at checkout. If they switch it on, the PortPos invoice is created with EMI enabled and limited to the tenures you configured.
Why did my store’s Taka symbol change?
While this plugin is active, Bangladeshi Taka (BDT) prices are shown with “Tk.” instead of “৳” across the whole store, even if PortPos is not enabled.
What is removed when I delete the plugin?
Deleting PortPos for WooCommerce from the Plugins screen removes its settings, including your application keys and secrets. Your orders and their PortPos payment details are kept. Deactivating the plugin removes nothing.
I used the old PortWallet plugin. What changes?
PortPos for WooCommerce is a separate plugin that replaces the PortWallet plugin. It adds a new payment method with the ID portpos, so your old settings are not carried over: enter your keys again. Install it alongside the PortWallet plugin, keep the old plugin active until every order still awaiting a PortWallet payment has settled, then deactivate it.
Screenshots




Changelog
3.0.1
- Fixed: when the old PortWallet plugin was still active, the “Payment via PortPos” order note showed the PortPos invoice ID twice.
3.0.0
- First release as PortPos for WooCommerce, replacing the PortWallet plugin. Changes compared with the PortWallet plugin:
- New: PortPos API v2 for invoice creation and IPN validation, including EMI.
- New: Block Checkout support.
- New: HPOS-compatible order storage.
- New: refreshed checkout and settings screens.
- New: deleting the plugin removes its settings, including your PortPos keys. Orders are kept.
- Improved: customer returns are verified with PortPos instead of trusting the redirect status.
- Improved: each payment is verified in the environment (Sandbox or Live) it was created in.
- Improved: rewritten as object-oriented code.
- Fixed: order emails were sent twice when a customer returned from PortPos.
- Fixed: billing city, state and postcode were not sent correctly.
