0.1.4 • Published 4 months ago

payway v0.1.4

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

(Unofficial) Node.js Client for ABA PayWay

The implementation is based on https://www.payway.com.kh/developers/

test

!WARNING
This is not a product of ABA Bank.

npm install payway

Get started

import { PayWayClient } from 'payway';

const client = new PayWayClient(
  'https://checkout-sandbox.payway.com.kh/',
  'your_merchant_id',
  'your_api_key',
);

1. Create Transaction

const data = await client.create_transaction({
  tran_id: "example-01",
  payment_option: "abapay_deeplink",
  amount: 1,
  currency: "USD",
  return_url: "https://example.com/callback",
});

2. Check Transaction

const data = await client.check_transaction("example-01");

3. List Transactions

const data = await client.list_transaction({
  status: "PENDING"
});

Supported Features

  • Create Transaction
  • Check Transaction
  • List Transactions
  • Refund Transaction
  • Pre-Authorization
  • Account-On-File (AOF)
  • Card-On-File (COF)
  • Create Payment Link

License

MIT

0.1.4

4 months ago

0.1.3

4 months ago

0.1.2

5 months ago

0.1.0

5 months ago

0.1.1

5 months ago

0.0.6

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.1

5 months ago