[webkit-changes] [WebKit/WebKit] 65e05b: [Payment Request] Add support for merchant categor...
MiaMukherjee
noreply at github.com
Mon May 13 16:00:10 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 65e05b1cdf9b5b3b6262d9713d82ddc85eba1bba
https://github.com/WebKit/WebKit/commit/65e05b1cdf9b5b3b6262d9713d82ddc85eba1bba
Author: Mia Mukherjee <mia_mukherjee at apple.com>
Date: 2024-05-13 (Mon, 13 May 2024)
Changed paths:
A LayoutTests/http/tests/paymentrequest/paymentrequest-merchantCategoryCode.https-expected.txt
A LayoutTests/http/tests/paymentrequest/paymentrequest-merchantCategoryCode.https.html
M LayoutTests/platform/ios/TestExpectations
M LayoutTests/platform/mac-wk2/TestExpectations
M Source/WTF/wtf/PlatformEnableCocoa.h
M Source/WebCore/Modules/applepay/ApplePayFeature.h
M Source/WebCore/Modules/applepay/ApplePayFeature.idl
M Source/WebCore/Modules/applepay/ApplePayRequestBase.cpp
M Source/WebCore/Modules/applepay/ApplePayRequestBase.h
M Source/WebCore/Modules/applepay/ApplePayRequestBase.idl
M Source/WebCore/Modules/applepay/ApplePaySessionPaymentRequest.h
M Source/WebCore/PAL/pal/cocoa/PassKitSoftLink.h
M Source/WebCore/PAL/pal/cocoa/PassKitSoftLink.mm
M Source/WebCore/testing/MockPaymentCoordinator.cpp
M Source/WebCore/testing/MockPaymentCoordinator.h
M Source/WebCore/testing/MockPaymentCoordinator.idl
M Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm
M Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in
M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Log Message:
-----------
[Payment Request] Add support for merchant category codes.
https://bugs.webkit.org/show_bug.cgi?id=270978
<rdar://problem/124266155>
Reviewed by Abrar Rahman Protyasha.
This patch adds support for merchant category codes and populates the relevant field in `PKPaymentRequest`.
Tests: http/tests/paymentrequest/paymentrequest-merchantCategoryCode.https.html
* Source/WTF/wtf/PlatformEnableCocoa.h:
* Source/WTF/wtf/PlatformHave.h:
* Source/WebCore/Modules/applepay/ApplePayFeature.h:
* Source/WebCore/Modules/applepay/ApplePayFeature.idl:
* Source/WebCore/Modules/applepay/ApplePayRequestBase.cpp:
(WebCore::convertAndValidate):
* Source/WebCore/Modules/applepay/ApplePayRequestBase.h:
* Source/WebCore/Modules/applepay/ApplePayRequestBase.idl:
* Source/WebCore/Modules/applepay/ApplePaySessionPaymentRequest.h:
(WebCore::ApplePaySessionPaymentRequest::merchantCategoryCode const):
(WebCore::ApplePaySessionPaymentRequest::setMerchantCategoryCode):
(WebCore::ApplePaySessionPaymentRequest::ApplePaySessionPaymentRequest):
* Source/WebCore/PAL/pal/cocoa/PassKitSoftLink.h:
* Source/WebCore/PAL/pal/cocoa/PassKitSoftLink.mm:
* Source/WebCore/testing/MockPaymentCoordinator.cpp:
(WebCore::MockPaymentCoordinator::showPaymentUI):
* Source/WebCore/testing/MockPaymentCoordinator.h:
* Source/WebCore/testing/MockPaymentCoordinator.idl:
* Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
(WebKit::toPKMerchantCategoryCode):
(WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest):
* Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in:
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
* LayoutTests/http/tests/paymentrequest/paymentrequest-merchantCategoryCode.https-expected.txt
* LayoutTests/http/tests/paymentrequest/paymentrequest-merchantCategoryCode.https.html
* LayoutTests/platform/ios-wk2/TestExpectations
* LayoutTests/platform/mac-wk2/TestExpectations
Canonical link: https://commits.webkit.org/278718@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list