Changeset 219896 in webkit
- Timestamp:
- Jul 25, 2017 6:03:29 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r219890 r219896 1 2017-07-25 Andy Estes <aestes@apple.com> 2 3 [Apple Pay] Add "carteBancaire" as a supported payment network 4 https://bugs.webkit.org/show_bug.cgi?id=174841 5 <rdar://problem/31935596> 6 7 Reviewed by Alex Christensen. 8 9 * http/tests/ssl/applepay/ApplePaySession-expected.txt: 10 * http/tests/ssl/applepay/ApplePaySession.html: 11 * http/tests/ssl/applepay/ApplePaySessionV3.html: 12 1 13 2017-07-25 Matt Lewis <jlewis3@apple.com> 2 14 -
trunk/LayoutTests/http/tests/ssl/applepay/ApplePaySession-expected.txt
r217086 r219896 77 77 PASS new ApplePaySession(2, request) threw exception TypeError: "invalidNetwork" is not a valid payment network.. 78 78 79 SETUP: request = validRequest(); request.supportedNetworks = ['carteBancaire']; 80 PASS new ApplePaySession(2, request) threw exception TypeError: "carteBancaire" is not a valid payment network.. 81 79 82 SETUP: request = validRequest(); request.supportedNetworks = ['visa', 'visa']; 80 83 PASS new ApplePaySession(2, request) did not throw exception. -
trunk/LayoutTests/http/tests/ssl/applepay/ApplePaySession.html
r217086 r219896 73 73 logAndShouldThrow("request = validRequest(); request.supportedNetworks = ['invalidNetwork'];", "new ApplePaySession(2, request)") 74 74 logAndShouldThrow("request = validRequest(); request.supportedNetworks = ['invalidNetwork', 'visa'];", "new ApplePaySession(2, request)") 75 logAndShouldThrow("request = validRequest(); request.supportedNetworks = ['carteBancaire'];", "new ApplePaySession(2, request)") 75 76 // FIXME: Should duplicate supportedNetworks be allowed? 76 77 logAndShouldNotThrow("request = validRequest(); request.supportedNetworks = ['visa', 'visa'];", "new ApplePaySession(2, request)") -
trunk/LayoutTests/http/tests/ssl/applepay/ApplePaySessionV3.html
r217723 r219896 16 16 countryCode: 'US', 17 17 currencyCode: 'USD', 18 supportedNetworks: ['visa', 'masterCard' ],18 supportedNetworks: ['visa', 'masterCard', 'carteBancaire'], 19 19 merchantCapabilities: ['supports3DS'], 20 20 total: { label: 'Your Label', amount: '10.00' }, -
trunk/Source/WebCore/ChangeLog
r219892 r219896 1 2017-07-25 Andy Estes <aestes@apple.com> 2 3 [Apple Pay] Add "carteBancaire" as a supported payment network 4 https://bugs.webkit.org/show_bug.cgi?id=174841 5 <rdar://problem/31935596> 6 7 Reviewed by Alex Christensen. 8 9 Tests: http/tests/ssl/applepay/ApplePaySession.html 10 http/tests/ssl/applepay/ApplePaySessionV3.html 11 12 * Modules/applepay/PaymentRequest.cpp: 13 (WebCore::PaymentRequest::isValidSupportedNetwork): 14 1 15 2017-07-25 Daniel Bates <dabates@apple.com> 2 16 -
trunk/Source/WebCore/Modules/applepay/PaymentRequest.cpp
r219191 r219896 60 60 if (version >= 2 && supportedNetwork == "jcb") 61 61 return true; 62 if (version >= 3 && supportedNetwork == "carteBancaire") 63 return true; 62 64 63 65 return false; -
trunk/Source/WebKit/ChangeLog
r219887 r219896 1 2017-07-25 Andy Estes <aestes@apple.com> 2 3 [Apple Pay] Add "carteBancaire" as a supported payment network 4 https://bugs.webkit.org/show_bug.cgi?id=174841 5 <rdar://problem/31935596> 6 7 Reviewed by Alex Christensen. 8 9 * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: 10 (WebKit::toSupportedNetwork): 11 1 12 2017-07-25 Brian Burg <bburg@apple.com> 2 13 -
trunk/Source/WebKit/UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm
r219191 r219896 52 52 SOFT_LINK_CLASS(PassKit, PKShippingMethod); 53 53 SOFT_LINK_CONSTANT(PassKit, PKPaymentNetworkAmex, NSString *); 54 SOFT_LINK_CONSTANT(PassKit, PKPaymentNetworkCarteBancaire, NSString *); 54 55 SOFT_LINK_CONSTANT(PassKit, PKPaymentNetworkChinaUnionPay, NSString *); 55 56 SOFT_LINK_CONSTANT(PassKit, PKPaymentNetworkDiscover, NSString *); … … 437 438 if (supportedNetwork == "amex") 438 439 return getPKPaymentNetworkAmex(); 440 if (supportedNetwork == "carteBancaire") 441 return getPKPaymentNetworkCarteBancaire(); 439 442 if (supportedNetwork == "chinaUnionPay") 440 443 return getPKPaymentNetworkChinaUnionPay();
Note: See TracChangeset
for help on using the changeset viewer.