Payment Method Identifiers

W3C Candidate Recommendation

This version:
https://www.w3.org/TR/2025/CR-payment-method-id-20250510/
Latest published version:
https://www.w3.org/TR/payment-method-id/
Latest editor's draft:
https://w3c.github.io/webpayments-method-identifiers/
Implementation report:
https://w3.org/tbc
Previous version:
https://www.w3.org/TR/2016/WD-payment-method-id-20160421/
Editors:
Adrian Bateman (Microsoft Corporation)
Zach Koch (Google)
Roy McElmurry (Facebook)
Marcos Cáceres (Mozilla)
Participate:
GitHub w3c/webpayments-method-identifiers
File a bug
Commit history
Pull requests

Abstract

This specification defines payment method identifiers and how they are validated, and, where applicable, minted and formally registered with the W3C. Other specifications (e.g., Payment Request) make use of these identifiers to facilitate monetary transactions on the web platform.

Status of This Document

This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at https://www.w3.org/TR/.

Note

Please file any issues with this specification in the payment method identifiers repository on GitHub.

This document was published by the Web Payments Working Group as a Candidate Recommendation. This document is intended to become a W3C Recommendation.

GitHub Issues are preferred for discussion of this specification.

W3C publishes a Candidate Recommendation to indicate that the document is believed to be stable and to encourage implementation by the developer community. This Candidate Recommendation is expected to advance to Proposed Recommendation no earlier than 31 October 2017.

Please see the Working Group's implementation report.

Publication as a Candidate Recommendation does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.

This document was produced by a group operating under the W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.

This document is governed by the 1 March 2019 W3C Process Document.

Payment method identifiers

A payment method identifier is either a:

URL-based payment method identifiers

A URL-based payment method identifier is a URL that is valid as per the steps to validate a URL-based payment method identifier.

Note

Developers wanting to use a URL-based payment method identifier for a third party payment handler are encouraged to read the Payment Method Best Practice document.

Validation

The steps to validate a URL-based payment method identifier are given by the following algorithm. The algorithm takes a url URL as input and returns true if the URL is valid:

  1. If url's scheme is not "https", return false.
  2. If url's username or password is not the empty string, return false.
  3. Otherwise, return true.

Comparison

User agents MUST perform comparisons of URL-based payment method identifiers using equals. [URL]

Standardized payment method identifiers

A standardized payment method identifier is a string that represents a standardized payment method.

User agents MAY support zero or more standardized payment method identifiers listed in section .

Validity

Note

When minting a new standardized payment method identifier for the purpose of standardization, be sure that it conforms to the following regular expression: [a-z0-9-]+.

User agents MUST NOT enforce validity or well-formedness of standardized payment method identifiers.

Comparison

For standardized payment method identifiers, user agents MUST compare strings in a case-sensitive manner (code point for code point).

Registry of standardized payment methods

A standardized payment method is a payment method that has undergone standardization at the W3C, and is listed in this registry.

The Working Group has minted the following standardized payment method identifiers:

"basic-card"
The Basic Card Payment specification.

Privacy and security consideration

There are no known privacy or security concerns to be taken into considerations at this time.