Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D ile ödeme #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"require": {
"php": "> 5.3.0",
"guzzle/guzzle": "3.9.2",
"symfony/event-dispatcher": "2.6.3"
"symfony/event-dispatcher": "2.8.1"
},
"require-dev": {
"squizlabs/php_codesniffer": "~1.5.2",
Expand Down
72 changes: 72 additions & 0 deletions src/Paranoia/Configuration/AbstractConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ class AbstractConfiguration
*/
private $apiUrl;

/**
* @var string
*/
private $api3DUrl;

/**
* @var string
*/
private $successUrl;

/**
* @var string
*/
private $errorUrl;

/**
* @param string $apiUrl
*
Expand All @@ -27,4 +42,61 @@ public function getApiUrl()
{
return $this->apiUrl;
}

/**
* @param string $api3DUrl
*
* @return $this
*/
public function setApi3DUrl($api3DUrl)
{
$this->api3DUrl = $api3DUrl;
return $this;
}

/**
* @return string
*/
public function getApi3DUrl()
{
return $this->api3DUrl;
}

/**
* @param string $key
*
* @return $this
*/
public function setSuccessUrl($url)
{
$this->successUrl = $url;
return $this;
}

/**
* @return string
*/
public function getSuccessUrl()
{
return $this->successUrl;
}

/**
* @param string $key
*
* @return $this
*/
public function setErrorUrl($url)
{
$this->errorUrl = $url;
return $this;
}

/**
* @return string
*/
public function getErrorUrl()
{
return $this->errorUrl;
}
}
25 changes: 25 additions & 0 deletions src/Paranoia/Configuration/Gvp.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ class Gvp extends AbstractConfiguration
*/
private $mode;

/**
* @var string
*/
private $securekey;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SecureKey parametresi tüm 3d Secure entegrasyonlarında mevcut bir değer. (NestPay'deki StoreKey aynı işi yapıyor sadece ismi farklı. NestPay'e özel olarak setStoreKey fonksiyonlarını yazıp setSecureKey'e alias olarak ekleyebiliriz.)



/**
* @param string $authorizationPassword
*
Expand Down Expand Up @@ -172,4 +178,23 @@ public function getTerminalId()
{
return $this->terminalId;
}

/**
* @param int $securekey
*
* @return $this
*/
public function setSecureKey($securekey)
{
$this->securekey = $securekey;
return $this;
}

/**
* @return int
*/
public function getSecureKey()
{
return $this->securekey;
}
}
24 changes: 24 additions & 0 deletions src/Paranoia/Configuration/NestPay.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ class NestPay extends AbstractConfiguration
*/
private $mode;

/**
* @var string
*/
private $storeKey;

/**
* @param string $clientId
*
Expand Down Expand Up @@ -100,4 +105,23 @@ public function getUsername()
{
return $this->username;
}

/**
* @param string $key
*
* @return $this
*/
public function setStoreKey($storeKey)
{
$this->storeKey = $storeKey;
return $this;
}

/**
* @return string
*/
public function getStoreKey()
{
return $this->storeKey;
}
}
144 changes: 144 additions & 0 deletions src/Paranoia/Configuration/Posnet.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,36 @@ class Posnet extends AbstractConfiguration
*/
private $terminalId;

/**
* @var int
*/
private $terminal3DId;

/**
* @var int
*/
private $posnetId;

/**
* @var string
*/
private $username;

/**
* @var string
*/
private $password;

/**
* @var string
*/
private $secureKey;

/**
* @var string
*/
private $jokerVadaa;

/**
* @param int $merchantId
*
Expand Down Expand Up @@ -50,4 +80,118 @@ public function getTerminalId()
{
return $this->terminalId;
}

/**
* @param int $terminal3DId
*
* @return $this
*/
public function setTerminal3DId($terminal3DId)
{
$this->terminal3DId = $terminal3DId;
return $this;
}

/**
* @return int
*/
public function getTerminal3DId()
{
return $this->terminal3DId;
}

/**
* @param int $posnetId
*
* @return $this
*/
public function setPosnetId($posnetId)
{
$this->posnetId = $posnetId;
return $this;
}

/**
* @return int
*/
public function getPosnetId()
{
return $this->posnetId;
}

/**
* @param string $username
*
* @return $this
*/
public function setUsername($username)
{
$this->username = $username;
return $this;
}

/**
* @return string
*/
public function getUsername()
{
return $this->username;
}

/**
* @param string $password
*
* @return $this
*/
public function setPassword($password)
{
$this->password = $password;
return $this;
}

/**
* @return string
*/
public function getPassword()
{
return $this->password;
}

/**
* @param int $secureKey
*
* @return $this
*/
public function setSecureKey($secureKey)
{
$this->secureKey = $secureKey;
return $this;
}

/**
* @return int
*/
public function getSecureKey()
{
return $this->secureKey;
}

/**
* @param int $jokerVadaa
*
* @return $this
*/
public function setJokerVadaa($jokerVadaa)
{
$this->jokerVadaa = $jokerVadaa;
return $this;
}

/**
* @return int
*/
public function getJokerVadaa()
{
return $this->jokerVadaa;
}
}
Loading