RESOLVED FIXED228599
[Payment Request] `additionalShippingMethods` are not used if a `paymentMethodType` is provided
https://bugs.webkit.org/show_bug.cgi?id=228599
Summary [Payment Request] `additionalShippingMethods` are not used if a `paymentMetho...
Devin Rousso
Reported 2021-07-29 12:33:53 PDT
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.
Attachments
Patch (37.67 KB, patch)
2021-07-29 12:51 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2021-07-29 12:34:08 PDT
Devin Rousso
Comment 2 2021-07-29 12:51:52 PDT
EWS
Comment 3 2021-07-29 17:28:53 PDT
Committed r280459 (240094@main): <https://commits.webkit.org/240094@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 434560 [details].
Note You need to log in before you can comment on or make changes to this bug.