A new store in Sri Lanka stalls at the same question: which Shopify payment gateways can actually take a local payment? Shopify Payments is not on Shopify’s country list for Sri Lanka, so the checkout has to use a local gateway. In 2026 the three names merchants compare first are PayHere, WebXPay and DirectPay (also searched as Direct Pay).
There is no single best gateway for every store. Cards, instalments, your bank and whether that provider still offers a Shopify path decide it. XLOXI PVT LTD connects the one your account is allowed to use, then tests a real order before launch. This guide is the comparison. The setup itself is on our Shopify payment gateway Sri Lanka page.
What “best” means for a Sri Lankan Shopify store
Judge a gateway on four things, not on a slogan.
- Customers can pay the way they already pay. Local cards and bank methods for domestic orders. Instalments only if Mintpay or Koko is also in scope.
- Shopify still lists a path. An official app, a documented plugin, or a current third-party app. If admin does not offer it, we do not invent a workaround.
- Your merchant account is approved. Business registration, a bank account and the gateway’s own KYC come before any app install.
- Fees are the provider’s current fees. Rates, monthly charges and settlement times change. Read PayHere, WebXPay and DirectPay’s own pages before you pick a plan. We do not reprint numbers that will be wrong next month.
PayHere vs WebXPay vs DirectPay
PayHere
PayHere is the gateway most Sri Lankan Shopify merchants ask about first. It is built for local cards, wallets and bank payments, with LKR settlement to a Sri Lankan bank account. PayHere publishes a Shopify Payment App: install it, enter the Merchant ID and Merchant Secret from the PayHere Integrations section, choose sandbox or live, save, then activate.
Choose PayHere when your PayHere merchant account is approved and Shopify admin shows that app. Start on PayHere’s fee page for the current plan limits, then test a small order. Official steps: PayHere Shopify plugin. Current prices: PayHere fees.
WebXPay
WebXPay (also written Webxpay) is the other local card gateway stores compare with PayHere. It documents a Shopify payment plugin: install the provider, add the account keys in Shopify admin, use test mode, then switch to live after a successful test payment. Settlement currency and the monthly plan are on WebXPay’s pricing page, not in a developer’s quote.
Choose WebXPay when the business already has a WebXPay merchant account, or when PayHere is not the account your bank set up. Confirm the plugin is still the path WebXPay supports for your store before you share keys. Pricing: WebXPay pricing.
DirectPay
DirectPay, which people also search as Direct Pay, is a Sri Lankan internet payment gateway aimed at local online payments. Shopify stores usually connect it through a payment app that asks for DirectPay API credentials, rather than through a PayHere-style first-party walkthrough. That app can change, and some listings are sold by a third party. Confirm the app still in the Shopify App Store, and confirm your DirectPay merchant account, before you pay for a licence or paste API keys.
Choose DirectPay when that is the merchant account you already hold and the Shopify app for it is available on your store. If the app is missing, stop and ask DirectPay which integration they support now. Do not paste API secrets into email or chat.
How to integrate PayHere with Shopify
This is the public PayHere path. Do it only after the PayHere account is approved.
- In Shopify admin, open the PayHere Payment App install and add the app to the store.
- Copy the Merchant ID and Merchant Secret from PayHere → Integrations. Put them only in the app settings.
- Leave sandbox mode on until a test checkout succeeds. Then turn sandbox off for live payments.
- Activate PayHere as a payment method and place a small live order on a phone.
- Check that the order in Shopify admin shows the payment status you expect, with shipping and tax included.
XLOXI does this configuration and the test order with you. We do not store the secret in tickets, theme files or this article. If Shopify does not list PayHere for your plan or country settings, the work stops there.
WebXPay Shopify integration
A WebXPay Shopify integration follows the same idea as PayHere, with WebXPay’s own keys and test mode.
- Confirm the WebXPay merchant account and that their current Shopify plugin is the one they want you to use.
- Install that provider from Shopify admin. Enter keys only on the payment settings screen.
- Run a test-mode checkout, including a Colombo address and an outstation address if you ship both.
- Switch to live, take one small real payment, and confirm the order landed in Shopify.
WebXPay and PayHere can both be discussed. Most stores launch with one card gateway first. Adding a second processor on day one is extra testing, not a better homepage.
How to accept online payments on Shopify in Sri Lanka
To accept online payments on Shopify in Sri Lanka, the store needs four things working together. A gateway app alone is not a launch.
- A local gateway the account can use. PayHere, WebXPay or DirectPay for cards. Mintpay or Koko only if you also want instalments and that provider approves the store.
- LKR prices where your Shopify market is set for Sri Lanka.
- Shipping and tax that match the total the customer pays. A payment that succeeds with the wrong delivery rate still creates refunds.
- A tested order in the mode you will use for real customers. Sandbox success is not a live launch.
Manual methods such as bank transfer or cash on delivery are separate from the card gateway. They are useful, and they are not a substitute for a tested card or wallet payment if that is what your customers expect.
Export stores often add an international processor beside the local one. That is a second setup, scoped after the Sri Lankan checkout works.
What to send when you want this done
XLOXI is an official Shopify Partner in Sri Lanka. We integrate PayHere and local payment gateways with Shopify, including WebXPay, DirectPay, Mintpay and Koko when your merchant account and Shopify both allow that provider.
For a quote, send the store URL or say the store is new, which gateway account you already have, and whether you sell only in Sri Lanka. We confirm eligibility first, then connect and test. Start from the payment gateway service page or request a quote. Store launch around the payment setup is on Shopify store setup Sri Lanka.
Questions we hear
How do I integrate PayHere with Shopify?
Install PayHere’s Shopify Payment App, enter the Merchant ID and Merchant Secret from your PayHere Integrations section, test in sandbox, then activate live and place one small order. XLOXI does that setup when your PayHere account and Shopify plan allow the app.
Does WebXPay work with Shopify in Sri Lanka?
Yes, when WebXPay’s current Shopify plugin is available for your merchant account. Install it in Shopify admin, use test mode, then confirm a live order returns to Shopify before you announce the store.
Can I accept online payments on Shopify in Sri Lanka?
Yes. Shopify Payments is not available for Sri Lanka, so you use a local gateway such as PayHere, WebXPay or DirectPay. The store can take online payments after that gateway is approved, connected and tested.
Is DirectPay the same as Direct Pay?
Yes. Direct Pay is the way many people search for DirectPay, the Sri Lankan payment gateway. On Shopify it is connected through a payment app that uses your DirectPay credentials, after you confirm that app is still offered.
Which Shopify payment gateway should a new Sri Lankan store use?
Start with the local card gateway you can actually get approved for, usually PayHere or WebXPay. Add DirectPay, Mintpay or Koko only when that account exists. XLOXI confirms the path in Shopify admin before any credentials are entered.
