News for hackers. Stuff that matters.
Re:Ask HN: Why don't browsers have billing+shipping APIs? Th... by stephenr on Sunday May 10, 2020 @01:32AM (#23130529)
There literally is a web payments API, part of which is a PaymentAddress component.

It's supported by Safari, Chrome, Edge and Firefox, on desktop, Android and iOS, according to MDN.

https://developer.mozilla.org/en-US/docs/Web/API/Payment_Req...

Re:Ask HN: Why don't browsers have billing+shipping APIs? Th... by acwan93 on Sunday May 10, 2020 @02:29AM (#23130711)
Any websites that utilize this API?
Re:Ask HN: Why don't browsers have billing+shipping APIs? Th... by saurik on Sunday May 10, 2020 @03:07AM (#23130862)
(Firefox support still isn't by default according to that.)

Some more detailed use case information along with screenshots of the flows:

https://developers.google.com/web/fundamentals/payments/merc...

Re:Ask HN: Why don't browsers have billing+shipping APIs? Th... by burtonator on Monday May 11, 2020 @11:47AM (#23143376)
NICE!! Why isn't this used more?

I think maybe it's because the chance of there being an address there is almost nil?