1.0.0 • Published 9h ago
ethio-pay-verify
Licence
MIT
Version
1.0.0
Deps
0
Size
11 kB
Vulns
0
Weekly
0
ethio-pay-verify
Official TypeScript/JavaScript SDK for the Ethiopian Payment Verification API.
Verifies payments from CBE, Telebirr, Bank of Abyssinia (BOA), Dashen Bank, and M-Pesa.
Install
npm install ethio-pay-verify
Usage
import { CbeVerifyClient } from 'ethio-pay-verify';
const client = new CbeVerifyClient({
apiKey: process.env.CBE_VERIFY_API_KEY!,
baseUrl: 'http://localhost:3000',
});
const result = await client.verify({
bank: 'cbe',
referenceNumber: 'FT26262VQ6GV',
accountSuffix: '35207333',
});
if (result.data[0].verified) {
console.log('Confirmed:', result.data[0].amount, result.data[0].currency);
}