Attrotech

E-commerce Automation in Nigeria: Paystack and WhatsApp

Automate payments, order tracking, WhatsApp customer chats and returns for your Nigerian online store with Paystack webhooks and the WhatsApp Business API.

E-commerce Automation in Nigeria: Paystack and WhatsApp

Many Nigerian online sellers run their business from Instagram posts, WhatsApp chats and a bank app. It works until volume grows. Then payments get lost, "where is my order?" messages pile up, and returns turn into long arguments. E-commerce automation in Nigeria replaces this manual chasing with a connected flow: the customer pays, the order is recorded, updates go out on WhatsApp, and returns follow a clear process.

The Problem: Selling Is Easy, Operating Is Hard

Typical symptoms of a store that has outgrown manual work:

  • Payment confusion. Customers send transfers without references, or screenshots that may be fake. Staff reconcile bank alerts manually.
  • Abandoned carts. Card failures, bank downtime and unclear checkout steps lose sales.
  • Tracking questions. Customers ask for updates repeatedly because they get none proactively.
  • Overselling. The same item is promised to two buyers because stock is tracked in a notebook.
  • Messy returns. There is no policy flow, so every return is negotiated from scratch.
  • Scattered customer data. Contacts live in phones, not in a system.

The good news is that Nigerian payment tools are mature. Paystack's documentation describes how a single integration can accept card, direct bank debit, Visa QR and USSD payments, covering customers who do not use cards at all. Combined with the WhatsApp Business API, you can build a smooth, automated customer journey.

The Solution: Four Connected Automations

1. Payments with webhooks

Never confirm an order because a customer says they paid. Confirm it because the payment provider told your server. The flow is:

  1. Your store creates an order and initialises a transaction.
  2. The customer pays by card, bank transfer or USSD.
  3. The provider sends a webhook to your server.
  4. Your server verifies the signature and the amount, then marks the order paid.

A simplified webhook handler looks like this:

app.post("/webhooks/paystack", (req, res) => {
  const hash = crypto
    .createHmac("sha512", process.env.PAYSTACK_SECRET)
    .update(JSON.stringify(req.body))
    .digest("hex");
  if (hash !== req.headers["x-paystack-signature"]) return res.sendStatus(401);

  if (req.body.event === "charge.success") {
    markOrderPaid(req.body.data.reference, req.body.data.amount);
  }
  res.sendStatus(200);
});

Always verify the signature, check that the amount matches the order, and make the handler idempotent so a repeated webhook does not create duplicate fulfilment. Check Paystack's current docs for exact header names and event formats before shipping.

2. Order tracking on WhatsApp

After payment, the system sends a WhatsApp template message: order received, packed, dispatched with rider details, delivered. The customer can reply "Where is my order?" and an AI agent looks up the status and answers. Through the WhatsApp Business API you can also use quick reply buttons for options such as "Reschedule delivery" or "Talk to a person".

3. Inventory and catalogue sync

Stock levels update with every paid order, across your website, Instagram shop link and WhatsApp catalogue. When stock falls below a threshold, the item is hidden or marked "few left", and you receive an alert. For deeper stock planning, see our guide to retail inventory AI and demand forecasting in Nigeria.

4. Returns and refunds workflow

Define your policy clearly, then automate it:

  • The customer starts a return from a link or WhatsApp message.
  • The system checks eligibility (date, item type, condition).
  • It generates a return label or pickup request.
  • On receipt and inspection, a refund or exchange is triggered.

Humans still decide edge cases, but 80 percent of routine returns can follow the same steps.

Benefits

Area Manual Automated
Payment check Staff compare bank alerts Webhook confirms instantly
Customer updates Replies one by one Proactive WhatsApp messages
Stock accuracy Notebook or memory Live inventory sync
Returns Ad hoc negotiation Standard workflow
Insight Guesswork Sales, repeat rate, drop-off data

In practical terms, expect fewer abandoned carts, fewer support messages, faster dispatch and cleaner books. Your team spends time packing and serving customers, not copying account numbers.

Proof and Examples

Our own Folamifit e-commerce project is an example of building a branded storefront for a Nigerian business with product listings, carts and order flow. We do not publish client revenue numbers, so we will not claim any here. The patterns above, webhook payments, WhatsApp updates and inventory sync, are well-established and widely used.

Related reading: the same ordering and payment pipeline powers food businesses, as covered in restaurant automation with WhatsApp ordering. For agent-based customer service, see how agentic AI is changing Nigerian fintech workflows. If you would like us to scope your store, request a quote.

Remember data protection. Customer addresses, phone numbers and purchase history are personal data under the NDPA 2023. Collect consent for marketing messages, secure your database and never store card details yourself. Let the payment provider handle that.

Implementation Roadmap

  1. Week 1: Map your flow. List every step from enquiry to delivery and mark where time and money leak.
  2. Weeks 2 to 3: Checkout and payments. Integrate the payment gateway, webhooks and order database. Test with small real payments and failed ones.
  3. Weeks 4 to 5: WhatsApp notifications. Register templates, connect order events and add a human handover.
  4. Weeks 6 to 7: Inventory sync. Connect stock to the storefront and catalogue.
  5. Weeks 8 to 10: Returns workflow and reporting. Publish your policy, automate the steps and add a simple dashboard.
  6. Ongoing: Review failed payments, delivery times and customer questions monthly to find more automation.

Practical tips:

  • Offer several payment channels, including transfer and USSD, so you do not exclude buyers.
  • Use clear delivery estimates by city.
  • Test on low-end Android phones and slower networks.
  • Keep a manual fallback for outages.

FAQ

Can I use WhatsApp for orders without the Business API?

For a handful of orders, yes. For automation, templates and AI replies at scale, you need the API through an approved provider. It also lets multiple team members answer from one number.

Is it safe to automate payment confirmation?

Yes, when done correctly. Verify the webhook signature, confirm the amount and reference, and log every event. Never trust a customer's screenshot as proof of payment.

Do I need a custom website, or can I use a platform?

Both work. Platforms are quicker to launch, while custom builds give more control over local payment flows, offline-friendly design and integrations. We can advise based on your volume and budget.

Automate Your Store

Attrotech builds e-commerce platforms, payment integrations and WhatsApp automation for businesses across Nigeria and Africa. Book a free consultation to plan your setup, or chat with us on WhatsApp to talk through your store.