Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ap-php-sdk new payment methods added
  • Loading branch information
sasadubara committed Jul 4, 2017
1 parent 4da2171 commit c5121d5
Show file tree
Hide file tree
Showing 40 changed files with 704 additions and 153 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
/vendor
composer.lock
.DS_Store
.DS_Store
/nbproject/private/
Binary file added Composer-Setup.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion Lib/AlternativePayments/Error/ExceptionBase.php
Expand Up @@ -3,7 +3,7 @@
namespace AlternativePayments\Error;

/**
* Abstract Error class inherented by all specific error classes
* Abstract Error class inherited by all specific error classes
*/
abstract class ExceptionBase extends \Exception
{
Expand Down
2 changes: 1 addition & 1 deletion Lib/AlternativePayments/Model/Element.php
Expand Up @@ -3,7 +3,7 @@
namespace AlternativePayments\Model;

/**
* Abstract Model class inherented by all model classes
* Abstract Model class inherited by all model classes
*/
abstract class Element
{
Expand Down
22 changes: 18 additions & 4 deletions Lib/AlternativePayments/Model/Payment.php
Expand Up @@ -39,7 +39,6 @@ class Payment extends Element
* @var string
*/
protected $creditCardNumber;

/*
* @var string
*/
Expand All @@ -49,7 +48,6 @@ class Payment extends Element
* @var string
*/
protected $expirationYear;

/*
* @var string
*/
Expand All @@ -59,7 +57,10 @@ class Payment extends Element
* @var string
*/
protected $documentId;

/*
* @var string
*/
protected $creditCardType;
/*
* @var string
*/
Expand Down Expand Up @@ -211,7 +212,20 @@ public function setExpirationYear($expirationYear)
{
$this->expirationYear = $expirationYear;
}

/*
* @param string
*/
public function setCreditCardType($creditCardType)
{
$this->creditCardType = $creditCardType;
}
/*
* @param string
*/
public function getCreditCardType($creditCardType)
{
return $this->creditCardType;
}
/*
* @param string
*/
Expand Down
33 changes: 17 additions & 16 deletions Lib/AlternativePayments/Model/PhoneVerification.php
Expand Up @@ -4,44 +4,45 @@

class PhoneVerification extends Element
{

/*
* @var string
*/
protected $pin;

protected $phone;
/*
* @var string
*/
protected $token;
protected $key;

/*
* @return string
*/
public function getPin()
public function getPhone()
{
return $this->pin;
return $this->phone;
}

/*
* @param string
* @var string
*/
public function setPin($pin)
public function setPhone($phone)
{
$this->pin = $pin;
$this->phone = $phone;
}

/*
* @return string
* @var string
*/
public function getToken()
public function getKey()
{
return $this->token;
return $this->key;
}

/*
* @param string
* @var string
*/
public function setToken($token)
public function setKey($key)
{
$this->token = $token;
$this->key = $key;
}
}

0 comments on commit c5121d5

Please sign in to comment.