| 1 |
<?php |
| 2 |
|
| 3 |
namespace Payplug\PayplugWoocommerce\Gateway; |
| 4 |
|
| 5 |
use Payplug\Exception\HttpException; |
| 6 |
use Payplug\PayplugWoocommerce\Controller\PayplugGenericGateway; |
| 7 |
|
| 8 |
class Bancontact extends PayplugGenericGateway |
| 9 |
{ |
| 10 |
|
| 11 |
protected $enable_refund = true; |
| 12 |
const ENABLE_ON_TEST_MODE = false; |
| 13 |
|
| 14 |
public function __construct() |
| 15 |
{ |
| 16 |
|
| 17 |
parent::__construct(); |
| 18 |
|
| 19 |
/** @var \WC_Settings_API override $id */ |
| 20 |
$this->id = 'bancontact'; |
| 21 |
|
| 22 |
/** @var \WC_Payment_Gateway overwrite for bancontact settings */ |
| 23 |
$this->method_title = __('payplug_bancontact_title', 'payplug'); |
| 24 |
$this->method_description = __('payplug_bancontact_description', 'payplug'); |
| 25 |
|
| 26 |
$this->title = __('payplug_bancontact_title', 'payplug'); |
| 27 |
$this->description = ''; |
| 28 |
$this->has_fields = false; |
| 29 |
$this->image = 'lg-bancontact-checkout.svg'; |
| 30 |
|
| 31 |
if(!$this->checkGateway()){ |
| 32 |
$this->enabled = 'no'; |
| 33 |
} |
| 34 |
|
| 35 |
} |
| 36 |
|
| 37 |
} |
| 38 |
|