Back to the list
  • E-commerce
  • Web Development

ABA PayWay Integration for Shopify, WooCommerce or API

The 3 official ABA PayWay integrations for a Cambodian store: direct API, WooCommerce, Shopify. What each needs, saved cards, and refund sync.

Written byMaximilien Grolier · Founder & CEO
Published
Reading time
9 min
Hand holding a payment card beside an open laptop and a wallet on a desk
Contents · 10
  1. 01Key points
  2. 02What Are the Three Ways to Build an ABA PayWay Integration?
  3. 03How Does ABA PayWay's Direct API Work for a Custom Integration?
  4. 04What Does the WooCommerce Plugin Handle, and What Does It Leave to You?
  5. 05What Changed When ABA PayWay Became Cambodia's First Bank Gateway on Shopify?
  6. 06The Three Paths, Compared
  7. 07Should a Growing Cambodian Store Build Its Own Integration or Use a Plugin?
  8. 08Our Recommendation, and the Question ABA Hasn't Answered
  9. 09Frequently asked questions
  10. 10Keep reading

An ABA PayWay integration for an ecommerce site comes down to one of three builds: the direct Purchase API, the official WooCommerce plugin, or the official Shopify app. The checkout itself is the part least likely to go wrong. The wrong path shows up later: in a refund nobody can reconcile, in a card the integration cannot save, or in a go-live date that slips.

This guide covers what each path requires, where the documentation leaves gaps, and what changed when ABA PayWay reached Shopify in 2025. For the wider market, our guide to ecommerce in Cambodia covers the platforms and payment habits Cambodian shoppers already use.

Key points

  • ABA PayWay has three official paths, and only the direct Purchase API tokenizes cards, holds pre-authorizations and syncs refunds back to the store.
  • WooCommerce needs a sandbox account and ABA sales sign-off before going live, while Shopify tests in Test Mode inside the live store.
  • Neither plugin syncs refunds, so budget manual reconciliation: about 1.25 hours a month at 150 orders and a 4% return rate.

What Are the Three Ways to Build an ABA PayWay Integration?

An ABA PayWay integration for an ecommerce website can be built three ways: the direct Purchase API that a developer calls from the website's own backend, the official WooCommerce plugin for a WordPress store, or the official Shopify app installed straight from the Shopify App Store. All three route a buyer to the same payment methods, cards, ABA KHQR, WeChat Pay and Alipay among them, but they differ in who writes code, who needs a sandbox first, and what a store can do after the sale closes.

ABA PayWay is the payment gateway many Cambodian businesses reach for first, because ABA is one of the country's largest banks.

ABA PayWay app listing page on the Shopify App Store
The official ABA PayWay app listing on the Shopify App Store

How Does ABA PayWay's Direct API Work for a Custom Integration?

ABA PayWay's direct API, the Purchase endpoint, works by having the website's own backend assemble the transaction details, sign them, and send them to PayWay, which returns either a hosted checkout page, a popup, or a bottom sheet depending on the integration option chosen (ABA PayWay developer documentation). The request carries a UTC timestamp, a merchant ID of up to 30 characters, and a transaction ID of up to 20 characters that must be unique: PayWay rejects a duplicate outright, which matters for any retry logic a developer writes.

Every request is signed with a hash, a Base64-encoded HMAC-SHA512 of the concatenated fields using the merchant's API key, the same signature scheme that protects the callback PayWay sends back once a customer pays. Easy-to-miss constraints: amounts in Cambodian riel cannot carry decimals and must be above 100 KHR, a single transaction supports a maximum of 50 line items, and a checkout session defaults to a 30-day lifetime, configurable as low as 3 minutes for an impulse purchase. Pre-authorization, holding funds without capturing them immediately, only works through ABA Pay, KHQR, or cards, not through the wallet options.

That technical depth is also the entire reason a direct integration exists alongside two no-code alternatives: it is the only path that exposes pre-authorization and account-on-file card tokenization at all.

