Menu

Sending GCash-Style Payment Reminders for a Small PH Reseller Shop (Node.js, No Database)
📰

Sending GCash-Style Payment Reminders for a Small PH Reseller Shop (Node.js, No Database)

DEV Community: node·SEO - NT Tech Innovation·1 day ago
#Jl5Ms01W
#devtonodejs#devto#dev#const#order_id
Reading 0:00
15s threshold

Small social media resellers in the Philippines often run everything from Messenger and a spreadsheet. The thing that slips most? Following up on unpaid orders. Here's a tiny Node.js script that reads a CSV of pending orders and drafts polite reminder messages you can paste into chat. No database, no server.

The CSV

order_id,customer,service,amount_php,created_at,paid 1042,Ana,TikTok views 5k,250,2026-11-09,no 1043,Mark,FB page likes 1k,180,2026-11-10,yes 1044,Joy,IG followers 1k,320,2026-11-08,no

Enter fullscreen mode

Exit fullscreen mode

The script

import { readFileSync } from "node:fs" ;

const rows = readFileSync ( "orders.csv" , "utf8" ) . trim ( ) . split ( "\n" ) . slice ( 1 ) . map ( l => l . split ( "," ) ) . map ( ( [ order_id , customer , service , amount_php , created_at , paid ] ) => ( { order_id , customer , service , amount : Number ( amount_php ) , created_at , paid } ) ) ;

const daysAgo = d => Math . floor ( ( Date .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.