/en-s5-ict-ecommerce-electronic-payment/
/en-s5-ict-ecommerce-electronic-payment/
General Inquiry: info@TutorZone.com.hk
Office Hours: Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline: +852 6828 1809
Instant Support: +852 9061 3106

ICT S5 | E-commerce and Electronic Payment Guide for Tutors | Start with the payment flow, then encryption

ICT S5 | E-commerce and Electronic Payment Guide for Tutors | Start with the payment flow, then encryption

  • 2026-11-22

Every student can say you buy things online with a card, yet asked what happens between pressing pay and the merchant being paid, most answer the bank transfers the money and cannot name authorisation, capture and reconciliation.

Objectives — By the end the student can: name the five steps of a B2C transaction, order, authorise, capture, dispatch and reconcile, and compute a 2 percent fee on 800 dollars as 20 leaving 780; convert 1,200 orders an hour into 0.33 per second and a peak of 3,600 into 1 per second; explain that TLS exchanges keys with asymmetric crypto and then encrypts with symmetric crypto, a 256 bit key space of about 1.16 times ten to the 77; and state that SHA-256 gives 64 hexadecimal characters, is one way and proves integrity rather than secrecy.

01 Prerequisites (3-minute check)

If any of these fails, fix it before the lesson starts.

Skill Quick check Pass mark
Protocols Which port does HTTPS use? 443
Two kinds of encryption How do symmetric and asymmetric compare in speed? Symmetric is far faster, asymmetric only exchanges keys
Percentages What is 2.5 percent of 800 dollars? 20 dollars

02 Lesson flow (60 minutes)

Time Stage Tutor does Student does
0-6 min Prior check Ports, encryption types, percentages Two of three right before moving on
6-18 min The five steps Order, authorise, capture, dispatch, reconcile, and what fails at each Student locates a double charge in the flow
18-30 min Fees and reconciliation 800 dollars less 2.5 percent leaves 780 Student computes 3 percent of 1500
30-42 min TLS and hashing TLS keeps secrets, hashing proves integrity, neither replaces the other Student says which one blocks tampering
42-52 min Stock and overselling Stock 50 against 1200 orders leaves 1150 short Student proposes a lock or a reservation
52-60 min Exit check Ask how long a 99.9 percent month is down Student answers 43.2 minutes

03 Teaching script (read it out)

Scene 1: Five steps: what happens after the customer presses pay

The B2C flow is fixed: order, authorise, capture, dispatch, reconcile. Authorisation only checks funds with the issuing bank and holds the amount; no money moves. Capture is the merchant claiming it, usually at dispatch or settlement. Students who merge the two cannot explain why a cancelled order still shows a pending amount.

Make them run the fee arithmetic by hand: 2.5 percent of 800 is 20, so the merchant receives 780. Then 3 percent of 1500 is 45, leaving 1455, which everyone should answer instantly.

Reconciliation is the step nobody teaches: the platform statement, the bank credit and the internal order table must agree. A 20 dollar gap is a fee or a refund timing issue, not a broken system. Teach them to describe the gap in one sentence instead of saying the numbers do not match.

Student must say: what is the difference between authorisation and capture?

Scene 2: TLS and hashing: one hides, one proves

Split the TLS job clearly: the handshake uses asymmetric crypto for certificates and key exchange, then the session switches to symmetric crypto because it is far faster. The popular wrong answer is that everything is asymmetrically encrypted, which no site doing 1,200 orders an hour could afford.

Quantify key length: 256 bits gives 2 to the power 256, about 1.16 times ten to the 77, so brute force is out. That number is worth more than the word secure.

SHA-256 always outputs 64 hexadecimal characters and cannot be reversed, so its job is integrity: change one bit and the digest changes completely. It hides nothing, because anyone with the input computes the same digest. Payment callbacks are verified with signatures and digests for exactly this reason.

Student must say: can a hash be used as encryption?

