From 20faf8784c9078c2cca0ca362f61fd9aeeec9366 Mon Sep 17 00:00:00 2001 From: Adrian Hope-Bailie Date: Wed, 2 Nov 2016 16:37:50 +0200 Subject: [PATCH 1/2] Add Interledger SPSP proposal --- proposals/interledger-payment-method.html | 240 ++++++++++++++++++++++ 1 file changed, 240 insertions(+) create mode 100644 proposals/interledger-payment-method.html diff --git a/proposals/interledger-payment-method.html b/proposals/interledger-payment-method.html new file mode 100644 index 0000000..777b75c --- /dev/null +++ b/proposals/interledger-payment-method.html @@ -0,0 +1,240 @@ + + + + Interledger - Simple Payment Setup Protocol - Payment Method + + + + + + +
+

+ The Simple Payment Setup Protocol payment method specification describes the data formats used by the PaymentRequest API [[!PAYMENTREQUESTAPI]] to support payment using SPSP [[!SPSP]] and the Interledger Protocol. +

+
+ +
+
+ +
+
+
    +
  1. Figure out what should be in response.
  2. +
  3. Consider fixed sender amount
  4. +
+
+

Introduction

+

+ TODO +

+
+ +
+

Dependencies

+

+ This specification relies on several other underlying specifications. +

+
+
Payment Request Architecture
+
The terms Payment Method, + Payment App, and Payment Transaction + Message Specification are defined by the Payment Request Architecture document + [[!PAYMENTARCH]].
+
Payment Request API
+
The term PaymentRequest constructor is defined by the PaymentRequest API + specification [[!PAYMENTREQUESTAPI]].
+
Payment Method Identifiers
+
The term Payment + Method Identifier is defined by the Payment Method Identifiers specification + [[!METHODIDENTIFIERS]].
+
Web IDL
+
The IDL in this specification is defined by Web IDL [[!WEBIDL]].
+
Simple Payment Setup Protocol
+
This payment method is based on SPSP [[!SPSP]].
+
Interledger Payment Request
+
The data in the payment request maps directly to the Interledger Payment Request [[!IPR]].
+
+
+ +
+

Payment Method Identifier

+

The following payment method identifier strings are supported by the SPSP data formats.

+ + + + + +
Identifier StringDescription
https://interledger.org/webpayments/spspSimple Payment Setup Protocol
+
+ +
+

Payment flows

+ +
+ +
+

Payment Method Specific Data for the PaymentRequest constructor

+

This section describes payment method specific data that is supplied as part of the data + argument to the PaymentRequest constructor.

+

The following is the payment method specific data used by the PaymentRequest constructor when processing + and SPSP payment methods.

+

The fields in this data structure map directly to those defined in the Interledger Payment Request specification.

+
+

Payment Method Specific Data

+
+        dictionary PaymentMethodSpecificData  {
+            required DOMString address,
+            required Date expires_at,
+
+            DOMString condition,
+            Object data,
+            DOMString additional_headers
+        };
+      
+ +

+ The PaymentMethodSpecificData dictionary contains the following fields: +

+ +
+
address
+
Request-specific ILP address.
+
expires_at
+
Expiry of the request.
+
condition
+
Execution condition for the payment.
+
data
+
Data to be included in the ILP Packet.
+
additional_headers
+
Additional headers for the ILP Packet.
+
+ +
+ +
+ +
+

Payment Method Response

+

TODO

+ +
+

PaymentResponse

+
+        dictionary PaymentResponse {
+        };
+      
+ +

+ The PaymentResponse dictionary contains the following fields: +

+ +
+
success
+
The success field contains indication whether the transaction is successful.
+
+ + + +
+ + +
+ + + + + From ce6de8ce0e10ecf8319a9fd03a78751c94825438 Mon Sep 17 00:00:00 2001 From: Adrian Hope-Bailie Date: Wed, 2 Nov 2016 16:39:39 +0200 Subject: [PATCH 2/2] Update README to include SPSP --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5608523..7de8861 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,5 @@ The following links are to the Working Group's source files for specifications. * Credit Transfer and Direct Debit - https://github.com/w3c/webpayments-methods-credit-transfer-direct-debit * Alipay Payment Method - https://w3c.github.io/webpayments/proposals/Alipay-payment-method.html * 360Pay Payment Method - https://github.com/cncuckoo/w3c/blob/master/360Pay-Payment-Method.html +* Interledger SPSP Payment Method - https://w3c.github.io/webpayments/proposals/interledger-payment-method.html