Back to homeAP® Computer Science Principles · AP Computer Science Principles · Change subject
Start for free
AP CSP · AP® Computer Science Principles
Digital citizenship · Digital services

E-commerce

Say you spot a pair of sneakers on a Black Friday ad and want to buy them from your phone before the bus gets to school. Online shopping is convenient, but it is also the favorite hunting ground of anyone who wants to trick you. A few simple checks separate a safe purchase from a nasty surprise. At the end, we'll come back to that Black Friday deal.

Before paying: checks and payment methods

Safe purchase process: an online store with https and a padlock, three payment methods (card, mobile wallet and cash on delivery) and a confirmation with the receipt saved. online store payment method https ://store.com Total $24.90 delivery included Pay contact · returns card wallet cash on delivery confirmation and receipt saved
Practice★☆☆Not started
List three checks you should carry out on an online store before paying, and explain what risk each one prevents.

List three checks you should carry out on an online store before paying, and explain what risk each one prevents.

Solve
Practice★☆☆Not started
Explain the difference between paying by card, using a digital mobile wallet, and paying cash on delivery, and state one advantage of each payment method.

Explain the difference between paying by card, using a digital mobile wallet, and paying cash on delivery, and state one advantage of each payment method.

Solve
Practice★☆☆Not started
The figure shows the workflow of a secure online purchase. Before the payment, a step marked with a question mark is missing. Describe what checks that step includes and…

The figure shows the workflow of a secure online purchase.

Choose the product ? Pay with verification Save the invoice

Before the payment, a step marked with a question mark is missing. Describe what checks that step includes and explain why the final step—saving the confirmation and the invoice—is also part of purchasing securely.

Solve

Secure payments: verification and cards

A stranger who only has a card number tries to pay in an online store; the bank sends a code to the cardholder's cell phone and, without that code, the payment is blocked. card number known by someone Online store Pay payment Bank Code 482 915 cardholder's phone without the code, it is blocked
Practice★☆☆Not started
When paying online, your bank sends a code to your cell phone to confirm the transaction (3-D Secure). Explain what additional security factor this step adds, and what…

When paying online, your bank sends a code to your cell phone to confirm the transaction (3-D Secure). Explain what additional security factor this step adds, and what happens if someone knows your card numbers but does not have your phone.

Solve
Practice★★☆Not started
Compare a debit card linked to a family bank account and a reloadable prepaid card for supervised online purchases by a minor: what limitations each imposes, what…

Compare a debit card linked to a family bank account and a reloadable prepaid card for supervised online purchases by a minor: what limitations each imposes, what happens if the card number is leaked, and which one you would choose to start with, justifying your answer.

Solve
Practice★★★Not started
When checking out an order of 24.50 dollars on a web store, the system offers you three payment methods:\n- Option A: Save the card in the store and activate "1-click…

When checking out an order of 24.50 dollars on a web store, the system offers you three payment methods:\n- Option A: Save the card in the store and activate "1-click checkout".\n- Option B: Manually enter the card number, expiration date, and CVV on each purchase, without saving them.\n- Option C: Generate a single-use virtual card linked to a maximum balance of 25.00 dollars from your bank's app.\na) Analyze the technical difference between storing your banking details directly on the store's servers and using a gateway with "tokenization".\nb) If the store were to suffer a security breach and its database were leaked to the internet, predict the consequences for you in each of the three options.\nc) Justify which option you would choose to balance convenience and cybersecurity, and which two-factor authentication mechanism (SCA / 3D Secure) would come into play.

Solve

Prices, sales tax and receipts

Headphones with a price tag of 40 dollars before tax and 43.20 dollars with sales tax; a bar shows the base price of 40 dollars plus 8% sales tax (3.20 dollars) up to the total of 43.20 dollars. before tax $40.00 with tax $43.20 base $40.00 $3.20 tax 8% $43.20 in total
Practice★★☆Not started
Explain what a digital invoice is, what minimum information it must contain, and what advantages keeping it offers over a paper receipt when you need to make a warranty…

Explain what a digital invoice is, what minimum information it must contain, and what advantages keeping it offers over a paper receipt when you need to make a warranty claim.

Solve

Traps and fraud in online shopping

Product page of an online store with the price reduced from 120 dollars to 24 dollars "today only", combined with payment only by advance wire transfer to an unknown seller and with no option to pay by card. "today only" $120 $24 Buy + wire transfer only in advance ? no card
Practice★★★Not started
Your grandmother wants to shop online for the first time and has received this link via text message: "Professional blender for 14.99 dollars (previously 89.90 dollars),…

Your grandmother wants to shop online for the first time and has received this link via text message: "Professional blender for 14.99 dollars (previously 89.90 dollars), offer valid today only", which leads to the website www.chollos-hogar-express.top.\na) Carry out a security audit of the link: identify four technical and legal elements that you should check on that page before entering any data (certificate and protocol, legal notice and tax ID (EIN), contact channels, and available payment gateways).\nb) Predict the specific risks she faces if she enters her bank details on that page.\nc) Design a simple four-step protocol for an elderly member of your family to independently check whether an online store is legitimate before buying.

