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>

28 lines (23 loc) • 743 B
const PayssionClient = require('../lib/payssion'); const client = new PayssionClient({ apiKey: 'YOUR_API_KEY', secretKey: 'YOUR_SECRET_KEY', sandbox: true }); async function example() { try { const payment = await client.createPayment({ amount: 50, orderId: 'TEST-001', currency: 'USD', paymentMethod: 'boleto_br', callback_link: 'https://yoursite.com/callback', name: 'Test Payment' }); console.log('Payment URL:', payment.data.url); console.log('Transaction ID:', payment.data.transactionId); } catch (error) { console.error('Error:', error.message); } } example();