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

[w3c/webpayments] Pull filters out of payment method data (#170)

From: Adrian Hope-Bailie <notifications@github.com>
Date: Thu, 04 Aug 2016 08:57:36 -0700
To: w3c/webpayments <webpayments@noreply.github.com>
Message-ID: <w3c/webpayments/issues/170@github.com>
As discussed on the call, I recommend that the payment method filters be defined outside of the opaque payment method data (`data`).

```javascript
var supportedMethods = [{
    methods: ['urn:payment-method:basic-card-payment'],
    filters: {
        networks: ['visa', 'mastercard'],
        types: ['debit']
    },
    data: {
    ...
    }
}];
```

---
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/webpayments/issues/170
Received on Thursday, 4 August 2016 15:58:27 UTC

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