Solve
Practice★★☆Not started
A website offers sneakers worth $\$120$ for only $\$24$ "today only" and accepts a wire transfer in advance as the only payment method. Analyze the warning signs of…

A website offers sneakers worth $\$120$ for only $\$24$ "today only" and accepts a wire transfer in advance as the only payment method. Analyze the warning signs of fraud in this offer, explain why a wire transfer is the riskiest payment method in this case, and describe what you would do.

Solve
Practice★★☆Not started
An app offers a "seven-day free trial" and then charges $\$8.99…

An app offers a "seven-day free trial" and then charges $\$8.99$ per month with an almost invisible notice. Explain what design tactics it uses to make you forget to cancel (dark patterns), how to organize yourself to avoid overpaying (calendar reminder, checking bank statements), and what rights you have if you have already been charged.

Solve
Practice★★☆Not started
An unfamiliar store has a 4.9-star rating with five hundred generic reviews ("Great!", "Perfect") almost all published in the same month. Explain how to detect paid-for…

An unfamiliar store has a 4.9-star rating with five hundred generic reviews ("Great!", "Perfect") almost all published in the same month. Explain how to detect paid-for reviews, what signs reveal they are fake, and how much weight you give to ratings when making a purchasing decision.

Solve
Practice★☆☆Not started
Online stores detect when you leave an "abandoned cart" and follow up with reminders and coupons. Explain what tactic they use, how they know you were browsing, and how…

Online stores detect when you leave an "abandoned cart" and follow up with reminders and coupons. Explain what tactic they use, how they know you were browsing, and how you can turn this tactic to your advantage.

Solve
Practice★☆☆Not started
Many games allow you to buy content (skins, coins, passes) with a single click. Explain how these in-game purchases differ from a standard purchase in a store, why it is…

Many games allow you to buy content (skins, coins, passes) with a single click. Explain how these in-game purchases differ from a standard purchase in a store, why it is advisable to ask for permission at home, and what you would check regarding saved payment methods.

Solve
Practice★★★Not started
Three people search simultaneously for the same hotel room for the same dates and get these prices:\n- User A (desktop computer, 1st visit, accesses through a price…

Three people search simultaneously for the same hotel room for the same dates and get these prices:\n- User A (desktop computer, 1st visit, accesses through a price comparison site): 78.00 dollars.\n- User B (high-end smartphone, 4th visit in 48 hours to the same hotel, official app): 98.50 dollars.\n- User C (mid-range smartphone, 1st visit, incognito tab on a 4G cellular network): 84.00 dollars.\na) Interpret which digital tracking mechanisms (cookies, device fingerprinting, demand history) explain the 20.50 dollars difference between User A and User B.\nb) Design a verification experiment with three technical steps to check whether an online store is applying dynamic price discrimination to you.\nc) Justify whether this practice complies with ethical principles and personal data protection legislation in e-commerce.

Solve

Buyer's rights

Comparison: an online purchase often comes with a return window (for example 14 or 30 days, set by the store's policy); in a physical store, where you try the garment on before paying, returns depend on the store's policy too. online purchase 30 store policy physical store policy varies
Practice★☆☆Not started
Explain the differences between buying from a professional seller and a private individual on a secondhand app: warranty, returns, liability if the product is…

Explain the differences between buying from a professional seller and a private individual on a secondhand app: warranty, returns, liability if the product is counterfeit. What protections do you lose when buying from a private individual?

Solve
Practice★☆☆Not started
Before buying clothes online, it is a good idea to read the return policy. State four details you would check (time limit, who pays for return shipping, required product…

Before buying clothes online, it is a good idea to read the return policy. State four details you would check (time limit, who pays for return shipping, required product condition, return location) and explain what problem each one prevents.

Solve
Practice★★☆Not started
For a gift worth $\$50…

For a gift worth $\$50$ you can buy at a local neighborhood shop or from an online retail giant. Compare price, speed, ease of returns, customer service, and local impact, and argue a reasoned decision for this specific case.

Solve

Digital money: cryptocurrencies and new forms of payment

Time graph illustrating the sudden, unpredictable swings in the value of a cryptocurrency. price time the price rises and falls uncontrollably of any central bank

Summary

Practice★★☆Not started
A website offers sneakers worth $\$120$ for only $\$24$ "today only" and accepts a wire transfer in advance as the only payment method. Analyze the warning signs of…

A website offers sneakers worth $\$120$ for only $\$24$ "today only" and accepts a wire transfer in advance as the only payment method. Analyze the warning signs of fraud in this offer, explain why a wire transfer is the riskiest payment method in this case, and describe what you would do.

Solve
See all the exercises in this section