w3c / w3c/payment-request

Authentication of merchant domain and details

Open
#1,014 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
510
Forks
139
PR merge metrics
No merged PRs in 30d

Description

Hello,

I was reading the spec and I don't really understand how the merchant domain or payment details are authenticated. How do you prevent such a scenario:

  1. A user visits secure-legit-trusted-store.com, adds a $1000 laptop to their cart and initiates a payment
  2. secure-legit-trusted-store.com backend visits buy-crypto-online.com and initiates a payment for $1000
  3. secure-legit-trusted-store.com relays the request from buy-crypto-online.com, but changes details to The best laptop
  4. User confirms the payment
  5. secure-legit-trusted-store.com relays the response to buy-crypto-online.com

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Payment Request API specification referenced by the issue and trace how merchant domains, payment details, and relayed requests are defined. Determine whether the scenario is covered by the current specification; done means reaching a clear security decision and specifying or documenting the required authentication behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api, payments, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.