UNPKG

quickpos

Version:

<div align="center"> <h1>💳 QuickPos 🚀</h1> <p><strong>A powerful, multi-gateway payment integration module for Node.js</strong></p> <p>Seamlessly integrate with 50+ payment providers worldwide</p>

29 lines (24 loc) • 764 B
const URWayClient = require('../lib/urway'); const client = new URWayClient({ terminalId: 'YOUR_TERMINAL_ID', password: 'YOUR_PASSWORD', merchantKey: 'YOUR_MERCHANT_KEY', testMode: true }); async function example() { try { const payment = await client.createPayment({ amount: 100, orderId: 'TEST-001', currency: 'SAR', callback_link: 'https://yoursite.com/callback', email: 'customer@example.com', country: 'SA' }); console.log('Payment URL:', payment.data.url); console.log('Track ID:', payment.data.trackId); } catch (error) { console.error('Error:', error.message); } } example();