UNPKG

legendaryjs

Version:

LegendaryJS – The ultimate backend framework for speed, power, and simplicity.

14 lines (12 loc) 323 B
async function localHandler(action, details) { switch (action) { case 'simulate-payment': return { status: 'success', gateway: 'ME-Payment', amount: details.amount, message: 'Simulated payment success (local gateway)', }; } } module.exports = localHandler;