From 33f6a0e8f11a5da9257f7631359c9f8975fd08f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Indrek=20K=C3=B5nnussaar?= Date: Mon, 25 Jan 2021 10:50:51 +0200 Subject: [PATCH] Add merchantAccountId parameter to ClientTokenRequest Merchant Account ID is a required parameter for 3DS2 support in client token requests. This commit adds the required functionality. --- src/Message/ClientTokenRequest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Message/ClientTokenRequest.php b/src/Message/ClientTokenRequest.php index fe6f433..5965359 100644 --- a/src/Message/ClientTokenRequest.php +++ b/src/Message/ClientTokenRequest.php @@ -16,6 +16,11 @@ public function getData() if ($customerId = $this->getCustomerId()) { $data['customerId'] = $customerId; } + + if ($merchantAccountId = $this->getMerchantAccountId()) { + $data['merchantAccountId'] = $merchantAccountId; + } + $data += $this->getOptionData(); return $data;