Skip to content

Conversation

@queengooborg
Copy link
Contributor

This PR adds both the Payment Request and Payment Handler APIs as features for Baseline. Both of these APIs are related to merchant transactions, so I figured they would make sense to be added together.

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Sep 8, 2024
Copy link
Contributor

@autonome autonome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-review pass, looks good! I suggested some text changes to align with the guidelines, and also some opinionated suggestions to accept or not as you prefer.

queengooborg and others added 2 commits September 10, 2024 02:46
Co-authored-by: Dietrich Ayala <50103+autonome@users.noreply.github.com>
@Elchi3
Copy link
Collaborator

Elchi3 commented Oct 9, 2024

Some additional keys that might be interesting here (search for "payment" in BCD):

api.Permissions.permission_payment-handler
api.ServiceWorkerGlobalScope.canmakepayment_event
api.ServiceWorkerGlobalScope.paymentrequest_event
api.ServiceWorkerRegistration.paymentManager
http.headers.Permissions-Policy.payment

Elchi3
Elchi3 previously requested changes Oct 10, 2024
Copy link
Collaborator

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@queengooborg can you add the above keys? (and check BCD if there are other "payment" keys)

@queengooborg queengooborg requested a review from Elchi3 October 28, 2024 13:51
- api.ServiceWorkerGlobalScope.canmakepayment_event
- api.ServiceWorkerGlobalScope.paymentrequest_event
- api.ServiceWorkerRegistration.paymentManager
- http.headers.Permissions-Policy.payment
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this belongs to Payment Request not Payment handler https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy/payment

Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be nice to finally merge this. That said, there are some issues with the names and descriptions. Since I think all of the participants on this are on holiday or out sick, I'm going to apply my own changes and merge. If there's any additional feedback or corrections needed here, please open a follow up pull request. Thank you!

@ddbeck ddbeck enabled auto-merge (squash) October 31, 2024 14:56
@ddbeck ddbeck merged commit a7ec146 into web-platform-dx:main Oct 31, 2024
3 checks passed
@queengooborg queengooborg deleted the payment branch October 31, 2024 15:08
vwallen pushed a commit to oddbird/web-features that referenced this pull request Nov 5, 2024
Co-authored-by: Dietrich Ayala <50103+autonome@users.noreply.github.com>
Co-authored-by: Florian Scholz <fs@florianscholz.com>
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants