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 / Valu.php

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

61 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Hyperpay\Gateways\Brands;
4
5 use Hyperpay\Gateways\App\DefaultGateway;
6 use WC_Order;
7
8
9 class Valu extends DefaultGateway
10 {
11
12 public $trans_mode = 'EXTERNAL';
13
14 public $server_to_server = true;
15 /**
16 * should be lower case and unique
17 * @var string $id
18 */
19 public $id = "hyperpay_valu";
20
21 /**
22 * The title which appear next to gateway on setting page
23 * @var string $method_title
24 */
25 public $method_title = "ValU";
26
27 /**
28 * Description of gateways which will appear next to title
29 * @var string $method_description
30 */
31 public $method_description = "ValU Plugin for Woocommerce";
32
33
34 /**
35 *
36 * the Brands supported by the gateway
37 * @var array $supported_brands
38 */
39 protected $supported_brands = [
40 "VALU" => "ValU",
41 ];
42
43
44 /**
45 * to set extra parameter on requested data to connector
46 * just uncomment the function below
47 *
48 * @param object $order
49 * @return array
50 */
51
52 public function setExtraData(WC_Order $order): array
53 {
54 $data = [
55 "customer.mobile" => $order->get_billing_phone(),
56 ];
57
58 return ['body' => $data];
59 }
60 }
61