To accept card payments on a website in Sri Lanka you need a payment gateway: a service that takes the customer's card details securely, gets the payment approved and pays the money into your bank account. Common choices are local gateways such as PayHere and Onepay and gateways from Sri Lankan banks. Most local stores offer card payments alongside cash on delivery.
Taking money online is the step that turns a website into a shop. It is also the step most people underestimate: gateways need approval, charge fees on every sale and shape how smooth your checkout feels. Here is how it all works, without the jargon.
How an online card payment works
- The customer clicks "Pay" on your checkout.
- They are taken to, or shown, the gateway's secure payment form and enter their card or wallet details.
- The gateway sends the request to the card network and the customer's bank, which approves or declines it, often with a one-time password for extra security.
- The gateway tells your website the result, and your store marks the order as paid.
- The money, minus the gateway's fee, is settled into your bank account on a schedule.
The key point: your website should never store card numbers. A properly integrated gateway keeps card data on its own certified systems, which is what the PCI DSS security standard requires.
Your main options in Sri Lanka
| Option | What it is | Good for | Watch for |
|---|---|---|---|
| Local payment gateways (e.g. PayHere, Onepay) | Sri Lankan providers built for online merchants | Most small and medium online stores | Per-transaction fees, settlement times, supported wallets |
| Other local gateways (e.g. WebXPay, DirectPay, Genie) | Gateways and wallets offering cards, QR or wallet payments | Businesses wanting a specific payment method or bank | Check supported methods, plugins and current fees with each provider |
| Bank payment gateways | Internet payment gateways offered by banks | Larger businesses with an existing banking relationship | Longer onboarding, setup fees, technical integration effort |
| Cash on delivery | Customer pays the courier | First-time buyers and cautious customers | Failed deliveries, cash handling, slower cash flow |
| Bank transfer | Customer transfers and sends a slip | High-value or B2B orders | Manual checking before dispatch |
| Buy now, pay later (e.g. Koko, Mintpay) | Customer pays in instalments; you are paid upfront | Higher-priced items such as electronics and fashion | Higher merchant fees |
Payment methods your customers expect
- Cards: Visa and Mastercard, plus Amex on some gateways.
- LankaQR: Sri Lanka's national QR standard, increasingly used for everyday payments.
- Mobile wallets such as eZ Cash and mCash, and internet banking, depending on the gateway.
- Cash on delivery and bank transfer, handled by your store rather than the gateway.
PayHere states that it serves more than 5,000 Sri Lankan businesses and is approved by the Central Bank of Sri Lanka, which is why it is the most common choice for small online stores. Always confirm the methods each gateway supports for your business type.
What about Stripe and international payments?
Stripe does not currently support businesses registered in Sri Lanka, so it is not an option for most local stores. Check Stripe's supported countries for the current list. If you sell abroad, ask your local gateway whether it accepts foreign cards and in which currencies, since that varies by provider and plan.
How to compare gateways
Fees change, so always check each provider's current pricing page. Compare them on:
- Transaction fee: usually a percentage of each sale, sometimes plus a fixed amount.
- Setup and monthly fees: some have none, others charge both.
- Payment methods: local cards, international cards, mobile wallets and bank apps.
- Settlement time: how many days until the money reaches your account.
- Platform support: ready-made plugins for WooCommerce or Shopify, or an API for custom stores.
- Checkout experience: whether customers stay on your site or are redirected, and how it looks on a phone.
- Refunds and disputes: how easy it is to refund an order from your dashboard.
What you need to get approved
Requirements vary, but gateways typically ask for:
- business registration documents and owner identification;
- a business bank account for settlements;
- a live website on HTTPS with clear product prices;
- published terms and conditions, a privacy policy, and refund and delivery policies;
- visible contact details: address, phone and email.
Missing policies are the most common reason for delays, so prepare them while the store is being built.
A note for developers
Never mark an order as paid just because the customer was redirected back to a "success" page. Confirm every payment on the server using the gateway's notification (webhook) and verify its signature, and test the full flow in the gateway's sandbox before going live.
Why cash on delivery still matters
Many Sri Lankan shoppers will not enter card details on a store they have never bought from. Cash on delivery removes that risk for them. The best-performing local stores usually offer both: card payments for repeat and confident customers, and cash on delivery for first orders. Your store should let you set delivery charges by district and turn cash on delivery off for areas or order values where it does not make sense.
Keeping payments secure
- Run the whole site on HTTPS (see SSL and HTTPS explained).
- Use the gateway's hosted or embedded payment form so card data never touches your server.
- Keep your store software and plugins updated; outdated plugins are the most common way stores are breached.
- Turn on two-factor authentication for your store admin and gateway dashboard.
Our website security checklist covers the rest.
Which store setup do you need?
If you take orders through WhatsApp and do not need card payments yet, a catalogue site is cheaper and faster to launch. When you are ready for card payments, stock and delivery charges handled automatically, you need a full online store. Our store packages run from LKR 110,000 for a WhatsApp catalogue to LKR 180,000 for a full store with card payments (for example through PayHere) and cash on delivery.
Frequently asked questions
What is a payment gateway?
A payment gateway is the service that securely collects a customer's card or wallet details on your website, gets the payment approved by the bank, and settles the money into your bank account. It also handles security standards so your website never stores card numbers.
Which payment gateways can a Sri Lankan business use?
Common options include local gateways such as PayHere and Onepay, and internet payment gateways offered by Sri Lankan banks. Each has its own onboarding requirements, supported payment methods and fees, so compare them for your business.
Can I use Stripe in Sri Lanka?
Stripe does not currently support businesses registered in Sri Lanka. Check Stripe's list of supported countries for the latest status. Businesses with a company registered in a supported country may be able to use it there.
Should I still offer cash on delivery?
For most Sri Lankan consumer stores, yes. Many customers still prefer to pay on delivery, especially for a first order from a new shop. Offering both card payments and cash on delivery usually converts best.
How long does it take to get a payment gateway approved?
It depends on the provider and how quickly you supply documents such as business registration, bank details and website policies. Start the application early, because your store cannot take live payments until it is approved.
Do I need SSL to accept payments?
Yes. Your whole site must run on HTTPS. Gateways will not approve a site without it, and browsers warn visitors away from pages that are not secure.
Sources and further reading
- PayHere: payment gateway for Sri Lanka (PayHere)
- Stripe global availability (Stripe)
- PCI Security Standards (PCI Security Standards Council)
Planning an online store?
Engage Lanka builds online stores for Sri Lankan and international businesses: a WhatsApp catalogue for LKR 110,000, a full store with card payments for LKR 180,000, and multi-branch stores from LKR 300,000.