Permalink
Browse files

Credit card payment refactoring

  • Loading branch information...
nehalist committed Jul 11, 2018
1 parent 83e3c1d commit 4d5572d0d2eea3411559c478a83529f9dd135293
@@ -78,6 +78,36 @@ class PaymentConfig
*/
protected $sendDescriptor;
/**
* @var string
*/
protected $threeDMAID;
/**
* @var string
*/
protected $threeDSecret;
/**
* @var float
*/
protected $threeDMinLimit;
/**
* @var string
*/
protected $threeDMinLimitCurrency;
/**
* @var float
*/
protected $threeDSslMaxLimit;
/**
* @var string
*/
protected $threeDSslMaxLimitCurrency;
/**
* PaymentConfig constructor.
*
@@ -212,20 +242,120 @@ public function setSendDescriptor($sendDescriptor)
$this->sendDescriptor = $sendDescriptor;
}
/**
* @return string
*/
public function getThreeDMAID()
{
return $this->threeDMAID;
}
/**
* @param string $threeDMAID
*/
public function setThreeDMAID($threeDMAID)
{
$this->threeDMAID = $threeDMAID;
}
/**
* @return float
*/
public function getThreeDMinLimit()
{
return $this->threeDMinLimit;
}
/**
* @param float $threeDMinLimit
*/
public function setThreeDMinLimit($threeDMinLimit)
{
$this->threeDMinLimit = $threeDMinLimit;
}
/**
* @return string
*/
public function getThreeDMinLimitCurrency()
{
return $this->threeDMinLimitCurrency;
}
/**
* @param string $threeDMinLimitCurrency
*/
public function setThreeDMinLimitCurrency($threeDMinLimitCurrency)
{
$this->threeDMinLimitCurrency = $threeDMinLimitCurrency;
}
/**
* @return string
*/
public function getThreeDSecret()
{
return $this->threeDSecret;
}
/**
* @param string $threeDSecret
*/
public function setThreeDSecret($threeDSecret)
{
$this->threeDSecret = $threeDSecret;
}
/**
* @return float
*/
public function getThreeDSslMaxLimit()
{
return $this->threeDSslMaxLimit;
}
/**
* @param float $threeDSslMaxLimit
*/
public function setThreeDSslMaxLimit($threeDSslMaxLimit)
{
$this->threeDSslMaxLimit = $threeDSslMaxLimit;
}
/**
* @return string
*/
public function getThreeDSslMaxLimitCurrency()
{
return $this->threeDSslMaxLimitCurrency;
}
/**
* @param string $threeDSslMaxLimitCurrency
*/
public function setThreeDSslMaxLimitCurrency($threeDSslMaxLimitCurrency)
{
$this->threeDSslMaxLimitCurrency = $threeDSslMaxLimitCurrency;
}
/**
* @return array
*/
public function toArray()
{
return [
'baseUrl' => $this->getBaseUrl(),
'httpUser' => $this->getHttpUser(),
'httpPassword' => $this->getHttpPassword(),
'transactionMAID' => $this->getTransactionMAID(),
'transactionType' => $this->getTransactionType(),
'sendBasket' => $this->sendBasket(),
'fraudPrevention' => $this->hasFraudPrevention(),
'sendDescriptor' => $this->sendDescriptor(),
'baseUrl' => $this->getBaseUrl(),
'httpUser' => $this->getHttpUser(),
'transactionMAID' => $this->getTransactionMAID(),
'transactionType' => $this->getTransactionType(),
'sendBasket' => $this->sendBasket(),
'fraudPrevention' => $this->hasFraudPrevention(),
'sendDescriptor' => $this->sendDescriptor(),
'threeDMAID' => $this->getThreeDMAID(),
'threeDMinLimit' => $this->getThreeDMinLimit(),
'threeDMinLimitCurrency' => $this->getThreeDMinLimitCurrency(),
'threeDSslMaxLimit' => $this->getThreeDSslMaxLimitCurrency(),
'threeDSslMaxLimitCurrency' => $this->getThreeDSslMaxLimitCurrency(),
];
}
}
Oops, something went wrong.

0 comments on commit 4d5572d

Please sign in to comment.