W3C home > Mailing lists > Public > public-payments-wg@w3.org > February 2016

Re: [webpayments] What are the WPWG February 2016 face-to-face prioritized issues (#89)

From: Rouslan Solomakhin <notifications@github.com>
Date: Wed, 17 Feb 2016 16:54:35 -0800
To: w3c/webpayments <webpayments@noreply.github.com>
Message-ID: <w3c/webpayments/issues/89/185484061@github.com>
> We should consider this in the finer details of the design. The flexibility that the checkout API offers is my preference but we need to consider situations where a call like request('billingAddress') may be made in future in a browser that only supports returning the shipping address. i.e. Versioning

Instead of versioning, I would prefer feature detection. For example:

```js
if (checkout.supports('billingAddress')) {
  checkout.request('billingAddress');
}
```

or:

```js
if (checkout.requestBillingAddress) {
  checkout.requestBillingAddress();
}
```


---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webpayments/issues/89#issuecomment-185484061
Received on Thursday, 18 February 2016 00:55:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:43:14 UTC