New issue
Advanced search Search tips

Issue 704162 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug


Participants' hotlists:
Payment-Interop


Sign in to add a comment

PaymentRequestUpdateEvent.updateWith() doesn't match with payment request spec.

Project Member Reported by jinho.b...@samsung.com, Mar 22 2017

Issue description

The updateWith() function doesn’t match with the payment request spec[1].
The spec says that only if some attribute of details is present, then the value corresponding to the attribute is updated.
However, the current implementation will update all values regardless of whether the attribute is present.

For example, the following code should update only total value on payment sheet UI.
  e.updateWith({ total: { …. } });

But the current implementation will update all values such as shippingOptions.
So, the shippingOptions is set as empty sequence and then the UI will indicate that the merchant cannot ship to the current shipping address.

[1] https://w3c.github.io/browser-payment-api/#updatewith-method
 
Cc: jinho.b...@samsung.com
Owner: zkoch@chromium.org
Status: Untriaged (was: Assigned)
+zkoch: You're more familiar with the spec. Can you triage this bug before jinho.bang works on it, please?

Comment 2 by zkoch@chromium.org, Apr 7 2017

Yes, jinho is correct. We should fix.

Comment 3 by zkoch@chromium.org, Apr 7 2017

Status: Available (was: Untriaged)
Okay, I'll fix this issue. Thanks for the clarification.
Project Member

Comment 5 by bugdroid1@chromium.org, Jul 17 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0973cc612310136695836f929f051c1ac8db5cb3

commit 0973cc612310136695836f929f051c1ac8db5cb3
Author: Jinho Bang <jinho.bang@samsung.com>
Date: Mon Jul 17 21:37:11 2017

PaymentRequest: updateWith() should take PaymentDetailsUpdate promise.

The PaymentDetails already splited into PaymentDetailsInit and
PaymentDetailsUpdate. The updateWith() should take PaymentDetailsUpdate promise.
This change is only for fixing typo and there is no change in behavior.

Related spec link:
  https://w3c.github.io/browser-payment-api/#paymentrequestupdateevent-interface

Bug: 704162
Change-Id: Ib1d4c290220fadf8fa95d4d11b5c5bda2b9300ce
Reviewed-on: https://chromium-review.googlesource.com/572675
Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org>
Commit-Queue: Jinho Bang <jinho.bang@samsung.com>
Cr-Commit-Position: refs/heads/master@{#487253}
[modify] https://crrev.com/0973cc612310136695836f929f051c1ac8db5cb3/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.idl

Cc: -rouslan@chromium.org
Owner: rouslan@chromium.org
Status: Assigned (was: Available)

Sign in to add a comment