Upcoming W3C Payment API changes in Chrome 81

34 views
Skip to first unread message

Danyao Wang

unread,
Feb 11, 2020, 10:31:40 AM2/11/20
to payment...@chromium.org

The following changes are coming to Chrome 81.


Canary: Jan 31, 2020  | Beta: Feb 13, 2020  | Stable: Mar 17, 2020

Summary


Enabled by default

Available for testing behind flag

Payment Request API

  • Removed basic-card support on iOS Chrome

  • Disallowed switching payment method during retry()

  • Removed obsolete “supportedType” field from basic-card


Payment Handler API

  • Stopped firing “canmakepayment” event in web-based payment handlers for short-string payment methods

  • Expandable Payment Handler Sheet on Android

Details

Payment Request API 

Removed basic-card support on iOS Chrome

This version of Chrome removes the basic-card polyfill for Payment Request API in iOS Chrome. As a result, the Payment Request API is temporarily disabled in iOS Chrome. For full details, see this blog post.

Disallowed switching payment method in retry()

PaymentResponse.retry() allows a merchant to reactivate the payment request UI to ask the user to fix any errors in the original PaymentResponse. This version of Chrome fixed a bug that allowed the user to select a completely different payment method during retry(). 

Removed obsolete “supportedType” field from basic-card

The “supportedType” field was previously removed from the Basic-Card spec. This change updates the Chrome implementation to the latest spec. See crbug/981907 for more details.

Payment Handler API 

Stopped firing “canmakepayment” event for short-string payment methods

Web based payment handlers that are registered for standardized payment methods such as “basic-card” will no longer receive the “canmakepayment” event. See crbug/1040994 for more details.

Expandable Payment Handler Window on Android

Expandable Payment Handler Window provides better UX for web-based payment handlers with long content that may not fit within the current half-height payment handler window (see demo below).

To test this feature in M81:

  • Visit chrome://flags

  • Disable “Web Payments Minimal UI” (#enable-web-payments-minimal-ui)

  • Enable “Experimental Web Payments API features” (#enable-web-payments-experimental-features)

  • Live demo: https://rsolomakhin.github.io/pr/skip-ui/


Reply all
Reply to author
Forward
0 new messages