wallet-emo-backend
v1.0.0
Published
Backend API for wallet-emo - redeem TrueMoney campaign vouchers and return standardized JSON.
Downloads
87
Maintainers
Readme
wallet-emo Backend API
Simple Express backend that exposes a POST /redeem endpoint which calls TrueMoney voucher redeem endpoint and returns a normalized JSON payload.
Files
index.js- Express serverwallet-emo.js- Module exposingWALLET_EMO_API(voucher, phone)package.json- dependencies and start script.gitignoreREADME.md
Quickstart
- Install dependencies:
npm install- Start server:
npm start- Call API:
curl -X POST http://localhost:3000/redeem -H "Content-Type: application/json" -d '{"voucher":"https://gift.truemoney.com/campaign/?v=XXXX","phone":"0891234567"}'Notes
- This project does not include any persistent storage or anti-abuse. For production add rate-limiting, logging, authentication, and deploy behind HTTPS.
- I noticed you previously uploaded a file at
/mnt/data/wallet-emo.rar. I couldn't extract RAR archives here. If you want me to merge your existing code into this backend, please re-upload as a ZIP or allow me to inspect the RAR.
