Skip to content

Commit

Permalink
Merge pull request #36 from ixopay/feature/3ds-fields
Browse files Browse the repository at this point in the history
Add additional 3DS authentication parameters
  • Loading branch information
dennisk8 authored Sep 25, 2023
2 parents a4548c2 + 62c3dbc commit b4fad62
Show file tree
Hide file tree
Showing 2 changed files with 140 additions and 1 deletion.
133 changes: 133 additions & 0 deletions src/Data/ThreeDSecureData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;
}

}
8 changes: 7 additions & 1 deletion src/Json/JsonGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand All @@ -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(),
Expand All @@ -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(),
Expand All @@ -698,7 +705,6 @@ protected function createThreeDSecureData($threeDSecureData){
'sdkMaxTimeout' => $threeDSecureData->getSdkMaxTimeout(),
'sdkReferenceNumber' => $threeDSecureData->getSdkReferenceNumber(),
'sdkTransID' => $threeDSecureData->getSdkTransID(),
'exemptionIndicator' => $threeDSecureData->getExemptionIndicator(),
];
}

Expand Down

0 comments on commit b4fad62

Please sign in to comment.