From b2e3e88e3cec227dc5e43e62eba3f8411355e1c9 Mon Sep 17 00:00:00 2001 From: Junhui He Date: Thu, 19 Dec 2024 00:28:05 +0000 Subject: [PATCH 01/10] Add necessary files to deploy spec using template --- .github/dependabot.yml | 12 ++++++++++++ .github/workflows/auto-publish.yml | 17 +++++++++++++++++ .gitignore | 1 + .pr-preview.json | 7 +++++++ 4 files changed, 37 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/auto-publish.yml create mode 100644 .gitignore create mode 100644 .pr-preview.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d5da2e2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# See the documentation at +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + # Update actions used by .github/workflows in this repository. + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + actions-org: # Groups all Github-authored actions into a single PR. + patterns: ["actions/*"] \ No newline at end of file diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml new file mode 100644 index 0000000..09ee6ab --- /dev/null +++ b/.github/workflows/auto-publish.yml @@ -0,0 +1,17 @@ +name: CI +on: + pull_request: {} + push: + branches: [main] +jobs: + main: + name: Build, Validate and Deploy + runs-on: ubuntu-22.04 + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - uses: w3c/spec-prod@v2 + with: + GH_PAGES_BRANCH: gh-pages + BUILD_FAIL_ON: warning \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..64233a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +index.html \ No newline at end of file diff --git a/.pr-preview.json b/.pr-preview.json new file mode 100644 index 0000000..c1a598e --- /dev/null +++ b/.pr-preview.json @@ -0,0 +1,7 @@ +{ + "src_file": "index.bs", + "type": "bikeshed", + "params": { + "force": 1 + } +} \ No newline at end of file From 0b54eb3ea11e46a29569c5b6cbda35cbb952ebdd Mon Sep 17 00:00:00 2001 From: Junhui He Date: Thu, 19 Dec 2024 00:28:05 +0000 Subject: [PATCH 02/10] Add necessary files to deploy spec using template --- index.bs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/index.bs b/index.bs index c816b24..e7c97dc 100644 --- a/index.bs +++ b/index.bs @@ -17,6 +17,10 @@ Include MDN Panels: if possible Include Can I Use Panels: yes + + Introduction {#intro} ===================== @@ -42,15 +46,15 @@ This specification uses the following terms: Link type "payment" {#payment-link-type} =========================================== -The <{link/rel/payment}> keyword may be used with <{link}> elements. The keywords creates an [=external resource link=]. The keyword is [=body-ok=]. +The <{link/rel/payment}> keyword may be used with <{link}> elements. The keywords creates an [=external resource link=]. The keyword is body-ok. The <{link/rel/payment}> keyword indicates the availability of a push payment method on a web page. It creates a relationship between the document and a payment method resource. There is no default type for resources given by the <{link/rel/payment}> keyword. -A user agent must not [=delay the load event=] for this link type. +A user agent must not delay the load event for this link type. -The URL [=URL/scheme=] of the <{link/href}> attribute indicates supported payment methods. The URL may contain additional information specific to the payment method. +The URL [=url/scheme=] of the <{link/href}> attribute indicates supported payment methods. The URL may contain additional information specific to the payment method.

<link rel="payment" href="upi://pay?pa=merchant@bank&pn=Test&am=100&cu=INR">