Scene 3: Stock, overselling and refunds: turn risk into arithmetic

With 50 units and 1,200 orders arriving together, the shortfall is 1150. Overselling is not bad luck; it is the gap between reading stock and taking payment. Two shoppers both read stock 1 and both pay. The fix is a database transaction or reserving stock at order time.

Availability is also arithmetic: 99.9 percent of a month (43,200 minutes) is about 43.2 minutes down, and 99.95 percent about 21.6. Students wave 99.9 percent away as high; in minutes they see why payment systems run in pairs.

Refund timing closes the loop: a refund marked complete does not mean the customer has the money, because card clearing takes working days. The merchant must update order status and stock together, or reconciliation never balances.

Student must say: which step actually causes overselling?

04 Question types and worked steps

Type Example Steps Answer
Payment fee 800 dollars at 2.5 percent Multiply, then subtract from the total 20 dollars, leaving 780
Orders per second 1,200 per hour Divide by 3600 0.33 per second
Downtime 99.9 percent over 30 days Total minutes times 0.1 percent 43.2 minutes
Key space 256 bit key Two to the power 256 About 1.16 times ten to the 77
Digest length SHA-256 256 bits divided by 4 64 hexadecimal characters
Sanity check (teach this): Three sanity checks: the merchant receipt must be less than what the customer paid, so more than 800 dollars means the fee was added instead of subtracted; orders per second times 3600 must return the hourly figure, so a mismatch is a unit slip; and check availability in minutes, since 99.9 percent of a month is about 43 minutes and an answer of 4 minutes means 99.99 percent was used.

05 Independent practice (3 questions)

Question Answer What to watch
Payment fee 1500 dollars at 3 percent 45 dollars, 1455 received, both steps shown
Orders per second 7,200 orders an hour 2 per second, multiply before dividing
Downtime 99.95 percent over 30 days 21.6 minutes, not 4

06 Common mistakes and what to say

Mistake Student writes Say this
Treating authorisation as capture The bank moves the money the moment you press pay Authorisation only holds the amount; capture is the merchant claiming it. Name both steps and the pending amount is explained.
Assuming TLS is asymmetric end to end HTTPS encrypts everything with RSA Asymmetric only exchanges the key, then symmetric crypto carries the traffic because it is far faster. No site at 0.33 orders a second does otherwise.
Using a hash as encryption SHA-256 can be decrypted back to the data A hash is one way and cannot be reversed. Use a hash to prove nothing changed, encryption to keep it secret.
Ignoring the gap between stock check and payment If stock is enough there can be no overselling Two buyers both read stock 1. Use a transaction lock or reserve stock when the order is created, not a check.

07 Homework (paper, section and question numbers)

08 Exit check (last 5 minutes)

Question Answer Decision
Five steps Order, authorise, capture, dispatch, reconcile Three steps means start again
Fee 20 dollars, 780 received Answering 820 means the direction was reversed
TLS and hashing TLS hides, a hash proves integrity A decryptable hash means redo the section

09 Tutor FAQ

Why not just encrypt the password instead of using HTTPS

Because every part of the exchange can be read or altered, including the amount and the delivery address. TLS provides both secrecy and integrity, while encrypting a password alone still lets an attacker change the total.

What does a third party payment platform actually do

It sits between the merchant and the banks, handling authorisation, clearing and reconciliation, so the merchant integrates once instead of with every bank. The trade off is fees and dependency.

Why do refunds take days

The instruction travels back through the card scheme and the issuing bank, layer by layer, and the merchant can only submit it. So refunded in the dashboard and visible in the customer account are two different events, and reconciliation follows the settlement file.

Find a tutor — freeTutor Registration →

A TutorZone lesson-prep guide. Written by the TutorZone team; questions and lesson flow are original and are not taken from any school or publisher material.

Join as a tutor or coach — academic, music, sports, arts, STEM. Free to register. See how it works →