Re: [w3c/browser-payment-api] Is it neccessary to distinguish the origin of data provided in the payment response, and how would we do it? (#173)

The data inside of `response.details` is app-specific. The app can put whatever it wants there and document it via their own spec, like [Basic Card Payment](https://w3c.github.io/browser-payment-api/specs/basic-card-payment.html).

If the website wishes to receive shipping address from the app instead of the browser, then it should not request shipping information from the browser.

````javascript
new PaymentRequest(
    [{supportedMethods: ["bobpay.com"], data: {bobPayAddressForShipping: true}],
    details, {requestShipping: false});
````

This can be added a non-normative note, but should not be standardized, IMHO.

---
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/173#issuecomment-221451574

Received on Wednesday, 25 May 2016 01:43:59 UTC