← BIT 403 E-Commerce and Digital Business
Online Payments, Security and Logistics
Notes
Reliable payment processing
Online payment processing coordinates an order system with a payment provider and financial accounts. An initial customer redirect or screen message is not sufficient evidence of payment; the server should verify transaction status through trusted provider interfaces. A callback is a server notification about a transaction, and idempotency ensures repeated notifications do not create duplicate effects. Use unique order references, validate amounts and currencies, and reconcile provider settlements against internal records. Separate pending, paid, failed and refunded states so delays do not trigger premature dispatch or incorrect cancellation of legitimate customer orders.
Protecting transactions and fulfilling orders
Transport encryption protects data while it moves between systems, but businesses must also restrict access, patch software and monitor suspicious activity. Avoid storing unnecessary payment credentials and use approved provider mechanisms for sensitive payment handling. Logistics covers inventory reservation, picking, packing, dispatch, delivery confirmation and returns. Reliable stock updates reduce overselling, while clear address collection and delivery promises reduce failed trips. Reconciliation should link orders, payments and dispatch records. Establish refund authority and return inspection procedures so customer service can resolve disputes without creating opportunities for unauthorised payments or stock losses.
Practical example
A Mombasa wholesale shop receives 120 online orders of KES 1,500 each. Its payment provider confirms 116 successful payments, so expected collections are 116 × 1,500 = KES 174,000. A 1% processing charge is KES 1,740, leaving expected settlement of KES 172,260 before other deductions. Four unpaid orders remain pending and must not be dispatched. One successful payment callback arrives three times, but the unique transaction reference permits only one paid-state update. When settlement differs, accounts staff investigate timing, refunds and charges instead of altering order totals simply to force agreement.
Quiz
1. What is expected settlement in the example?
2. What should authorise dispatch of a prepaid order?
3. What does idempotent callback handling prevent?
Sign in to submit and securely grade your quiz.