[Webkit-unassigned] [Bug 220566] New: Payment Request API - response.shippingOption is always null

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 12 13:50:40 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=220566

            Bug ID: 220566
           Summary: Payment Request API - response.shippingOption is
                    always null
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Intel)
                OS: macOS 10.15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nickgzzjr at gmail.com

The shippingOption in the response that is resolved from the promise returned when calling request.show() is always null.

I expect the shippingOption to show the user's selected shipping method. 

I am only able to see the shippingOption inside the onshippingoptionchange event handler.

Code Example:

const request = new PaymentRequest(...);

request.onshippingoptionchange = event => {
  request.shippingOption; // not null
}

const response = await request.show();

response.shippingOption; // null
request.shippingOption; // null

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210112/898b4b0b/attachment.htm>


More information about the webkit-unassigned mailing list