Payment Link HLD
Payment Link HLD
Solution Overview
The core capability that this solution will avail is giving internal and external partners the
relevant APIs that can be consumed to generate and send payment links (web URLs) to
their customers, who can subsequently use the links to complete a payment.
The solution will be hosted in the M-PESA Hub where a suite of microservices will be
deployed to avail the required APIs and Web interfaces. Connectivity to the markets will be
Both PSPs/merchants and customers will have access to a web interface. PSPs and
merchants’ web interface will allow for customizations of look and feel of links they
generate, while customers will have a view of the payment summary as generated by a
given merchant and allow them to submit their MSISDN as part of confirmation.
Merchants and PSPs will have the option of integrating directly to the payment link APIs or
via OpenAPI
Application Architecture
The solution will comprise of the following components as illustrated above:
1. Merchant / PSP admin web UI – This will give merchants and PSPs the option of
customizing the look and feel of their payment links
2. Customer web UI – This will be the landing page for customers after clicking on a
payment link and will give a summary of the payment details and allow them to
submit their MSISDN to initiate the payment
3. Merchant management service – This will be a backend service for managing the list
of merchants using the solution
4. User management service – This will be a backend service for all users requiring log
in to the system (merchant / PSP admins)
5. Profile management service – This will be a backend service for persisting and
managing customizations made by PSPs and merchant admins on their payment
links’ look and feel
6. Notification management service – This service will manage how notifications are
sent to the customer including channel and content
7. Market management service – This service will manage the different market
configurations regarding how payment links are processed
8. Invoice management service – This service will manage how invoices are tied to
payment links and associated metadata
9. Partner management service – This service will be responsible for storing the list of
partners and their roles in the payment journey (e.g. IMT / FX / merchant aggregator
etc.)
10. Request / transaction management service – This will be a general-purpose service
for the end-to-end correlation of an API request from an internal or external system
Payment
1. Once the customer clicks on the provided payment link, they will be directed to an
M-PESA-hosted web interface and for their specific pending payment (e.g. pay.m-
pesa.com/243-43KFD-RXP)
2. The payment link solution will validate the link information and retrieve the payment
details to be rendered on the web interface for the customer’s confirmation
3. Once the customer is satisfied with the payment details, they will input the MSISDN
to be used for payment and submit
4. An asynchronous API call will be made to the payment link solution to request for
payment fulfillment and the customer will be informed to wait for the PIN
confirmation
5. An API call will be made to the relevant market to process the payment
6. The market’s existing service will handle the PIN collection from the customer and
debiting on G2 and will notify the customer of the successful transaction
7. A callback request will be sent to the payment link solution with the results of the
transaction which will then be cascaded to the e-commerce site or PSP
8. The customer will then see the same results on the web interface confirming the
payment has been done
References