This repository has been archived by the owner on Mar 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Payment.php
60 lines (51 loc) · 1.43 KB
/
Payment.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* @file
* Contains \Drupal\payment\Payment.
*/
namespace Drupal\payment;
/**
* Provides wrappers for services.
*/
class Payment {
/**
* Returns the payment method manager.
*
* @return \Drupal\payment\Plugin\Payment\Method\PaymentMethodManagerInterface
*/
public static function methodManager() {
return \Drupal::service('plugin.manager.payment.method');
}
/**
* Returns the payment method configuration manager.
*
* @return \Drupal\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationManagerInterface
*/
public static function methodConfigurationManager() {
return \Drupal::service('plugin.manager.payment.method_configuration');
}
/**
* Returns the payment line item manager.
*
* @return \Drupal\payment\Plugin\Payment\LineItem\PaymentLineItemManagerInterface
*/
public static function lineItemManager() {
return \Drupal::service('plugin.manager.payment.line_item');
}
/**
* Returns the payment status manager.
*
* @return \Drupal\payment\Plugin\Payment\Status\PaymentStatusManagerInterface
*/
public static function statusManager() {
return \Drupal::service('plugin.manager.payment.status');
}
/**
* Returns the payment type manager.
*
* @return \Drupal\payment\Plugin\Payment\Type\PaymentTypeManagerInterface
*/
public static function typeManager() {
return \Drupal::service('plugin.manager.payment.type');
}
}