What Does the WooCommerce Plugin Handle, and What Does It Leave to You?

The WooCommerce plugin handles the Purchase API's hashing, redirect and callback logic automatically for a WordPress store, once a merchant registers for a sandbox account and enters a Merchant ID and API Key into the plugin's settings page (ABA PayWay WooCommerce integration guide). Installation is ordinary: search "ABA PayWay" in the WordPress plugin directory and activate it. ABA requires "the latest 3 versions" of both WordPress and WooCommerce, worth checking before a store on an older stack assumes the plugin will drop in.

Two limits shape the rollout. First, sandbox testing does not unlock production on its own: going live means contacting ABA's E-Merchant Acquisition team directly by email, and ABA states plainly that while "all payment methods are available for testing in sandbox mode," for live payments "only the options you've agreed upon with our sales team will be available" (ABA PayWay WooCommerce integration guide). Second, and this is the one most stores discover the hard way, a refund issued through the ABA Merchant Portal does not reflect back in the WooCommerce order record. The store still shows the order as paid in full until someone updates it by hand, so every refund becomes a two-system reconciliation task.

What Changed When ABA PayWay Became Cambodia's First Bank Gateway on Shopify?

ABA PayWay became the first bank-backed payment gateway officially available on the Shopify App Store in Cambodia, with the partnership announced on 21 October 2025 (B2B Asia News, October 2025). The app supports ABA KHQR, ABA Pay, Visa, Mastercard, WeChat Pay, UnionPay and JCB, with transactions settling directly into the merchant's ABA Bank account.

"This partnership is a game-changer for Cambodia's entrepreneurial community."
Zokhir Rasulov, Chief Digital Officer, ABA Bank (B2B Asia News, October 2025)

Onboarding differs from WooCommerce. A Shopify merchant connects an existing ABA Merchant Portal login, picks a business profile if they run more than one outlet, and can test transactions directly inside the live store through a Test Mode toggle, no separate sandbox account or API keys required. Refunds carry the same gap as WooCommerce: processed manually in the Merchant Portal, with no sync back to Shopify's order record. As of November 2026 the app carries a 4.6 out of 5 rating from only three reviews on the Shopify App Store, too small a sample to read as a verdict either way, but one reviewer's complaint is specific and telling: the online gateway "works flawlessly," they wrote, but the store still has no native integration for Shopify POS, forcing manual entry for any sale made in person. A Phnom Penh brand with a physical counter should plan for that gap now.

The Three Paths, Compared

Put side by side, the three paths do not differ much at checkout. They differ in what a store can do before and after the sale.

PathNeeds a developerNeeds a sandbox firstCard tokenization or pre-authRefunds sync automatically
Purchase API (direct)YesYesYes, account-on-file and card-on-file via the API, or an unofficial SDK like payway-jsYes, through the Refund Transaction call
WooCommerce pluginNo, install and configureYes, sandbox account before going liveNo, checkout onlyNo, manual in the Merchant Portal
Shopify appNo, install and connectNo, Test Mode runs inside the live storeNo, checkout onlyNo, manual in the Merchant Portal

The unofficial Node.js client payway-js packages the direct API's range, transactions, refunds, pre-authorization, account-on-file and card-on-file, plus payment links, into a few function calls (GitHub, seanghay/payway-js). Its own documentation is explicit that it is "not a product of ABA Bank," which is the right amount of caution: treat it as a faster starting point for a custom build, not a substitute for testing every edge case ABA's own API documents.

Should a Growing Cambodian Store Build Its Own Integration or Use a Plugin?

A growing Cambodian store should default to the WooCommerce or Shopify plugin until a specific feature, usually a saved card for repeat customers or a pre-authorized hold, genuinely requires the direct Purchase API. Most catalogue stores never need either.

