1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
|
Independent Submission F. Dold
Request for Comments: 8905 Taler Systems SA
Category: Informational C. Grothoff
ISSN: 2070-1721 Bern University of Applied Sciences
October 2020
The 'payto' URI Scheme for Payments
Abstract
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.
Status of This Memo
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 Notice
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.
Table of Contents
1. Introduction
1.1. Objective
1.2. Requirements Language
2. Syntax of a 'payto' URI
3. Semantics
4. Examples
5. Generic Options
6. Internationalization and Character Encoding
7. Tracking Payment Target Types
7.1. ACH Bank Account
7.2. Business Identifier Code
7.3. International Bank Account Number
7.4. Unified Payments Interface
7.5. Bitcoin Address
7.6. Interledger Protocol Address
7.7. Void Payment Target
8. Security Considerations
9. IANA Considerations
10. Payto Payment Target Types
11. References
11.1. Normative References
11.2. Informative References
Authors' Addresses
1. Introduction
This document defines the 'payto' Uniform Resource Identifier (URI)
[RFC3986] scheme for designating transfer form data for payments.
1.1. Objective
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.
1.2. Requirements Language
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.
2. Syntax of a 'payto' URI
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].
3. Semantics
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.
4. Examples
Valid Example:
payto://iban/DE75512108001245126199?amount=EUR:200.0&message=hello
Invalid Example (authority missing):
payto:iban/12345
5. Generic Options
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.
amount: 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.
receiver-name: Name of the entity that receives the payment
(creditor). The value of this option MAY be subject to lossy
conversion, modification, and truncation (for example, due to line
wrapping or character set conversion).
sender-name: Name of the entity that makes the payment (debtor).
The value of this option MAY be subject to lossy conversion,
modification, and truncation (for example, due to line wrapping or
character set conversion).
message: A short message to identify the purpose of the payment.
The value of this option MAY be subject to lossy conversion,
modification, and truncation (for example, due to line wrapping or
character set conversion).
instruction: A short message giving payment reconciliation
instructions to the recipient. An instruction that follows the
character set and length limitation defined by the respective
payment target type SHOULD NOT be subject to lossy conversion.
6. Internationalization and Character Encoding
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.
7. Tracking Payment Target Types
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:
1. The description clearly defines the syntax and semantics of the
payment target and optional parameters if applicable.
2. Relevant references are provided if they are available.
3. The chosen name is appropriate for the payment target type, does
not conflict with well-known payment systems, and avoids
potential to confuse users.
4. The payment system underlying the payment target type is not
fundamentally incompatible with the general options (such as
positive decimal amounts) in this specification.
5. The payment target type is not a vendor-specific version of a
payment target type that could be described more generally by a
vendor-neutral payment target type.
6. The specification of the new payment target type remains within
the scope of payment transfer form data. In particular,
specifying complete invoices is not in scope. Neither are
processing instructions to the payment processor or bank beyond a
simple payment.
7. The payment target and the options do not contain the payment
sender's account details.
Documents that support requests for new registry entries should
provide the following information for each entry:
Name: The name of the payment target type (case-insensitive ASCII
string, restricted to alphanumeric characters, dots, and dashes).
Description: A description of the payment target type, including the
semantics of the path in the URI if applicable.
Example: At least one example URI to illustrate the payment target
type.
Contact: The contact information of a person to contact for further
information.
References: Optionally, references describing the payment target
type (such as an RFC) and target-specific options or references
describing the payment system underlying the payment target type.
This document populates the registry with seven entries as follows
(see also Section 10).
7.1. ACH Bank Account
Name: ach
Description: Automated Clearing House (ACH). The path consists of
two components: the routing number and the account number.
Limitations on the length and character set of option values are
defined by the implementation of the handler. Language tagging
and internationalization of options are not supported.
Example:
payto://ach/122000661/1234
Contact: N/A
References: [NACHA], RFC 8905
7.2. Business Identifier Code
Name: bic
Description: Business Identifier Code (BIC). The path consists of
just a BIC. This is used for wire transfers between banks. The
registry for BICs is provided by the Society for Worldwide
Interbank Financial Telecommunication (SWIFT). The path does not
allow specifying a bank account number. Limitations on the length
and character set of option values are defined by the
implementation of the handler. Language tagging and
internationalization of options are not supported.
Example:
payto://bic/SOGEDEFFXXX
Contact: N/A
References: [BIC], RFC 8905
7.3. International Bank Account Number
Name: iban
Description: International Bank Account Number (IBAN). Generally,
the IBAN allows to unambiguously derive the associated Business
Identifier Code (BIC) using a lookup in the respective proprietary
translation table. However, some legacy applications process
payments to the same IBAN differently based on the specified BIC.
Thus, the path can consist of either a single component (the IBAN)
or two components (BIC followed by IBAN). The "message" option of
the 'payto' URI corresponds to the "unstructured remittance
information" of Single Euro Payments Area (SEPA) credit transfers
and is thus limited to 140 characters with character set
limitations that differ according to the countries of the banks
and payment processors involved in the payment. The "instruction"
option of the 'payto' URI corresponds to the "end-to-end
identifier" of SEPA credit transfers and is thus limited to, at
most, 35 characters, which can be alphanumeric or from the allowed
set of special characters, i.e., "+?/-:().,'". Language tagging
and internationalization of options are not supported.
Examples:
payto://iban/DE75512108001245126199
payto://iban/SOGEDEFFXXX/DE75512108001245126199
Contact: N/A
References: [ISO20022], RFC 8905
7.4. Unified Payments Interface
Name: upi
Description: Unified Payment Interface (UPI). The path is an
account alias. The amount and receiver-name options are mandatory
for this payment target. Limitations on the length and character
set of option values are defined by the implementation of the
handler. Language tags and internationalization of options are
not supported.
Example:
payto://upi/alice@example.com?receiver-name=Alice&amount=INR:200
Contact: N/A
References: [UPILinking], RFC 8905
7.5. Bitcoin Address
Name: bitcoin
Description: Bitcoin protocol. The path is a "bitcoinaddress", as
per [BIP0021]. Limitations on the length and character set of
option values are defined by the implementation of the handler.
Language tags and internationalization of options are not
supported.
Example:
payto://bitcoin/12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu
Contact: N/A
References: [BIP0021], RFC 8905
7.6. Interledger Protocol Address
Name: ilp
Description: Interledger protocol (ILP). The path is an ILP
address, as per [ILP-ADDR]. Limitations on the length and
character set of option values are defined by the implementation
of the handler. Language tagging and internationalization of
options are not supported.
Example:
payto://ilp/g.acme.bob
Contact: N/A
References: [ILP-ADDR], RFC 8905
7.7. Void Payment Target
Name: void
Description: The "void" payment target type allows specifying the
parameters of an out-of-band payment (such as cash or other types
of in-person transactions). The path is optional and interpreted
as a comment. Limitations on the length and character set of
option values are defined by the implementation of the handler.
Language tags and internationalization of options are not
supported.
Example:
payto://void/?amount=EUR:10.5
Contact: N/A
References: RFC 8905
8. Security Considerations
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.
9. IANA Considerations
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.
Scheme name: payto
Status: provisional
URI scheme syntax: See Section 2 of RFC 8905.
URI scheme semantics: See Section 3 of RFC 8905.
Applications/protocols that use this scheme name: payto URIs are
mainly used by financial software.
Contact: Christian Grothoff <grothoff@gnu.org>
Change controller: Christian Grothoff <grothoff@gnu.org>
References: See Section 11 of RFC 8905.
10. Payto Payment Target Types
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:
Name: The name of the payment target type (case-insensitive ASCII
string, restricted to alphanumeric characters, dots, and dashes)
Contact: The contact information of a person to contact for further
information
References: Optionally, references describing the payment target
type (such as an RFC) and target-specific options or references
describing the payment system underlying the 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 |
+---------+---------+-----------+
Table 1
11. References
11.1. Normative References
[ISO20022] International Organization for Standardization, "Financial
Services - Universal financial industry message scheme",
ISO 20022, May 2013, <https://www.iso.org>.
[ISO4217] International Organization for Standardization, "Codes for
the representation of currencies", ISO 4217, August 2015,
<https://www.iso.org>.
[NACHA] Nacha, "2020 Nacha Operating Rules & Guidelines", 2019.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>.
[RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifier (URI): Generic Syntax", STD 66,
RFC 3986, DOI 10.17487/RFC3986, January 2005,
<https://www.rfc-editor.org/info/rfc3986>.
[RFC5234] Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", STD 68, RFC 5234,
DOI 10.17487/RFC5234, January 2008,
<https://www.rfc-editor.org/info/rfc5234>.
[RFC8126] Cotton, M., Leiba, B., and T. Narten, "Guidelines for
Writing an IANA Considerations Section in RFCs", BCP 26,
RFC 8126, DOI 10.17487/RFC8126, June 2017,
<https://www.rfc-editor.org/info/rfc8126>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/info/rfc8174>.
[unicode-tr36]
Davis, M., Ed. and M. Suignard, Ed., "Unicode Technical
Report #36: Unicode Security Considerations", September
2014.
11.2. Informative References
[BIC] International Organization for Standardization, "Banking
-- Banking telecommunication messages -- Business
identifier code (BIC)", ISO 9362, December 2014,
<https://www.iso.org>.
[BIP0021] Schneider, N. and M. Corallo, "Bitcoin Improvement
Proposal 21", September 2019, <https://en.bitcoin.it/w/
index.php?title=BIP_0021&oldid=66778>.
[GANA] GNUnet e.V., "GNUnet Assigned Numbers Authority (GANA)",
April 2020, <https://gana.gnunet.org/>.
[HMW12] Huang, L., Moshchuk, A., Wang, H., Schecter, S., and C.
Jackson, "Clickjacking: Attacks and Defenses", 2012,
<https://www.usenix.org/system/files/conference/
usenixsecurity12/sec12-final39.pdf>.
[ILP-ADDR] Interledger, "ILP Addresses - v2.0.0",
<https://interledger.org/rfcs/0015-ilp-addresses/>.
[UPILinking]
National Payments Corporation of India, "Unified Payment
Interface - Common URL Specifications For Deep Linking And
Proximity Integration", November 2017,
<https://www.npci.org.in/sites/default/files/
UPI%20Linking%20Specs_ver%201.6.pdf>.
Authors' Addresses
Florian Dold
Taler Systems SA
7, rue de Mondorf
L-5421 Erpeldange
Luxembourg
Email: dold@taler.net
Christian Grothoff
Bern University of Applied Sciences
Quellgasse 21
CH-2501 Biel/Bienne
Switzerland
Email: christian.grothoff@bfh.ch
|