ePay Developers

Accept payments in Sri Lanka with one API.

Create a payment on your server, redirect to ePay's hosted checkout, and get a signed webhook when it settles. Cards with 3-D Secure and LankaQR, in LKR.

Card details are entered only on the acquirer's page — your integration stays out of PCI card-data scope.

Create a payment
curl https://beta.sandbox-api.epay.lk/v1/payments \
  -H "Authorization: Bearer sk_test_..." \
  -H "Idempotency-Key: order-1042" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 125000,
    "currency": "LKR",
    "order_id": "1042",
    "description": "Order #1042",
    "return_url": "https://shop.example.lk/checkout/return"
  }'

# → { "id": "pay_…", "status": "requires_payment",
#     "checkout_url": "https://beta.sandbox-pay.epay.lk/c/cs_…", … }
QuickstartSandbox keys to a completed test payment in five minutes.Hosted checkoutRedirect payers to beta.pay.epay.lk — card data never touches your servers.WebhooksSigned, retried events. Verify Epay-Signature in Node.js, PHP or Python.Sandbox & test cardsAn isolated environment with a bank simulator, 3-D Secure and declines.RefundsFull and partial refunds with idempotency and approval for large amounts.Migrate from form-POSTMove from the legacy md5 form integration to /v1 at your own pace.

Sandbox

https://beta.sandbox-api.epay.lk

Keys start with sk_test_. Self-serve signup, no real money.

Production

https://beta.api.epay.lk

Keys start with sk_live_. Available once your business is verified.