Add data member to PaymentDetailsModifier dictionary, where merchants can specify modifiers based on payment methods.
MotivationOne use case for this is to support card payments with different modifiers for credit vs. debit cards. For example, the default shopping cart might be:
var supportedMethods = [{supportedMethods: ["basic-card"]}];
var shoppingCart = {total: {title: "Total",
currency: {code: "USD", value: "5.00"}}};
new PaymentRequest(supportedMethods, shoppingCart);
Where's modifier for debit cards can look like this:
shoppingCart.modifiers = [{
data: {supportedType: ["debit"]}, // NEW FEATURE
supportedMethods: ["basic-card"],
total: {title: "Total",
currency: {code: "USD", value: "4.63"}}}];
Interoperability riskFirefox: No public signals
Edge: No public signals
Safari: No public signals
Web developers: Positive
Compatibility riskLow. Other browsers have not implemented PaymentRequest yet. No merchants are known to be using PaymentDetailsModifier yet.
Ongoing technical constraintsNoneWill this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)? Yes or no.No. This feature will be implemented everywhere PaymentRequest is implemented, which is currently only Android and eventually all platforms except WebView.OWP launch tracking bughttp://crbug.com/660926Link to entry on the Chrome Platform Statushttps://www.chromestatus.com/feature/6636936064139264Requesting approval to ship?No