Bug 259940

Summary: supportedCountries only works on ApplePaySession, not PaymentRequest (affects Shopify)
Product: WebKit Reporter: Abrar Rahman Protyasha <a_protyasha>
Component: PlatformAssignee: Abrar Rahman Protyasha <a_protyasha>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, a_protyasha, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=260050

Description Abrar Rahman Protyasha 2023-08-08 13:01:07 PDT
Setting the supportedCountries property on an Apple Pay payment only works when using ApplePaySession, not when using W3C Payment Request. Only the latter one sets supportedCountries on PKPaymentRequest, and filters cards by issuer country, as can be reproduced on https://applepaydemo.apple.com.
Comment 1 Abrar Rahman Protyasha 2023-08-08 13:01:16 PDT
rdar://113557607
Comment 2 Abrar Rahman Protyasha 2023-08-10 16:58:17 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16586
Comment 3 EWS 2023-08-11 13:42:16 PDT
Committed 266829@main (e5afaf96365a): <https://commits.webkit.org/266829@main>

Reviewed commits have been landed. Closing PR #16586 and removing active labels.