E-Commerce and Digital Payments: B2B, B2C, Gateways, OTP and Safety
E-commerce is the buying and selling of goods and services over the internet, and digital payments are the electronic ways of paying for them. Computer and general-knowledge papers ask which model a business follows, what a payment gateway does, how a debit card differs from a credit card, what OTP and two-factor authentication mean and how to spot online fraud. This lesson explains these ideas without depending on any particular company or app.
Asked in: PPSC, FPSC, NTS, ETEA, KPPSC, SSC, IBPS and ICS/ECAT computer
What e-commerce is
E-commerce (electronic commerce) means trading goods and services through electronic networks, mainly the internet. E-business is the wider term that also covers a firm’s internal work online, such as supply-chain management and customer support. M-commerce (mobile commerce) is e-commerce done through smartphones and apps.
Advantages: shops stay open 24 hours a day, sellers reach customers far away, running costs are lower than for a physical shop, and buyers can compare prices easily. Disadvantages: buyers cannot touch or try products, delivery takes time, and fraud and data theft are risks.
- E-commerce ⊂ e-business
- M-commerce = e-commerce on mobile devices
E-commerce models
B2B (business to business): one company sells to another, such as a textile mill supplying cloth to a garment factory through an online portal. B2B deals are usually large and repeated. EDI (electronic data interchange) lets companies exchange orders and invoices in a standard electronic format.
B2C (business to consumer): a business sells directly to individual shoppers through its website or app, the most familiar form of online shopping. C2C (consumer to consumer): individuals sell to each other, usually through an online classifieds or auction site that only provides the platform.
C2B (consumer to business): an individual offers products or services to companies, as when a freelancer sells design work to a firm. G2C and G2B describe governments providing services online to citizens and businesses, such as paying taxes or applying for licences.
- B2B: firm → firm
- B2C: firm → shopper
- C2C: person → person
- C2B: person → firm
Ways to pay
Cash on delivery (COD) lets the buyer pay when the parcel arrives; it is still widely used in Pakistan and India because it builds trust. A debit card takes money directly from the holder’s bank account at the time of purchase. A credit card spends money lent by the bank up to a credit limit; the holder repays later, and interest is charged on any amount not paid by the due date.
A bank transfer moves money directly from one account to another using the account number or IBAN; many countries now have instant account-to-account payment systems run by the central bank or a national body. A digital (mobile) wallet is an app that stores money or links to cards and bank accounts, so the user can pay by phone number or by scanning a QR code.
A card shows a long card number, the holder’s name and an expiry date, and on most cards a three-digit security code (CVV) on the back. The PIN is never printed on the card and must never be shared.
- Debit card: own money, taken at once
- Credit card: borrowed money, repaid later
- COD: pay on delivery
Payment gateways
A payment gateway is the service that securely carries payment details from an online shop’s checkout page to the banks and returns the result. When a customer pays by card, the gateway encrypts the details and passes them through the card network to the issuing bank (the customer’s bank), which checks the funds and verification and approves or declines. The money then reaches the acquiring bank (the merchant’s bank).
Gateways charge the merchant a fee, often a percentage of each transaction, sometimes plus a fixed amount. Card data must be handled according to strict security standards such as PCI DSS. Tokenisation replaces the real card number with a random substitute value (a token), so a stolen token is useless elsewhere.
In escrow, a trusted third party holds the buyer’s payment until the buyer confirms delivery, which protects both sides. A chargeback is a reversal of a card payment ordered by the card issuer after the customer disputes it.
- Customer → gateway → card network → issuing bank → approval → merchant
- Merchant receives = sales − gateway fees
OTP and two-factor authentication
An OTP (one-time password) is a short code, usually sent by SMS or generated by an app, that is valid for one login or transaction and expires after a few minutes. Because it changes every time, a stolen OTP is useless later.
Two-factor authentication (2FA) asks for two different kinds of evidence: something you know (password, PIN), something you have (phone, card, security key) and something you are (fingerprint, face). A password plus an OTP sent to your phone is 2FA; a password plus a PIN is not, because both are things you know. Many online card payments add an OTP step, known as 3-D Secure.
HTTPS and the padlock icon show that the connection to a site is encrypted with TLS, so data cannot be read in transit. They do not prove the site is honest; fraudsters can also get HTTPS for fake sites.
- 2FA = two different factor types
- Know + have, know + are, or have + are
Staying safe online
Never share an OTP, PIN, CVV or password with anyone, even someone claiming to be from your bank; real banks do not ask for them. If in doubt, end the call and phone the bank on the number printed on your card.
Check the web address carefully before paying, because phishing sites copy real shops with slightly misspelt names. Be careful of prices that are too good to be true, sellers who insist on advance payment to a personal account, and messages that create urgency. Avoid paying on public Wi-Fi, keep apps updated, turn on transaction alerts and report a lost card or suspicious transaction to the bank at once.
- Never share: OTP, PIN, CVV, password
- Padlock = encrypted, not necessarily genuine
Solved examples
- Classify each deal: (i) a cement factory sells to a construction company through an online portal; (ii) Ayesha buys shoes on a brand’s website; (iii) Ravi sells his old phone to another person on a classifieds site.
- (i) Both sides are businesses: B2B.
- (ii) A business sells to an individual shopper: B2C.
- (iii) One individual sells to another, and the site only provides the platform: C2C.
Answer: B2B, B2C, C2C - Hamza buys a Rs 5,000 item, first with his debit card and then, on another day, with a credit card. How do the two payments differ?
- With the debit card, Rs 5,000 leaves his bank account immediately.
- With the credit card, the bank pays the shop and adds Rs 5,000 to his card bill; his account is untouched until he pays the bill.
- If he pays the full bill by the due date, he pays no interest; otherwise interest is charged on the unpaid amount.
Answer: Debit uses his own money at once; credit is borrowed and repaid later - Put these steps of an online card payment in order: the issuing bank approves; the shop confirms the order; Neha enters her card details at checkout; the gateway encrypts and forwards the details; Neha enters the OTP sent to her phone.
- Neha first enters her card details at checkout.
- The gateway encrypts them and forwards them towards her bank.
- Her bank asks for verification, and she enters the OTP.
- The issuing bank approves the payment.
- The shop receives the approval and confirms the order.
Answer: Details entered → gateway forwards → OTP entered → bank approves → order confirmed - Which of these are two-factor authentication? (i) password plus OTP sent by SMS; (ii) password plus memorable word; (iii) bank card plus fingerprint.
- (i) Something you know plus something you have: 2FA.
- (ii) Both are things you know: only one factor type, so not 2FA.
- (iii) Something you have plus something you are: 2FA.
Answer: (i) and (iii) - Imran gets an SMS: his parcel is held and he must pay Rs 50 at a link whose address is a misspelt version of the courier’s name. What is this, and what should he do?
- A text message luring the user to a fake site is smishing (SMS phishing).
- The small fee is bait to collect his card details and OTP.
- He should not click the link; he should check his parcel only through the courier’s official website or app and delete the message.
Answer: Smishing; ignore the link and check through official channels - Sana’s online shop sells goods worth Rs 40,000 in a month through a gateway that charges 2% per transaction. How much does she pay in fees and receive?
- Fees = 2% of Rs 40,000 = Rs 800.
- Amount received = Rs 40,000 − Rs 800 = Rs 39,200.
Answer: Fees Rs 800; she receives Rs 39,200
Exam shortcuts
- Read the first letter as the seller and the last as the buyer: in C2B the consumer sells to the business.
- Debit means your own money now; credit means the bank’s money, repaid later.
- The gateway carries payment details; the issuing bank (the customer’s bank) decides whether to approve.
- For 2FA the two factors must be of different types; two things you know do not count.
- An OTP is valid once and expires quickly, and must never be shared with anyone.
Common mistakes
- Thinking a padlock or HTTPS proves a shop is genuine; it only shows that the connection is encrypted.
- Calling a classifieds site deal B2C; when individuals sell to each other through a platform, it is C2C.
- Believing a debit card is a loan; it spends money already in the holder’s account.
- Counting password plus PIN or password plus security question as two-factor authentication.
- Sharing an OTP with a caller who claims to be from the bank.
Practice MCQs
- An online store that sells clothes directly to individual shoppers follows which e-commerce model?
A) B2C
B) B2B
C) C2C
D) G2C
Answer: A) B2C — A business selling to individual consumers is B2C. B2B is one business selling to another, C2C is individuals selling to each other, and G2C is a government serving citizens. - Two individuals buy and sell a used motorbike through an online classifieds website. Which model is this?
A) B2C
B) B2B
C) C2C
D) C2B
Answer: C) C2C — Both buyer and seller are private individuals, and the website only provides the meeting place, so it is C2C. B2C and B2B need a business as the seller, and C2B means a person selling to a business. - What does OTP stand for in online banking?
A) Online Transfer Protocol
B) One-Time Password
C) Official Transaction PIN
D) Open Token Payment
Answer: B) One-Time Password — An OTP is a One-Time Password, a code valid for a single login or transaction that expires quickly. The other expansions are invented. - What does cash on delivery mean when shopping online?
A) The seller pays the courier in advance
B) The buyer pays by card before dispatch
C) The courier refunds the buyer on delivery
D) The buyer pays when the parcel is handed over
Answer: D) The buyer pays when the parcel is handed over — With cash on delivery, the buyer pays the courier on receiving the goods, so nothing is paid in advance. Paying by card before dispatch is prepayment, and neither courier advances nor refunds describe COD. - A car manufacturer orders tyres in bulk from a tyre company through an online supplier portal. Which e-commerce model is this?
A) B2C
B) B2B
C) C2C
D) C2B
Answer: B) B2B — Both the buyer and the seller are businesses, so it is B2B. B2C would need an individual buyer, while C2C and C2B need an individual seller. - Which card takes money directly from the holder’s own bank account at the time of purchase?
A) Debit card
B) Credit card
C) Loyalty points card
D) Store gift voucher
Answer: A) Debit card — A debit card is linked to the holder’s bank account and deducts the amount immediately. A credit card spends money lent by the bank, a loyalty card only collects points, and a gift voucher holds a prepaid value, not a bank balance. - Which service securely carries a customer’s card details from an online shop’s checkout page to the banks for approval?
A) Web hosting server
B) Search engine
C) Payment gateway
D) DNS server
Answer: C) Payment gateway — A payment gateway encrypts the payment details and passes them to the card network and banks, then returns approval or refusal. A hosting server stores the website, a search engine finds pages, and DNS turns domain names into IP addresses. - A checkout page shows a padlock icon and https in the address bar. What does this tell the buyer?
A) The shop is guaranteed to be honest
B) The payment carries no bank charges
C) The site is approved by the government
D) Data sent between browser and site is encrypted
Answer: D) Data sent between browser and site is encrypted — HTTPS and the padlock mean the connection uses TLS encryption, so others cannot read the data in transit. They do not prove the seller is honest, since fake sites can use HTTPS too, and they say nothing about charges or government approval. - A freelance graphic designer offers her services online and a company hires her for a project. Which model does this deal fit best?
A) B2C
B) B2B
C) C2C
D) C2B
Answer: D) C2B — An individual is selling a service to a business, which is consumer to business (C2B). In B2C and B2B the seller is a business, and in C2C the buyer would be another individual. - Which login combination is NOT two-factor authentication?
A) Password and an OTP sent to the phone
B) Password and a PIN
C) ATM card and its PIN
D) Password and a fingerprint scan
Answer: B) Password and a PIN — A password and a PIN are both things you know, so only one type of factor is used. A password with a phone OTP (know + have), a card with its PIN (have + know) and a password with a fingerprint (know + are) each combine two different types. - A trusted third party holds the buyer’s money and releases it to the seller only after the buyer confirms delivery. What is this arrangement called?
A) Escrow
B) Chargeback
C) Tokenisation
D) Cash on delivery
Answer: A) Escrow — Escrow keeps the payment with a neutral party until delivery is confirmed. A chargeback reverses a card payment after a dispute, tokenisation hides card numbers, and in cash on delivery the buyer pays the courier directly with no third party holding funds. - A digital wallet stores a random substitute value instead of the real card number, so a stolen value is useless elsewhere. What is this technique called?
A) Chargeback
B) Escrow
C) Tokenisation
D) Phishing
Answer: C) Tokenisation — Replacing the card number with a meaningless token is tokenisation. A chargeback reverses a disputed payment, escrow holds money until delivery, and phishing is a fraud technique, not a protection. - Bilal gets a call from someone claiming to be from his bank, asking him to read out the OTP just sent to his phone to stop his card being blocked. What should he do?
A) Read out the OTP, since the caller knows his name
B) Refuse, end the call and ring the bank’s official number
C) Share the OTP but keep his PIN secret
D) Send the OTP by SMS instead of saying it
Answer: B) Refuse, end the call and ring the bank’s official number — Banks never ask customers for an OTP, so the call is a scam; Bilal should refuse and contact the bank himself. Sharing the OTP in any way, by voice or SMS, lets the fraudster approve a transaction, and the caller knowing his name proves nothing. - Sana’s shop takes 120 card orders in a month averaging Rs 1,500 each. The gateway charges 2% of each transaction plus Rs 5 per transaction. What are the total gateway fees?
A) Rs 3,600
B) Rs 600
C) Rs 4,800
D) Rs 4,200
Answer: D) Rs 4,200 — Each order costs 2% of Rs 1,500 = Rs 30 plus Rs 5, so Rs 35, and 120 × 35 = Rs 4,200. Rs 3,600 leaves out the fixed Rs 5, Rs 600 counts only the fixed part, and Rs 4,800 does not follow from the charges. - Priya’s credit card bill is Rs 20,000 and she pays Rs 8,000 by the due date. If the card charges 3% interest for one month on the unpaid balance only, how much interest is added?
A) Rs 600
B) Rs 240
C) Rs 360
D) Rs 960
Answer: C) Rs 360 — The unpaid balance is Rs 20,000 − Rs 8,000 = Rs 12,000, and 3% of Rs 12,000 = Rs 360. Rs 600 charges interest on the whole bill, Rs 240 charges it on the amount she paid, and Rs 960 does not match any part of the bill.
Questions
Is e-commerce the same as e-business?
No. E-commerce is buying and selling online. E-business is wider and also includes a company’s internal online activities, such as managing suppliers, staff and customer service.
Is a credit card or a debit card safer online?
Both can be used safely with OTP checks. Many people prefer a credit card or a separate low-balance card for online shopping, because a fraudulent charge does not immediately empty their own bank account.
Why do banks send an OTP for online payments?
The OTP proves that the person paying also has the registered phone. Even if someone steals the card details, they cannot complete the payment without the code.
What should I do if money is taken from my account by fraud?
Contact your bank at once on its official helpline to block the card or account, report the transaction, change your passwords and report the fraud to the cybercrime authority in your country.