SDKsompay.js
ompay.js
Unofficial TypeScript and Node.js SDK for OMPAY Payment Gateway integration.
ompay.js
Unofficial TypeScript and Node.js SDK for OMPAY Payment Gateway integration.
Installation
npm i ompay.jsQuick Start
import { OMPayClient } from 'ompay.js';
const client = new OMPayClient({
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
environment: 'sandbox',
});
const order = await client.createCheckout({
amount: 100.0,
currency: 'OMR',
customer: {
name: 'Mohammed Al Jahwari',
email: 'omar@example.com',
phone: '+96891234567',
},
});
console.log('Order ID:', order.orderId);