E-commerce15 min read

Generating Automatic Receipts and Invoices After a Mobile Money Payment

Mohamed Bah·Fondateur, Kolonell
June 10, 2026
Share:
Generating Automatic Receipts and Invoices After a Mobile Money Payment

Generating Automatic Receipts and Invoices After a Mobile Money Payment

E-commerce

The payment went through, the money arrived. And then? Too many Senegalese merchants stop there, leaving the customer without proof of purchase and their accounting in the dark. Yet automatically generating a receipt and then a compliant invoice after a mobile money payment is easy to set up and changes everything: customer trust, compliance, and up-to-date accounting without manual entry.

This guide shows how to automate the confirmation, the receipt, the compliant invoice, their delivery by WhatsApp or email, and the link to your accounting.

Receipt and invoice: do not confuse them

The two words are often mixed up, but they are two distinct objects.

The receipt

The receipt is the immediate proof that a payment occurred. It confirms to the customer: "We have received your payment of X FCFA for order Y." It reassures and serves as a reference in case of dispute. It must go out instantly after payment confirmation.

The invoice

The invoice is an accounting and legal document. It details the products or services, the amounts, the mandatory mentions (seller and customer identity, invoice number, date, taxes where applicable). It serves both parties' accounting and may be required by the administration.

The customer often receives the receipt right away and the invoice may follow, but the ideal is to automate both.

Why automate

Manual generation does not scale and creates problems.

Trust and professionalism

A customer who pays 50,000 FCFA without receiving any confirmation doubts. "Did my payment go through? Is my order taken?" An automatic receipt answers instantly and positions you as a serious merchant.

Accounting without entry

If each payment generates a recorded invoice, your accounting builds itself. No more re-entry in the evening, no more omissions, no more month-end discrepancies.

Compliance and disputes

In case of an audit or a dispute, you have timestamped and traceable documents. This is your protection.

The trigger: the confirmation webhook

Automation starts from the webhook the aggregator (PayDunya, CinetPay, Hub2) sends when the payment is confirmed. It is the event that triggers the whole chain.

The ideal sequence

When the "payment successful" webhook arrives: your system verifies its signature, marks the order paid, generates the receipt, sends it to the customer, generates the invoice, records it in accounting. All in a few seconds, without human intervention.

The golden rule: never generate before confirmation

Never generate a receipt or invoice on a payment intent, only on a real confirmation (verified "success" status). Otherwise you issue proofs of payments that never happened, a source of accounting chaos.

Generating a compliant receipt

The mobile money receipt must contain the useful minimum.

  • Your company name.
  • The date and time of payment.
  • The amount in FCFA.
  • The transaction reference (aggregator or operator side).
  • The order reference.
  • The payment method (Wave, Orange Money, etc.).

Keep it clear and readable on a phone, because that is where it will be viewed.

Generating a compliant invoice

The invoice requires more. At a minimum:

  • Full seller identity (name, address, tax identifier where applicable).
  • Customer identity.
  • A unique sequential invoice number.
  • Date of issue.
  • Line details (product, quantity, unit price, total).
  • Total amount, and taxes if applicable.
  • Mobile money payment reference.

Numbering must be continuous and without gaps: it is an accounting requirement. Automating guarantees this continuity better than manual entry.

Delivery: WhatsApp and email

Need a professional website?

Kolonell builds websites that attract clients, optimized for the Sénégalese market. Free quote in 2 minutes.

Generating is not enough, you must deliver it in the right place.

WhatsApp: the king channel in Senegal

The customer checks WhatsApp more than their inbox. Sending the receipt (and the invoice as PDF) on WhatsApp guarantees they see it. A short message with the PDF attached is enough. It is also a contact point for after-sales service.

Email: for archiving and formality

Email remains useful for archiving and for professional customers who want the invoice in their inbox. Send both when possible: WhatsApp for the immediate, email for the archive.

The PDF

Generate documents as PDF, a universal format, readable everywhere, printable. Avoid proprietary formats the customer cannot open.

Automation does not stop at delivery to the customer. Each invoice must feed your accounting.

Automatic recording

On generation, the invoice is recorded in your system (database, management tool, or export to accounting software). At month end, your figures are already there, ready for reconciliation.

Reconciliation

Cross-check the payments collected on the aggregator side with your issued invoices. Any invoice without a payment or payment without an invoice signals an anomaly to correct. This is the control that guarantees your documents match the reality of the money.

Customer mini case: a service provider in Dakar

A digital service provider in Dakar invoiced by hand. The result: customers chasing for their invoice, inconsistent invoice numbers, and accounting reconstructed in a panic at every month end.

We plugged automatic generation into the aggregator's webhook: receipt sent on WhatsApp within the second, PDF invoice automatically numbered and sent by email, immediate recording in the database for accounting. Time spent on invoicing dropped to almost zero. Above all, numbering became flawless and customers no longer chase. The owner recovered several hours per week and gained credibility with his business customers.

The tools

You do not need to build everything. Depending on your setup:

  • An e-commerce site (WooCommerce, Shopify, or custom) can generate receipt and invoice on a payment event.
  • Libraries generate the PDF server-side from a template.
  • WhatsApp delivery goes through the official WhatsApp Business API.
  • Email goes out via a transactional sending service.

The key is to connect these blocks to the confirmation webhook so everything chains without a click.

FAQ

Are a receipt and an invoice the same thing?

No. The receipt is the immediate proof of a received payment. The invoice is a detailed accounting document with mandatory mentions and continuous numbering. The ideal is to automate both.

When should I generate the receipt and the invoice?

Only after real payment confirmation, via the aggregator's "success" webhook, signature verified. Never generate on a mere unconfirmed payment intent.

How do I send the invoice to the customer in Senegal?

WhatsApp is the most effective channel because the customer checks it. Send the PDF as an attachment, and double up with email for archiving and business customers.

Must invoice numbering be continuous?

Yes, numbering must be sequential and without gaps, it is an accounting requirement. Automation guarantees this continuity better than manual entry.

Can invoicing be linked to accounting automatically?

Yes. Each generated invoice is recorded in your system or exported to accounting software. Regular reconciliation with the aggregator's collections ensures everything matches.

Let's talk about your project. Want to automate receipts and invoices after every mobile money payment? Write to us on WhatsApp +221 77 596 93 33.

Tags:#invoice#receipt#mobile money#automation#WhatsApp#accounting#Senegal#webhook
Share:

Mohamed Bah

Fondateur, Kolonell

Passionate about digital and entrepreneurship in Africa, Mohamed has been helping Sénégalese businesses with their digital transformation since 2020. Founder of Kolonell, he believes every SME deserves a professional and accessible online présence.