From 62c3dbcd2ab19e223328dbb92d752ef5f9bd399d Mon Sep 17 00:00:00 2001 From: Dennis Ku Date: Mon, 25 Sep 2023 11:08:43 +0200 Subject: [PATCH] added additional 3DS parameters --- src/Data/ThreeDSecureData.php | 133 ++++++++++++++++++++++++++++++++++ src/Json/JsonGenerator.php | 8 +- 2 files changed, 140 insertions(+), 1 deletion(-) diff --git a/src/Data/ThreeDSecureData.php b/src/Data/ThreeDSecureData.php index 535d27c..25f752a 100644 --- a/src/Data/ThreeDSecureData.php +++ b/src/Data/ThreeDSecureData.php @@ -217,6 +217,24 @@ class ThreeDSecureData extends DataObject /** @var string */ protected $exemptionIndicator; + /** @var string */ + protected $cardholderAccountAgeIndicator; + + /** @var string */ + protected $billingAddressLine3; + + /** @var string */ + protected $shippingAddressLine3; + + /** @var string */ + protected $billingAddressState; + + /** @var string */ + protected $shippingAddressState; + + /** @var string */ + protected $browserPlatform; + /** * @return string */ @@ -1630,4 +1648,119 @@ public function getExemptionIndicator() { return $this->exemptionIndicator; } + + /** + * @return string + */ + public function getCardholderAccountAgeIndicator() + { + return $this->cardholderAccountAgeIndicator; + } + + /** + * @param string $cardholderAccountAgeIndicator + * + * @return ThreeDSecureData + */ + public function setCardholderAccountAgeIndicator($cardholderAccountAgeIndicator) + { + $this->cardholderAccountAgeIndicator = $cardholderAccountAgeIndicator; + return $this; + } + + /** + * @return string + */ + public function getBillingAddressLine3() + { + return $this->billingAddressLine3; + } + + /** + * @param string $billingAddressLine3 + * + * @return ThreeDSecureData + */ + public function setBillingAddressLine3($billingAddressLine3) + { + $this->billingAddressLine3 = $billingAddressLine3; + return $this; + } + + /** + * @return string + */ + public function getShippingAddressLine3() + { + return $this->shippingAddressLine3; + } + + /** + * @param string $shippingAddressLine3 + * + * @return ThreeDSecureData + */ + public function setShippingAddressLine3($shippingAddressLine3) + { + $this->shippingAddressLine3 = $shippingAddressLine3; + return $this; + } + + /** + * @return string + */ + public function getBillingAddressState() + { + return $this->billingAddressState; + } + + /** + * @param string $billingAddressState + * + * @return ThreeDSecureData + */ + public function setBillingAddressState($billingAddressState) + { + $this->billingAddressState = $billingAddressState; + return $this; + } + + /** + * @return string + */ + public function getShippingAddressState() + { + return $this->shippingAddressState; + } + + /** + * @param string $shippingAddressState + * + * @return ThreeDSecureData + */ + public function setShippingAddressState($shippingAddressState) + { + $this->shippingAddressState = $shippingAddressState; + return $this; + } + + /** + * @return string + */ + public function getBrowserPlatform() + { + return $this->browserPlatform; + } + + /** + * @param string $browserPlatform + * + * @return ThreeDSecureData + */ + public function setBrowserPlatform($browserPlatform) + { + $this->browserPlatform = $browserPlatform; + return $this; + } + } diff --git a/src/Json/JsonGenerator.php b/src/Json/JsonGenerator.php index d382308..ce6210f 100644 --- a/src/Json/JsonGenerator.php +++ b/src/Json/JsonGenerator.php @@ -644,6 +644,7 @@ protected function createThreeDSecureData($threeDSecureData){ 'priorAuthenticationDateTime' => $threeDSecureData->getPriorAuthenticationDateTimeFormatted(), 'priorAuthenticationData' => $threeDSecureData->getPriorAuthenticationData(), 'cardholderAccountType' => $threeDSecureData->getCardholderAccountType(), + 'cardholderAccountAgeIndicator' => $threeDSecureData->getCardholderAccountAgeIndicator(), 'cardholderAccountDate' => $threeDSecureData->getCardholderAccountDateFormatted(), 'cardholderAccountChangeIndicator' => $threeDSecureData->getCardholderAccountChangeIndicator(), 'cardholderAccountLastChange' => $threeDSecureData->getCardholderAccountLastChangeFormatted(), @@ -659,6 +660,10 @@ protected function createThreeDSecureData($threeDSecureData){ 'shippingNameEqualIndicator' => $threeDSecureData->getShippingNameEqualIndicator(), 'paymentAccountAgeIndicator' => $threeDSecureData->getPaymentAccountAgeIndicator(), 'paymentAccountAgeDate' => $threeDSecureData->getPaymentAccountAgeDateFormatted(), + 'billingAddressLine3' => $threeDSecureData->getBillingAddressLine3(), + 'billingAddressState' => $threeDSecureData->getBillingAddressState(), + 'shippingAddressLine3' => $threeDSecureData->getShippingAddressLine3(), + 'shippingAddressState' => $threeDSecureData->getShippingAddressState(), 'billingShippingAddressMatch' => $threeDSecureData->getBillingShippingAddressMatch(), 'homePhoneCountryPrefix' => $threeDSecureData->getHomePhoneCountryPrefix(), 'homePhoneNumber' => $threeDSecureData->getHomePhoneNumber(), @@ -680,6 +685,7 @@ protected function createThreeDSecureData($threeDSecureData){ 'recurringExpiry' => $threeDSecureData->getRecurringExpiryFormatted(), 'recurringFrequency' => $threeDSecureData->getRecurringFrequency(), 'transType' => $threeDSecureData->getTransType(), + 'exemptionIndicator' => $threeDSecureData->getExemptionIndicator(), 'browserChallengeWindowSize' => $threeDSecureData->getBrowserChallengeWindowSize(), 'browserAcceptHeader' => $threeDSecureData->getBrowserAcceptHeader(), 'browserIpAddress' => $threeDSecureData->getBrowserIpAddress(), @@ -690,6 +696,7 @@ protected function createThreeDSecureData($threeDSecureData){ 'browserScreenWidth' => $threeDSecureData->getBrowserScreenWidth(), 'browserTimezone' => $threeDSecureData->getBrowserTimezone(), 'browserUserAgent' => $threeDSecureData->getBrowserUserAgent(), + 'browserPlatform' => $threeDSecureData->getBrowserPlatform(), 'sdkInterface' => $threeDSecureData->getSdkInterface(), 'sdkUiType' => $threeDSecureData->getSdkUiType(), 'sdkAppID' => $threeDSecureData->getSdkAppID(), @@ -698,7 +705,6 @@ protected function createThreeDSecureData($threeDSecureData){ 'sdkMaxTimeout' => $threeDSecureData->getSdkMaxTimeout(), 'sdkReferenceNumber' => $threeDSecureData->getSdkReferenceNumber(), 'sdkTransID' => $threeDSecureData->getSdkTransID(), - 'exemptionIndicator' => $threeDSecureData->getExemptionIndicator(), ]; }