Changeset 219896 in webkit


Ignore:
Timestamp:
Jul 25, 2017 6:03:29 PM (7 years ago)
Author:
aestes@apple.com
Message:

[Apple Pay] Add "carteBancaire" as a supported payment network
https://bugs.webkit.org/show_bug.cgi?id=174841
<rdar://problem/31935596>

Reviewed by Alex Christensen.

Source/WebCore:

Tests: http/tests/ssl/applepay/ApplePaySession.html

http/tests/ssl/applepay/ApplePaySessionV3.html

  • Modules/applepay/PaymentRequest.cpp:

(WebCore::PaymentRequest::isValidSupportedNetwork):

Source/WebKit:

  • UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:

(WebKit::toSupportedNetwork):

LayoutTests:

  • http/tests/ssl/applepay/ApplePaySession-expected.txt:
  • http/tests/ssl/applepay/ApplePaySession.html:
  • http/tests/ssl/applepay/ApplePaySessionV3.html:
Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r219890 r219896  
     12017-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
    1132017-07-25  Matt Lewis  <jlewis3@apple.com>
    214
  • trunk/LayoutTests/http/tests/ssl/applepay/ApplePaySession-expected.txt

    r217086 r219896  
    7777PASS new ApplePaySession(2, request) threw exception TypeError: "invalidNetwork" is not a valid payment network..
    7878
     79SETUP: request = validRequest(); request.supportedNetworks = ['carteBancaire'];
     80PASS new ApplePaySession(2, request) threw exception TypeError: "carteBancaire" is not a valid payment network..
     81
    7982SETUP: request = validRequest(); request.supportedNetworks = ['visa', 'visa'];
    8083PASS new ApplePaySession(2, request) did not throw exception.
  • trunk/LayoutTests/http/tests/ssl/applepay/ApplePaySession.html

    r217086 r219896  
    7373    logAndShouldThrow("request = validRequest(); request.supportedNetworks = ['invalidNetwork'];", "new ApplePaySession(2, request)")
    7474    logAndShouldThrow("request = validRequest(); request.supportedNetworks = ['invalidNetwork', 'visa'];", "new ApplePaySession(2, request)")
     75    logAndShouldThrow("request = validRequest(); request.supportedNetworks = ['carteBancaire'];", "new ApplePaySession(2, request)")
    7576    // FIXME: Should duplicate supportedNetworks be allowed?
    7677    logAndShouldNotThrow("request = validRequest(); request.supportedNetworks = ['visa', 'visa'];", "new ApplePaySession(2, request)")
  • trunk/LayoutTests/http/tests/ssl/applepay/ApplePaySessionV3.html

    r217723 r219896  
    1616          countryCode: 'US',
    1717          currencyCode: 'USD',
    18           supportedNetworks: ['visa', 'masterCard'],
     18          supportedNetworks: ['visa', 'masterCard', 'carteBancaire'],
    1919          merchantCapabilities: ['supports3DS'],
    2020          total: { label: 'Your Label', amount: '10.00' },
  • trunk/Source/WebCore/ChangeLog

    r219892 r219896  
     12017-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
    1152017-07-25  Daniel Bates  <dabates@apple.com>
    216
  • trunk/Source/WebCore/Modules/applepay/PaymentRequest.cpp

    r219191 r219896  
    6060    if (version >= 2 && supportedNetwork == "jcb")
    6161        return true;
     62    if (version >= 3 && supportedNetwork == "carteBancaire")
     63        return true;
    6264
    6365    return false;
  • trunk/Source/WebKit/ChangeLog

    r219887 r219896  
     12017-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
    1122017-07-25  Brian Burg  <bburg@apple.com>
    213
  • trunk/Source/WebKit/UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm

    r219191 r219896  
    5252SOFT_LINK_CLASS(PassKit, PKShippingMethod);
    5353SOFT_LINK_CONSTANT(PassKit, PKPaymentNetworkAmex, NSString *);
     54SOFT_LINK_CONSTANT(PassKit, PKPaymentNetworkCarteBancaire, NSString *);
    5455SOFT_LINK_CONSTANT(PassKit, PKPaymentNetworkChinaUnionPay, NSString *);
    5556SOFT_LINK_CONSTANT(PassKit, PKPaymentNetworkDiscover, NSString *);
     
    437438    if (supportedNetwork == "amex")
    438439        return getPKPaymentNetworkAmex();
     440    if (supportedNetwork == "carteBancaire")
     441        return getPKPaymentNetworkCarteBancaire();
    439442    if (supportedNetwork == "chinaUnionPay")
    440443        return getPKPaymentNetworkChinaUnionPay();
Note: See TracChangeset for help on using the changeset viewer.