Arsalan usman (@ArsalanusmanDev) profile picture

Full-stack dev (MERN) building AI automations, n8n workflows and OpenAI chatbots for businesses. 12+ yrs. Karachi. Hire me on Fiverr: arsalanusman

Karachi, Pakistan
Joined November 2026
Shopify tip: make your webhook endpoint reply 200 fast, then do the real work in a background job. Call slow APIs before responding and Shopify times out, retries, and can remove the subscription after repeated failures. Verify HMAC, queue it, return.
2
Shopify tip: before installing an app for a small feature (size chart, badge, extra product info), try metafields + a custom theme section. No extra monthly fee, no leftover scripts slowing the store, and your team can still edit it in the theme editor.
1
Payment gateway tip: never mark an order as paid from the browser redirect. Wait for the gateway's server-side webhook, verify its signature, then update the order. Redirects get closed, refreshed or faked. Webhooks are the source of truth.
1
n8n tip: Before wiring an OpenAI node to a live WhatsApp or webhook flow, add a Set node that trims the message and drops empty or duplicate events. Most weird AI replies in chatbot builds come from blank or repeated payloads, not the prompt. Clean input first.
1
69
I'm Arsalan, a full-stack developer with 12+ years of experience building web apps, payment integrations and subscription workflows. Available for remote freelance projects worldwide. See my work: arsalanusman.vercel.app/
12
Slow MongoDB query? Run .explain("executionStats") before adding hardware. If you see COLLSCAN on a big collection, add a compound index in ESR order: Equality fields first, then Sort, then Range. Often fixes it with zero code changes. #MongoDB #NodeJS #WebDev
1
6
Selling online in Pakistan? COD is still how most buyers pay, so plan for it. What helps: confirm COD orders by call/WhatsApp before dispatch, offer JazzCash/Easypaisa at checkout, and a small prepaid discount. Fewer returned parcels = more profit.
1
16
Payment webhooks arrive more than once (retries, timeouts). If your handler isn't idempotent, orders get marked paid twice. Node + MongoDB fix: save the event ID with a unique index, insert first, and on a duplicate just return 200. Reply fast, do heavy work in a background job.
9
MERN tip: when Stripe, WhatsApp or n8n hits your Express webhook, send a 200 right away and do the heavy work in the background. Slow handlers trigger retries, and retries mean duplicate orders. Save each event ID and skip ones you've already processed. Saves hours of debugging.
2
1
27
Full-stack tip: when a payment or WhatsApp webhook hits your Node/Express API, return 200 fast and do the heavy work after. Providers retry slow responses, so store each event ID and skip repeats, or you'll get duplicate orders and double messages. Same rule works in n8n.
3
16