Actually set the shipping contact when validating the payment request
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Dec 2016 20:42:52 +0000 (20:42 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Dec 2016 20:42:52 +0000 (20:42 +0000)
Reviewed by Anders Carlsson.

* Modules/applepay/ApplePaySession.cpp:
(WebCore::convertAndValidate):
Fix typo.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@209823 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/applepay/ApplePaySession.cpp

index a37c350..a5fb6c9 100644 (file)
@@ -1,3 +1,13 @@
+2016-12-14  Sam Weinig  <sam@webkit.org>
+
+        Actually set the shipping contact when validating the payment request
+
+        Reviewed by Anders Carlsson.
+
+        * Modules/applepay/ApplePaySession.cpp:
+        (WebCore::convertAndValidate):
+        Fix typo.
+
 2016-12-14  John Wilander  <wilander@apple.com>
 
         Handle key generation with empty challenge string
index 17efa9b..87e826e 100644 (file)
@@ -345,7 +345,7 @@ static ExceptionOr<PaymentRequest> convertAndValidate(JSC::ExecState& state, uns
         if (!shippingContact)
             return Exception { TypeError, WTFMove(errorMessage) };
 
-        result.setBillingContact(*shippingContact);
+        result.setShippingContact(*shippingContact);
     }
 
     result.setShippingType(paymentRequest.shippingType);