IT 204: E-Commerce
By the end of this case study, you will be able to analyze a real-world payment integration strategy.
Composite/illustrative case: no named retailer evaluation or measured outcome source was supplied.
A Nepali online retailer needed to expand its payment options beyond the standard methods.
Payment Card Industry Data Security Standard (PCI DSS): A set of security standards designed to ensure that all companies that accept, process, store or transmit credit card information maintain a secure environment.
Directly handling card data is complex, expensive, and high-risk.
💡 The primary goal for any small-to-medium merchant is to reduce their PCI scope as much as possible.
The merchant chose an integration method that keeps card data completely off their servers.
Result: The merchant's system never sees or touches the raw card number. ⚡
Illustrative integration; named-provider availability and certification are unverified. HPP reduces scope, not every merchant responsibility.
Step through the Hosted Payment Page flow to see exactly where the customer's browser and card data are at each stage.
Scenario: the browser returns to /order-success, but the server has not confirmed payment. Should the warehouse ship?
If status is uncertain, show “Payment being checked—please do not pay again yet.” Reconcile before fulfilment.
This HPP approach drastically simplifies PCI compliance.
For merchants that completely outsource all cardholder data functions.
For merchants who store, process, or transmit cardholder data.
Choosing an HPP allows a merchant to qualify for SAQ A, the lightest level of PCI validation.
Simplified teaching model, not a PCI eligibility decision; see the following qualification slide.
Answer these 3 questions to determine your merchant's PCI DSS Self-Assessment Questionnaire tier.
Q1: Does your website directly collect card numbers (e.g., via a self-hosted input form or iFrame)?
Q2: Does your server store, process, or transmit any full cardholder data (PAN, CVV, expiry)?
Q3: Do you accept card payments through physical POS hardware at a brick-and-mortar store?
Confirm the current questionnaire and evidence with the acquirer/compliance-accepting entity. A three-question classroom quiz cannot certify eligibility.
How can the site offer a "save card" feature without storing card data?
Tokenization: A process where sensitive card numbers are replaced with a unique, non-sensitive equivalent known as a "token." This token is useless to attackers.
Use fake/test values only; never enter real card data. Browser token generation is an analogy, not a production vault.
Enter a fake card number and see how the gateway replaces it with a safe, meaningless token that the merchant stores instead.
This token references the card in the gateway's PCI-certified vault. It cannot be reverse-engineered to recover the original card number.
Use fake/test data only in class. Never store card verification codes after authorisation; tokenisation is not permission to retain CVV.
To prevent fraudulent transactions and chargebacks, 3-D Secure was integrated.
The customer's bank recognizes the transaction as low-risk and approves it instantly without any extra steps. This is the ideal user experience.
The bank requires an extra step for verification (Strong Customer Authentication - SCA). The user is prompted to enter:
Benefit: Liability for fraudulent chargebacks often shifts from the merchant to the card-issuing bank.
Illustrative weights and thresholds, not an issuer algorithm. Authentication does not guarantee authorisation or eliminate all liability.
Adjust the transaction risk factors to see whether the bank's algorithm would trigger a Frictionless or Challenge flow.
The simulator's weights, thresholds and “soft/hard” labels are illustrative. They do not disclose any bank's real fraud algorithm.
Accepting a new payment type adds operational complexity. Automation is key.
Reconciliation: The process of matching transactions processed by the payment gateway to the funds deposited into the merchant's bank account.
Illustrative daily batch: A captured Rs 3,000; B captured Rs 5,000; C declined Rs 2,000. Refund Rs 1,000 from A; fee 2% of captured value. No other adjustments.
Real contracts may handle fees on refunds, reserves and settlement dates differently. Match by transaction and payout reference, not amount alone.
Original provider ownership, local-partner and Nepal availability examples below remain unverified; do not treat them as onboarding advice.
This HPP and Tokenization model is a standard for enabling card payments in Nepal.
Companies like NCHL (N-PAY) and local banks provide the infrastructure for card processing.
Merchants targeting tourists or international customers often use Stripe or Cybersource via a local partner bank.
It allows Nepali SMEs to access global payment standards without massive upfront investment in security infrastructure.
Composite/illustrative case: no named retailer evaluation or measured outcome source was supplied.
A smart technical strategy directly led to improved security posture and increased revenue.
Illustrative gross model, not net profit: new costs are omitted; 75% liability avoidance and 8% sales uplift are assumptions, not guarantees.
Estimate the monthly financial benefits of implementing HPP + Tokenization + 3-D Secure for a Nepali online store.
Illustrative calculator defaults: 200 transactions × Rs 3,500 = Rs 700,000 revenue. The model assumes 2.5% chargebacks, 75% liability avoided and 8% extra sales.
What are the core lessons from this implementation?
Revise the answers in the full note.
This case study demonstrates how strategic technology choices in payment systems can unlock growth while minimizing risk.
Next Up: Unit 4.6 - Digital Wallets and Mobile Payment Systems