RFC 8905 | The 'payto' URI Scheme | October 2020 |
Dold & Grothoff | Informational | [Page] |
This document defines the 'payto' Uniform Resource Identifier (URI) scheme for designating targets for payments.¶
A unified URI scheme for all payment target types allows applications to offer user interactions with URIs that represent payment targets, simplifying the introduction of new payment systems and applications.¶
This document is not an Internet Standards Track specification; it is published for informational purposes.¶
This is a contribution to the RFC Series, independently of any other RFC stream. The RFC Editor has chosen to publish this document at its discretion and makes no statement about its value for implementation or deployment. Documents approved for publication by the RFC Editor are not candidates for any level of Internet Standard; see Section 2 of RFC 7841.¶
Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at https://www.rfc-editor.org/info/rfc8905.¶
Copyright (c) 2020 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
This document defines the 'payto' Uniform Resource Identifier (URI) [RFC3986] scheme for designating transfer form data for payments.¶
A 'payto' URI always identifies the target of a payment. A 'payto' URI consists of a payment target type, a target identifier, and optional parameters such as an amount or a payment reference.¶
The interpretation of the target identifier is defined by the payment target type and typically represents either a bank account or an (unsettled) transaction.¶
A unified URI scheme for all payment target types allows applications to offer user interactions with URIs that represent payment targets, simplifying the introduction of new payment systems and applications.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
This document uses the Augmented Backus-Naur Form (ABNF) of [RFC5234].¶
payto-URI = "payto://" authority path-abempty [ "?" opts ] opts = opt *( "&" opt ) opt-name = generic-opt / authority-specific-opt opt-value = *pchar opt = opt-name "=" opt-value generic-opt = "amount" / "receiver-name" / "sender-name" / "message" / "instruction" authority-specific-opt = ALPHA *( ALPHA / DIGIT / "-" / "." ) authority = ALPHA *( ALPHA / DIGIT / "-" / "." )¶
'path-abempty' is defined in Section 3.3 of [RFC3986]. 'pchar' is defined in Appendix A of [RFC3986].¶
The authority component of a payment URI identifies the payment target type. The payment target types are defined in the "Payto Payment Target Types" registry (see Section 10). The path component of the URI identifies the target for a payment as interpreted by the respective payment target type. The query component of the URI can provide additional parameters for a payment. Every payment target type SHOULD accept the options defined in generic-opt. The default operation of applications that invoke a URI with the 'payto' scheme MUST be to launch an application (if available) associated with the payment target type that can initiate a payment. If multiple handlers are registered for the same payment target type, the user SHOULD be able to choose which application to launch. This allows users with multiple bank accounts (each accessed via the respective bank's banking application) to choose which account to pay with. An application SHOULD allow dereferencing a 'payto' URI even if the payment target type of that URI is not registered in the "Payto Payment Target Types" registry. Details of the payment MUST be taken from the path and options given in the URI. The user SHOULD be allowed to modify these details before confirming a payment.¶
Valid Example:¶
payto://iban/DE75512108001245126199?amount=EUR:200.0&message=hello¶
Invalid Example (authority missing):¶
payto:iban/12345¶
Applications MUST accept URIs with options in any order. The "amount" option MUST NOT occur more than once. Other options MAY be allowed multiple times, with further restrictions depending on the payment target type. The following options SHOULD be understood by every payment target type.¶
The amount to transfer. The format MUST be:¶
amount = currency ":" unit [ "." fraction ] currency = 1*ALPHA unit = 1*(DIGIT / ",") fraction = 1*(DIGIT / ",")¶
If a 3-letter 'currency' is used, it MUST be an [ISO4217] alphabetic code. A payment target type MAY define semantics beyond ISO 4217 for currency codes that are not 3 characters. The 'unit' value MUST be smaller than 2^53. If present, the 'fraction' MUST consist of no more than 8 decimal digits. The use of commas is optional for readability, and they MUST be ignored.¶
Various payment systems use restricted character sets. An application that processes 'payto' URIs MUST convert characters that are not allowed by the respective payment systems into allowable characters using either an encoding or a replacement table. This conversion process MAY be lossy, except for the instruction field. If the value of the instruction field would be subject to lossy conversion, modification, or truncation, the application SHOULD refuse further processing of the payment until a different value for the instruction is provided.¶
To avoid special encoding rules for the payment target identifier, the userinfo component [RFC3986] is disallowed in 'payto' URIs. Instead, the payment target identifier is given as an option, where encoding rules are uniform for all options.¶
Defining a generic way of tagging the language of option fields containing natural language text (such as "receiver-name", "sender-name", and "message) is out of the scope of this document, as internationalization must accommodate the restrictions and requirements of the underlying banking system of the payment target type. The internationalization concerns SHOULD be individually defined by each payment target type.¶
A registry of "Payto Payment Target Types" is described in Section 10. The registration policy for this registry is "First Come First Served", as described in [RFC8126]. When requesting new entries, careful consideration of the following criteria is strongly advised:¶
Documents that support requests for new registry entries should provide the following information for each entry:¶
This document populates the registry with seven entries as follows (see also Section 10).¶
payto://ach/122000661/1234¶
payto://bic/SOGEDEFFXXX¶
payto://iban/DE75512108001245126199 payto://iban/SOGEDEFFXXX/DE75512108001245126199¶
payto://upi/alice@example.com?receiver-name=Alice&amount=INR:200¶
payto://bitcoin/12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu¶
payto://ilp/g.acme.bob¶
payto://void/?amount=EUR:10.5¶
Interactive applications handling the 'payto' URI scheme MUST NOT initiate any financial transactions without prior review and confirmation from the user and MUST take measures to prevent clickjacking [HMW12].¶
Unless a 'payto' URI is received over a trusted, authenticated channel, a user might not be able to identify the target of a payment. In particular, due to homographs [unicode-tr36], a payment target type SHOULD NOT use human-readable names in combination with unicode in the target account specification, as it could give the user the illusion of being able to identify the target account from the URI.¶
The authentication/authorization mechanisms and transport security services used to process a payment encoded in a 'payto' URI are handled by the application and are not in scope of this document.¶
To avoid unnecessary data collection, payment target types SHOULD NOT include personally identifying information about the sender of a payment that is not essential for an application to conduct a payment.¶
IANA maintains the "Uniform Resource Identifier (URI) Schemes" registry, which contains an entry for the 'payto' URI scheme as follows. IANA has updated that entry to reference this document.¶
Christian Grothoff <grothoff@gnu.org>¶
Christian Grothoff <grothoff@gnu.org>¶
This document specifies a list of payment target types. It is possible that future work will need to specify additional payment target types. The GNUnet Assigned Numbers Authority (GANA) [GANA] operates the "Payto Payment Target Types" registry to track the following information for each payment target type:¶
The entries in the "Payto Payment Target Types" registry defined in this document are as follows:¶
Name | Contact | Reference |
---|---|---|
ach | N/A | RFC 8905 |
bic | N/A | RFC 8905 |
iban | N/A | RFC 8905 |
upi | N/A | RFC 8905 |
bitcoin | N/A | RFC 8905 |
ilp | N/A | RFC 8905 |
void | N/A | RFC 8905 |