-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from checkout/dev
1.0.6
- Loading branch information
Showing
7 changed files
with
246 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
/** | ||
* Checkout.com | ||
* Authorised and regulated as an electronic money institution | ||
* by the UK Financial Conduct Authority (FCA) under number 900816. | ||
* | ||
* PHP version 7 | ||
* | ||
* @category SDK | ||
* @package Checkout.com | ||
* @author Platforms Development Team <[email protected]> | ||
* @copyright 2010-2019 Checkout.com | ||
* @license https://opensource.org/licenses/mit-license.html MIT License | ||
* @link https://docs.checkout.com/ | ||
*/ | ||
|
||
namespace Checkout\Models\Payments; | ||
|
||
/** | ||
* Payment method Bancontact. | ||
* | ||
* @category SDK | ||
* @package Checkout.com | ||
* @author Platforms Development Team <[email protected]> | ||
* @license https://opensource.org/licenses/mit-license.html MIT License | ||
* @link https://docs.checkout.com/ | ||
*/ | ||
class BancontactSource extends IdSource | ||
{ | ||
|
||
/** | ||
* Qualified name of the class. | ||
* | ||
* @var string | ||
*/ | ||
const QUALIFIED_NAME = __CLASS__; | ||
|
||
/** | ||
* Qualified namespace of the class. | ||
* | ||
* @var string | ||
*/ | ||
const QUALIFIED_NAMESPACE = __NAMESPACE__; | ||
|
||
/** | ||
* Name of the model. | ||
* | ||
* @var string | ||
*/ | ||
const MODEL_NAME = 'bancontact'; | ||
|
||
|
||
/** | ||
* Magic Methods | ||
*/ | ||
|
||
/** | ||
* Initialise bancontact. | ||
* | ||
* @param string $name The account_holder_name | ||
* @param string $country The payment_country | ||
* @param string $descriptor The billing_descriptor | ||
*/ | ||
public function __construct($name, $country, $descriptor = '') | ||
{ | ||
$this->type = static::MODEL_NAME; | ||
$this->account_holder_name = $name; | ||
$this->payment_country = $country; | ||
$this->billing_descriptor = $descriptor; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?php | ||
|
||
/** | ||
* Checkout.com | ||
* Authorised and regulated as an electronic money institution | ||
* by the UK Financial Conduct Authority (FCA) under number 900816. | ||
* | ||
* PHP version 7 | ||
* | ||
* @category SDK | ||
* @package Checkout.com | ||
* @author Platforms Development Team <[email protected]> | ||
* @copyright 2010-2019 Checkout.com | ||
* @license https://opensource.org/licenses/mit-license.html MIT License | ||
* @link https://docs.checkout.com/ | ||
*/ | ||
|
||
namespace Checkout\Models\Payments; | ||
|
||
use Checkout\Models\Address; | ||
|
||
/** | ||
* Payment method Fawry. | ||
* | ||
* @category SDK | ||
* @package Checkout.com | ||
* @author Platforms Development Team <[email protected]> | ||
* @license https://opensource.org/licenses/mit-license.html MIT License | ||
* @link https://docs.checkout.com/ | ||
*/ | ||
class FawrySource extends IdSource | ||
{ | ||
|
||
/** | ||
* Qualified name of the class. | ||
* | ||
* @var string | ||
*/ | ||
const QUALIFIED_NAME = __CLASS__; | ||
|
||
/** | ||
* Qualified namespace of the class. | ||
* | ||
* @var string | ||
*/ | ||
const QUALIFIED_NAMESPACE = __NAMESPACE__; | ||
|
||
/** | ||
* Name of the model. | ||
* | ||
* @var string | ||
*/ | ||
const MODEL_NAME = 'fawry'; | ||
|
||
|
||
/** | ||
* Magic Methods | ||
*/ | ||
|
||
/** | ||
* Initialise payment Fawry. | ||
* | ||
* @param string $email The customer's email address | ||
* @param string $mobile The customer's mobile number | ||
* @param string $description The description of the payment | ||
* @param Product[] $products This object is passed directly to Fawry as products. | ||
*/ | ||
public function __construct($email, $mobile, $description, array $products) | ||
{ | ||
$this->type = static::MODEL_NAME; | ||
$this->customer_email = $email; | ||
$this->customer_mobile = $mobile; | ||
$this->description = $description; | ||
$this->products = $products; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
|
||
/** | ||
* Checkout.com | ||
* Authorised and regulated as an electronic money institution | ||
* by the UK Financial Conduct Authority (FCA) under number 900816. | ||
* | ||
* PHP version 7 | ||
* | ||
* @category SDK | ||
* @package Checkout.com | ||
* @author Platforms Development Team <[email protected]> | ||
* @copyright 2010-2019 Checkout.com | ||
* @license https://opensource.org/licenses/mit-license.html MIT License | ||
* @link https://docs.checkout.com/ | ||
*/ | ||
|
||
namespace Checkout\Models\Payments; | ||
|
||
/** | ||
* Payment method KNET. | ||
* | ||
* @category SDK | ||
* @package Checkout.com | ||
* @author Platforms Development Team <[email protected]> | ||
* @license https://opensource.org/licenses/mit-license.html MIT License | ||
* @link https://docs.checkout.com/ | ||
*/ | ||
class KnetSource extends IdSource | ||
{ | ||
|
||
/** | ||
* Qualified name of the class. | ||
* | ||
* @var string | ||
*/ | ||
const QUALIFIED_NAME = __CLASS__; | ||
|
||
/** | ||
* Qualified namespace of the class. | ||
* | ||
* @var string | ||
*/ | ||
const QUALIFIED_NAMESPACE = __NAMESPACE__; | ||
|
||
/** | ||
* Name of the model. | ||
* | ||
* @var string | ||
*/ | ||
const MODEL_NAME = 'knet'; | ||
|
||
|
||
/** | ||
* Magic Methods | ||
*/ | ||
|
||
/** | ||
* Initialise KNET. | ||
* | ||
* @param string $purpose 2-letter language code in accordance with ISO 639-1 | ||
*/ | ||
public function __construct($language) | ||
{ | ||
$this->type = static::MODEL_NAME; | ||
$this->language = $language; | ||
} | ||
} |