Intent to Implement and Ship: PaymentDetails.error

30 views
Skip to first unread message

Rouslan Solomakhin

unread,
Nov 23, 2016, 4:55:57 PM11/23/16
to blink-dev, hs121...@samsung.com
Contact emails

Spec

Tag review
Skipped. API surface too small.

Summary
When the payment request is updated using updateWith, the PaymentDetails can contain a message in the error field that will be displayed to the user.  The error field cannot be passed to the PaymentRequest constructor. Doing so will cause a TypeError to be thrown.

Motivation
This might commonly be used to explain why goods cannot be shipped to the chosen shipping address.

Interoperability risk
Firefox: No public signals
Edge: No public signals
Safari: No public signals
Web developers: Strongly positive

Compatibility risk
Small.

Ongoing technical constraints
None

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux,
Chrome OS, Android, and Android WebView)? Yes or no.
No. PaymentDetails.error can be used only for PaymentRequest, which is currently supported only on Android. Eventually more platforms will support PaymentRequest, except WebView.

OWP launch tracking bug

Link to entry on the Chrome Platform Status

Requesting approval to ship?
Yes

Chris Harrelson

unread,
Nov 29, 2016, 9:31:52 AM11/29/16
to Rouslan Solomakhin, blink-dev, hs121...@samsung.com
LGTM1

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

Philip Jägenstedt

unread,
Nov 29, 2016, 3:22:49 PM11/29/16
to Chris Harrelson, Rouslan Solomakhin, blink-dev, hs121...@samsung.com
The spec says "If details contains a value for error, then throw a TypeError" in the PaymentRequest constructor, but Blink makes an exception and doesn't throw for the empty string. Can you fix the spec or the implementation, and test this in web-platform-tests?

LGTM2 with that.

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Rouslan Solomakhin

unread,
Nov 29, 2016, 3:52:36 PM11/29/16
to Philip Jägenstedt, Chris Harrelson, blink-dev, hs121...@samsung.com
Sent out http://crrev.com/2532953006 for review to fix the implementation. Let me know if I misunderstood your concern.

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

Philip Jägenstedt

unread,
Nov 29, 2016, 4:55:13 PM11/29/16
to Rouslan Solomakhin, Chris Harrelson, blink-dev, hs121...@samsung.com
That's what I meant, thanks for fixing!

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

TAMURA, Kent

unread,
Dec 8, 2016, 1:29:13 AM12/8/16
to Philip Jägenstedt, Rouslan Solomakhin, Chris Harrelson, blink-dev, hs121...@samsung.com
LGTM3


To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.




--
TAMURA Kent
Software Engineer, Google


Reply all
Reply to author
Forward
0 new messages