PluginProbe
HyperPay Payments / trunk
HyperPay Payments vtrunk
6.6.0 trunk 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.1.0 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 3.0.0 3.0.5 4.0.0 4.0.2 All 34 releases
hyperpay-gateways / src / Brands / Mada.php

Mada.php in HyperPay Payments trunk, at src/Brands/Mada.php

55 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Hyperpay\Gateways\Brands;
3
4 use Hyperpay\Gateways\App\DefaultGateway;
5 use WC_Order;
6
7
8 class Mada extends DefaultGateway
9 {
10 /**
11 * should be lower case and unique
12 * @var string $id
13 */
14 public $id = 'hyperpay_mada';
15
16 /**
17 * The title which appear next to gateway on setting page
18 * @var string $method_title
19 */
20 public $method_title = 'mada';
21
22 public $trans_mode = 'EXTERNAL';
23
24 /**
25 * Description of gateways which will appear next to title
26 * @var string $method_description
27 */
28 public $method_description = 'Mada Plugin for Woocommerce';
29
30
31 /**
32 *
33 * the Brands supported by the gateway
34 * @var array $supported_brands
35 */
36 protected $supported_brands = [
37 'MADA' => 'Mada',
38 ];
39
40 public function boot()
41 {
42
43 $this->title = __('mada debit card', 'hyperpay-gateways');
44 $this->brands = ['MADA'];
45 }
46
47
48 public function renderPaymentForm(WC_Order $order, $result)
49 {
50 parent::renderPaymentForm($order,$result);
51 wp_enqueue_style('hyperpay_mada_style', HYPERPAY_PLUGIN_DIR . '/src/assets/css/mada.css', [], '6.0.1');
52 }
53
54 }
55