| 1 |
<?php |
| 2 |
namespace Hyperpay\Gateways\Brands; |
| 3 |
|
| 4 |
use Hyperpay\Gateways\App\DefaultGateway; |
| 5 |
use Hyperpay\Gateways\Main; |
| 6 |
use WC_Order; |
| 7 |
|
| 8 |
class CreditCard extends DefaultGateway |
| 9 |
{ |
| 10 |
/** |
| 11 |
* should be lower case and unique |
| 12 |
* @var string $id |
| 13 |
*/ |
| 14 |
public $id = 'hyperpay'; |
| 15 |
|
| 16 |
/** |
| 17 |
* The title which appear next to gateway on setting page |
| 18 |
* @var string $method_title |
| 19 |
*/ |
| 20 |
public $method_title = 'Hyperpay Gateway'; |
| 21 |
|
| 22 |
/** |
| 23 |
* Description of gateways which will appear next to title |
| 24 |
* @var string $method_description |
| 25 |
*/ |
| 26 |
public $method_description = 'Hyperpay Plugin for Woocommerce'; |
| 27 |
|
| 28 |
/** |
| 29 |
* |
| 30 |
* the Brands supported by the gateway |
| 31 |
* @var array $supported_brands |
| 32 |
*/ |
| 33 |
protected $supported_brands = [ |
| 34 |
'VISA' => 'Visa', |
| 35 |
'MASTER' => 'Master Card', |
| 36 |
'AMEX' => 'American Express', |
| 37 |
'JCB' => 'Japan Credit Bureau' |
| 38 |
]; |
| 39 |
|
| 40 |
public function __construct() |
| 41 |
{ |
| 42 |
parent::__construct(); |
| 43 |
$this->blackBins = require_once(Main::ROOT_PATH . '/App/blackBins.php'); |
| 44 |
} |
| 45 |
|
| 46 |
|
| 47 |
} |
| 48 |
|