Run the refund gap through real numbers. A Phnom Penh homeware brand on Shopify doing 150 orders a month at a typical 4% return rate sees about 6 refunds monthly. Each one is processed in the Merchant Portal, then checked by hand against Shopify's order list, which costs roughly 10 to 15 minutes of staff time (we use 12.5), over an hour a month that a direct integration's Refund Transaction call would close automatically. That alone does not justify an engineering project, but it scales with volume.

Monthly refund reconciliation time by order volume (4% return rate)
Chart: TechFlow Agency. Data: TechFlow calculation, 12.5 minutes per refund at a 4 percent return rate

The two worked examples in this section are our reasoning from ABA's documentation, not a client post-mortem.

A second scenario shows the same pattern from the WooCommerce side, before a single transaction even runs. A Siem Reap gift shop still on WordPress 6.1, with a theme last updated two years ago, would fail ABA's own compatibility rule on day one, since the plugin requires the latest three versions of both WordPress and WooCommerce. Catching that during the sandbox request costs an afternoon of updates and re-testing. Catching it the week ABA's sales team answers the go-live email costs a launch date.

A custom ecommerce build we ship out of Phnom Penh treats this as a volume and feature question, not a technical difficulty question: the Purchase API is not hard to implement, it is a cost center to maintain, since the store owns its webhook signature verification and every PayWay error code. A plugin trades that ownership for a sales-team gate on go-live. Both are reasonable. Picking blind is not.

Our Recommendation, and the Question ABA Hasn't Answered

Our recommendation: start with the official plugin for the platform already in use, Shopify's app or WooCommerce's, and only move to the direct Purchase API once a feature like saved cards, subscriptions, or pre-authorized deposits is actually on the roadmap, not hypothetically useful someday. Budget staff time for manual refund reconciliation on either plugin path from day one, since neither syncs automatically.

The open question is whether ABA will close the Shopify POS gap a merchant already flagged publicly: a store selling both online and at a physical counter in Phnom Penh currently has to run two separate reconciliation habits, one automatic, one manual, for the same ABA Bank account. Until that changes, a hybrid retailer should budget for it explicitly. If the project needs that gap scoped against a specific catalogue and order volume, a scoped estimate or a look at recent project work we have shipped is the next step.

Prefer to chat? Message our founder directly on Telegram (@maxgrolier), or book a call with the team.

Frequently asked questions

Do I need a developer to add ABA PayWay to my store?

Only for the direct Purchase API. The WooCommerce plugin and the Shopify app are both designed to be installed and configured without writing code, though a WooCommerce store will still need someone comfortable entering a Merchant ID and API Key and switching the sandbox toggle off before going live.

Can I test ABA PayWay without a live bank account?

Yes, on WooCommerce, through a separate sandbox account and sandbox API keys requested from ABA. On Shopify, there is no separate sandbox: the app's Test Mode runs test transactions directly inside the live store using the merchant's existing ABA Merchant Portal login.

Does ABA PayWay support recurring or subscription billing?

Only through the direct Purchase API's account-on-file and card-on-file features, which store a customer's payment method for future charges. Neither the WooCommerce plugin nor the Shopify app exposes that capability; both are built for one-off checkout.

Why doesn't a refund show up in my store after I process it with ABA?

Because refunds issued through the ABA Merchant Portal do not sync back to WooCommerce or Shopify automatically. The store's order record keeps showing the original payment until someone updates it by hand, on every path except a custom integration built against the Refund Transaction API call.

Is the unofficial payway-js library safe to use in production?

It is maintained outside ABA Bank, which its own repository states plainly. It is a reasonable starting point for a direct integration because it already wraps the full API surface, but a team adopting it should still test every transaction and error path against ABA's own documentation rather than trust the wrapper blindly, and should not expect ABA to guarantee compatibility with future API changes.

Keep reading

Need this built? We scope and build ecommerce payment integrations from Phnom Penh; see our development page for how that works.

Share

Written by

Maximilien Grolier

Founder & CEO

LinkedIn ↗

Have a project in mind?

Free · No commitment · 30 minutes