const tx = await sripay.payments.create({ amount: 5000 });
Authorization: Bearer sk_live_2f8a...e9c1
{ "status": "succeeded", "currency": "LKR" }
webhook.verify(payload, signature, secret);
const balance = await merchant.getBalance();
refund.process({ reason: "customer_request" });
X-SriPay-Signature: sha256=a1b2c3...
await sripay.tokens.revoke(tokenId);
const merchant = new SriPay.Merchant({ apiKey: 'sk_live_...' });
Content-Type: application/json; charset=utf-8
sripay.customers.update('cus_lk01', { email: 'new@email.lk' });
const report = await sripay.reports.run({ type: 'settlement' });
if (event.type === 'charge.refunded') notifyMerchant(event);
Idempotency-Key: idk_a9f3c8b2e... Stripe-Version: 2024-01
const link = await sripay.paymentLinks.create({ line_items });
export default new SriPayClient({ region: 'ap-south-1' });
const verify = hmac('sha256', secret).update(body).digest('hex');
{ "settlement": { "net": 487200, "fee": 12800, "tax": 0 } }
https://gateway-api.sripay.lk
All systems operational
2026-04-02T08:15:17.359Z