[Apple Pay] Allow $0 totals
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2018 15:20:48 +0000 (15:20 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2018 15:20:48 +0000 (15:20 +0000)
commit5f3c40708aeaffd0fae59c0d90b9f061ab7749c9
tree525ea36e0099bb9da8cd8363aa303ccd919cfe21
parent2e24346b1700a4a37d445633925203849950faa4
[Apple Pay] Allow $0 totals
https://bugs.webkit.org/show_bug.cgi?id=185150
<rdar://problem/39212331>

Reviewed by Dan Bernstein.

Source/WebCore:

Relaxed payment request validation to allow $0 totals. This matches PassKit behavior.

Updated test cases in http/tests/ssl/applepay/.

* Modules/applepay/PaymentRequestValidator.mm:
(WebCore::PaymentRequestValidator::validateTotal):

LayoutTests:

* http/tests/ssl/applepay/ApplePaySession-expected.txt:
* http/tests/ssl/applepay/ApplePaySession.html:
* http/tests/ssl/applepay/ApplePaySessionV3-expected.txt:
* http/tests/ssl/applepay/ApplePaySessionV3.html:
* http/tests/ssl/applepay/ApplePaySessionV4-expected.txt:
* http/tests/ssl/applepay/ApplePaySessionV4.html:
* http/tests/ssl/applepay/PaymentRequest.https-expected.txt:
* http/tests/ssl/applepay/PaymentRequest.https.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/ssl/applepay/ApplePaySession-expected.txt
LayoutTests/http/tests/ssl/applepay/ApplePaySession.html
LayoutTests/http/tests/ssl/applepay/ApplePaySessionV3-expected.txt
LayoutTests/http/tests/ssl/applepay/ApplePaySessionV3.html
LayoutTests/http/tests/ssl/applepay/ApplePaySessionV4-expected.txt
LayoutTests/http/tests/ssl/applepay/ApplePaySessionV4.html
LayoutTests/http/tests/ssl/applepay/PaymentRequest.https-expected.txt
LayoutTests/http/tests/ssl/applepay/PaymentRequest.https.html
Source/WebCore/ChangeLog
Source/WebCore/Modules/applepay/PaymentRequestValidator.mm