[Webkit-unassigned] [Bug 228599] New: [Payment Request] `additionalShippingMethods` are not used if a `paymentMethodType` is provided

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 29 12:33:53 PDT 2021


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

            Bug ID: 228599
           Summary: [Payment Request] `additionalShippingMethods` are not
                    used if a `paymentMethodType` is provided
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: drousso at apple.com
        Depends on: 223621

r275169 made it so that `paymentMethodType` is no longer `required` so that `additionalShippingMethods` can be specified without having to limit it to a specific payment method type. While this works in theory, WebKit doesn't know about the user's selected payment method type until the user actually selects a payment method, meaning that until then the `additionalShippingMethods` are not used, and unfortunately (until now) `PKPaymentRequestPaymentMethodUpdate` did not support providing a `NSArray<PKShippingMethod *> *`, meaning that there was no way to update the list of shipping methods when the user changed their selected payment method, meaning that WebKit would have to wait/rely on the user to change their shipping address _after_ selecting a payment method in order for `additionalShippingMethods` to take effect.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=223621
[Bug 223621] [Payment Request] move added `object data` to `ApplePayModifier`
-- 
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/20210729/7488284c/attachment.htm>


More information about the webkit-unassigned mailing list