Warn web developers that card networks as method names are deprecated.
Web developers should use 'basic-card' instead. Deprecated:
new PaymentRequest(
[{
supportedMethods: ['visa', 'amex'],
}],
cart);
Should be used:
new PaymentRequest(
[{
supportedMethods: ['basic-card'],
data: {supportedNetworks: ['visa', 'amex']},
}],
cart);
Console warning message:
[Deprecation] Card issuer network ("amex", "diners", "discover",
"jcb", "mastercard", "mir", "unionpay", "visa") as payment method is
deprecated and will be removed in M64, around January 2018. Please use
payment method name "basic-card" with issuer network in the
"supportedNetworks" field instead. See
https://www.chromestatus.com/features/5725727580225536 for more
details.
Intent to deprecate thread:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/1udpnrlQK4Q/ot_E-htQAQAJ
BUG=719526
Review-Url: https://codereview.chromium.org/2865023003
Cr-Commit-Position: refs/heads/master@{#473997}
2 files changed