@@ -15,14 +15,19 @@ interface ConfigInterface
15
15
/**
16
16
* XML Paths of configuration settings
17
17
*/
18
- public const XML_PATH_GENERAL_ENABLED = 'payment/cm_payments_general/enabled ' ;
19
- public const XML_PATH_GENERAL_MERCHANT_KEY = 'payment/cm_payments_general/merchant_key ' ;
20
- public const XML_PATH_GENERAL_MERCHANT_NAME = 'payment/cm_payments_general/merchant_name ' ;
21
- public const XML_PATH_GENERAL_MERCHANT_PASSWORD = 'payment/cm_payments_general/merchant_password ' ;
22
- public const XML_PATH_GENERAL_MODE = 'payment/cm_payments_general/mode ' ;
18
+ public const XML_PATH_GENERAL_ENABLED = 'cm_payments/general/enabled ' ;
19
+ public const XML_PATH_GENERAL_CURRENT_VERSION = 'cm_payments/general/current_version ' ;
20
+ public const XML_PATH_GENERAL_TEST_MERCHANT_NAME = 'cm_payments/general/test_merchant_name ' ;
21
+ public const XML_PATH_GENERAL_TEST_MERCHANT_PASSWORD = 'cm_payments/general/test_merchant_password ' ;
22
+ public const XML_PATH_GENERAL_TEST_MERCHANT_KEY = 'cm_payments/general/test_merchant_key ' ;
23
+ public const XML_PATH_GENERAL_LIVE_MERCHANT_NAME = 'cm_payments/general/live_merchant_name ' ;
24
+ public const XML_PATH_GENERAL_LIVE_MERCHANT_PASSWORD = 'cm_payments/general/live_merchant_password ' ;
25
+ public const XML_PATH_GENERAL_LIVE_MERCHANT_KEY = 'cm_payments/general/live_merchant_key ' ;
26
+ public const XML_PATH_GENERAL_MODE = 'cm_payments/general/mode ' ;
23
27
public const XML_PATH_PAYMENT_PROFILE = 'payment/cm_payments_methods/profile ' ;
24
28
public const XML_PATH_PAYMENT_CREDIT_CARD_PROFILE = 'payment/cm_payments_creditcard/profile ' ;
25
29
public const XML_PATH_PAYMENT_BANCONTACT_PROFILE = 'payment/cm_payments_bancontact/profile ' ;
30
+ public const XML_PATH_PAYMENT_CM_PAYMENTS_PROFILE = 'payment/cm_payments/profile ' ;
26
31
27
32
/**
28
33
* Checks that extension is enabled
@@ -33,30 +38,47 @@ interface ConfigInterface
33
38
public function isEnabled (): ?bool ;
34
39
35
40
/**
41
+ * Get Current Version
42
+ *
43
+ * @return string|null
44
+ * @throws NoSuchEntityException
45
+ */
46
+ public function getCurrentVersion (): ?string ;
47
+
48
+ /**
49
+ * Get Merchant Key
50
+ *
36
51
* @return string|null
37
52
* @throws NoSuchEntityException
38
53
*/
39
54
public function getMerchantKey (): ?string ;
40
55
41
56
/**
57
+ * Get Merchant Name
58
+ *
42
59
* @return string|null
43
60
* @throws NoSuchEntityException
44
61
*/
45
62
public function getMerchantName (): ?string ;
46
63
47
64
/**
65
+ * Get Merchant Password
66
+ *
48
67
* @return string|null
49
68
* @throws NoSuchEntityException
50
69
*/
51
70
public function getMerchantPassword (): ?string ;
52
71
53
72
/**
73
+ * @param string $paymentMethod
54
74
* @return string|null
55
75
* @throws NoSuchEntityException
56
76
*/
57
- public function getPaymentProfile (): ?string ;
77
+ public function getPaymentProfile (string $ paymentMethod ): ?string ;
58
78
59
79
/**
80
+ * Get mode
81
+ *
60
82
* @return string|null
61
83
* @throws NoSuchEntityException
62
84
*/
@@ -86,4 +108,12 @@ public function getCreditCardPaymentProfile(): ?string;
86
108
* @throws NoSuchEntityException
87
109
*/
88
110
public function getBanContactPaymentProfile (): ?string ;
111
+
112
+ /**
113
+ * Get Payment Profile for CM Payments Menu Method
114
+ *
115
+ * @return ?string
116
+ * @throws NoSuchEntityException
117
+ */
118
+ public function getCmPaymentsMenuPaymentProfile (): ?string ;
89
119
}
0 commit comments