payway
Version:
An unofficial client for ABA PayWay
68 lines (49 loc) • 1.27 kB
Markdown
The implementation is based on https://www.payway.com.kh/developers/
[](https://github.com/seanghay/payway-js/actions/workflows/node-test.yml)
> [!WARNING]
> This is not a product of ABA Bank.
```shell
npm install payway
```
```javascript
import { PayWayClient } from 'payway';
const client = new PayWayClient(
'https://checkout-sandbox.payway.com.kh/',
'your_merchant_id',
'your_api_key',
);
```
```javascript
const data = await client.create_transaction({
tran_id: "example-01",
payment_option: "abapay_deeplink",
amount: 1,
currency: "USD",
return_url: "https://example.com/callback",
});
```
```javascript
const data = await client.check_transaction("example-01");
```
```javascript
const data = await client.list_transaction({
status: "PENDING"
});
```
- [x] Create Transaction
- [x] Check Transaction
- [x] List Transactions
- [ ] Refund Transaction
- [ ] Pre-Authorization
- [ ] Account-On-File (AOF)
- [ ] Card-On-File (COF)
- [ ] Create Payment Link
---
MIT