# Web APIs

### Document
### WebSockets
### Payment Request API
- <https://blog.openreplay.com/using-the-native-payment-request-javascript-api>

- <https://developer.mozilla.org/en-US/docs/Web/API/Payment_Request_API>

Now(2022-07-30) only works in Chrome, Safari([refer](https://web.dev/web-based-payment-apps-overview/#browser-support))

Payment Request API 提供了支付的优化流程。

> The Payment Request API provides a consistent user experience for both merchants and users. It is not a new way for paying for things; rather, it's a way for users to select their preferred way of paying for things, and make that information available to a merchant.
>

[Demo](https://codepen.io/tianheg/pen/eYMyYPO)


相关：[[coding|coding]]

相关：[[how-many-types-of-api|how-many-types-of-api]]
