Re: [w3c/browser-payment-api] Write-up proposal for shipping address fields (#6)

> What this thread suggests is that developers using the payments API must initiate a payment request and request shipping data collection, then interrogate the shape of the return object that to determine what version of the payments API they are working with. I'm a firm -1 on that.

You don't have to generate a request to interrogate the shape of a type - that's actually why it being an interface is necessary. You can't interrogate a dictionary because it is just a JavaScript object.

> I agree that feature detection is required but I'm not sure that the shape of this object is the right place to facilitate it.

That's how almost all reliable feature detection is done.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/6#issuecomment-212912253

Received on Thursday, 21 April 2016 13:16:57 UTC