@@ -79,7 +83,7 @@ The [fetch and process the linked resource](https://html.spec.whatwg.org/multipa 5. Let |url| be the result of [=encoding-parsing a URL=] given |el|'s <{link/href}> attribute's value, relative to |el|'s [=Node/node document=]. 6. If |url| is failure, then return. 7. If |url|’s [=url/scheme=] is not supported by the user agent, then return. -8. Find all payment wallets integrated with the user agent which are compatible with |url|'s [=scheme=]. Let |compatibleWallets| be a [=/set=] containing all such wallets. +8. Find all payment wallets integrated with the user agent which are compatible with |url|'s [=url/scheme=]. Let |compatibleWallets| be a [=/set=] containing all such wallets. 9. If |compatibleWallets|'s [=set/size=] is 0, then return. 10. Prompt the user with a wallet selector containing |compatibleWallets| for users to choose the payment method they want to use. 11. If the wallet selector is dismissed, then return. From a8d667ce25be6a6684c66fb376e3b7942e47c803 Mon Sep 17 00:00:00 2001 From: Junhui He Date: Thu, 19 Dec 2024 00:28:05 +0000 Subject: [PATCH 03/10] Add necessary files to deploy spec using template --- index.bs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.bs b/index.bs index e7c97dc..d999f7e 100644 --- a/index.bs +++ b/index.bs @@ -56,16 +56,16 @@ A user agent must not -

<link rel="payment" href="upi://pay?pa=merchant@bank&pn=Test&am=100&cu=INR">

+
+

<link rel="payment" href="upi://pay?pa=merchant@bank&pn=Test&am=100&cu=INR">

-
-

<link rel="payment" href="bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=20.3&label=Donation">

+
+

<link rel="payment" href="bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=20.3&label=Donation">

-
-

<link rel="payment" href="paypal://paypal.com?payee-address=175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W¤cy=USD&amount=20.3&payee-name=Walmart">

+
+

<link rel="payment" href="paypal://paypal.com?payee-address=175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W&currency=USD&amount=20.3&payee-name=Walmart">

The appropriate times to
fetch and process the linked resource for such a link are: From 3a81c1727f1f5cacde974f1d61c1f660982bd93b Mon Sep 17 00:00:00 2001 From: Junhui He Date: Thu, 19 Dec 2024 00:28:05 +0000 Subject: [PATCH 04/10] Add necessary files to deploy spec using template --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index d999f7e..633f813 100644 --- a/index.bs +++ b/index.bs @@ -39,7 +39,7 @@ This specification uses the following terms: * **Payment client:** An integrated wallet or a browser wallet extension that is responsible for facilitating payments. -* **Payment method:** A specific way of making a payment, such as UPI, Bitcoin, or a particular eWallet. It is identified by the URL [=url/scheme=] in the <{link/href}> attribute of a <{link/rel/payment}> link. +* **Payment method:** A specific way of making a payment, such as UPI, Bitcoin, or a particular eWallet. It is identified by the URL [=url/scheme=] in the <{link/href}> attribute of a <{link/rel/payment}> link. From 67a24aae57fe943666236e611e6ae5ac4d1ee863 Mon Sep 17 00:00:00 2001 From: Junhui He Date: Thu, 19 Dec 2024 00:28:05 +0000 Subject: [PATCH 05/10] Add necessary files to deploy spec using template --- index.bs | 3 --- 1 file changed, 3 deletions(-) diff --git a/index.bs b/index.bs index 633f813..0ca57ab 100644 --- a/index.bs +++ b/index.bs @@ -41,8 +41,6 @@ This specification uses the following terms: * **Payment method:** A specific way of making a payment, such as UPI, Bitcoin, or a particular eWallet. It is identified by the URL [=url/scheme=] in the <{link/href}> attribute of a <{link/rel/payment}> link. - - Link type "payment" {#payment-link-type} =========================================== @@ -91,7 +89,6 @@ The [fetch and process the linked resource](https://html.spec.whatwg.org/multipa 13. (Optional) Launch the selected wallet application or interface. 14. Provide instructions to the user on how to proceed with the payment. - Security Considerations {#security-considerations} ================================================= From c67701b10ca17371c0cda50c1ba5ab1ca86b52f7 Mon Sep 17 00:00:00 2001 From: Junhui He Date: Thu, 19 Dec 2024 00:28:05 +0000 Subject: [PATCH 06/10] Add necessary files to deploy spec using template --- index.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 0ca57ab..663a957 100644 --- a/index.bs +++ b/index.bs @@ -55,15 +55,15 @@ A user agent must not -

<link rel="payment" href="upi://pay?pa=merchant@bank&pn=Test&am=100&cu=INR">

+

<link rel="payment" href="upi://pay?pa=merchant@bank&pn=Test&am=100&cu=INR">

-

<link rel="payment" href="bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=20.3&label=Donation">

+

<link rel="payment" href="bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=20.3&label=Donation">

-

<link rel="payment" href="paypal://paypal.com?payee-address=175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W&currency=USD&amount=20.3&payee-name=Walmart">

+

<link rel="payment" href="paypal://paypal.com?payee-address=175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W&currency=USD&amount=20.3&payee-name=Walmart">

The appropriate times to
fetch and process the linked resource for such a link are: From ed6fd31b722f9f3055117017611aec0c105c4b5a Mon Sep 17 00:00:00 2001 From: Junhui He Date: Thu, 19 Dec 2024 00:28:05 +0000 Subject: [PATCH 07/10] Add necessary files to deploy spec using template --- index.bs | 1 - 1 file changed, 1 deletion(-) diff --git a/index.bs b/index.bs index 663a957..1bb8f3a 100644 --- a/index.bs +++ b/index.bs @@ -10,7 +10,6 @@ Abstract: This specification defines a mechanism for web pages to indicate the a Markup Shorthands: markdown yes, css no Complain About: accidental-2119 yes, missing-example-ids yes Assume Explicit For: yes -Die On: warning WPT Path Prefix: payment-link WPT Display: closed Include MDN Panels: if possible From 296944d1cf0875ef89319b80a2c6fc9517823de1 Mon Sep 17 00:00:00 2001 From: Junhui He Date: Thu, 19 Dec 2024 00:28:05 +0000 Subject: [PATCH 08/10] Add necessary files to deploy spec using template --- index.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 1bb8f3a..0499f75 100644 --- a/index.bs +++ b/index.bs @@ -54,15 +54,15 @@ A user agent must not -

<link rel="payment" href="upi://pay?pa=merchant@bank&pn=Test&am=100&cu=INR">

+

<link rel="payment" href="upi://pay?pa=merchant@bank&pn=Test&am=100&cu=INR">

-

<link rel="payment" href="bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=20.3&label=Donation">

+

<link rel="payment" href="bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=20.3&label=Donation">

-

<link rel="payment" href="paypal://paypal.com?payee-address=175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W&currency=USD&amount=20.3&payee-name=Walmart">

+

<link rel="payment" href="paypal://paypal.com?payee-address=175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W&currency=USD&amount=20.3&payee-name=Walmart">

The appropriate times to
fetch and process the linked resource for such a link are: From 0b66f8096429e052849fe5be1f980bbf9e1c4c2d Mon Sep 17 00:00:00 2001 From: Junhui He Date: Thu, 19 Dec 2024 21:44:13 +0000 Subject: [PATCH 09/10] Add spaces as indent --- index.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 0499f75..b6a029f 100644 --- a/index.bs +++ b/index.bs @@ -54,15 +54,15 @@ A user agent must not -

<link rel="payment" href="upi://pay?pa=merchant@bank&pn=Test&am=100&cu=INR">

+

<link rel="payment" href="upi://pay?pa=merchant@bank&pn=Test&am=100&cu=INR">

-

<link rel="payment" href="bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=20.3&label=Donation">

+

<link rel="payment" href="bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=20.3&label=Donation">

-

<link rel="payment" href="paypal://paypal.com?payee-address=175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W&currency=USD&amount=20.3&payee-name=Walmart">

+

<link rel="payment" href="paypal://paypal.com?payee-address=175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W&currency=USD&amount=20.3&payee-name=Walmart">

The appropriate times to
fetch and process the linked resource for such a link are: From 7aae004d148fa8c3187a7d3cb5a1218fc7a7416d Mon Sep 17 00:00:00 2001 From: Junhui He Date: Fri, 20 Dec 2024 23:20:40 +0000 Subject: [PATCH 10/10] Bypass mixed-indents check --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index b6a029f..90a69f7 100644 --- a/index.bs +++ b/index.bs @@ -8,7 +8,7 @@ URL: https://github.com/WICG/paymentlink Editor: Junhui He, Google https://google.com, junhuihe@google.com Abstract: This specification defines a mechanism for web pages to indicate the availability of push-based payment methods using the <{link}> element, enabling user agents to facilitate seamless payment experiences. Markup Shorthands: markdown yes, css no -Complain About: accidental-2119 yes, missing-example-ids yes +Complain About: accidental-2119 yes, missing-example-ids yes, mixed-indents no Assume Explicit For: yes WPT Path Prefix: payment-link WPT Display: closed