1 | <?php |
||
11 | trait PaymentMethodTrait |
||
12 | { |
||
13 | /** |
||
14 | * @var PaymentMethodRepositoryInterface |
||
15 | */ |
||
16 | private $paymentMethodRepository; |
||
17 | |||
18 | /** |
||
19 | * @var PaymentMethodFactoryInterface |
||
20 | */ |
||
21 | private $paymentMethodFactory; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $gatewayFactories; |
||
27 | |||
28 | /** |
||
29 | * PaymentContext constructor. |
||
30 | * |
||
31 | * @param PaymentMethodRepositoryInterface $paymentMethodRepository |
||
32 | * @param PaymentMethodFactoryInterface $paymentMethodFactory |
||
33 | * @param array $gatewayFactories |
||
34 | */ |
||
35 | public function __construct( |
||
44 | |||
45 | /** |
||
46 | * @param string $name |
||
47 | * @param string $code |
||
48 | * @param string $gatewayFactory |
||
49 | * @param string $description |
||
50 | * @param int|null $position |
||
51 | * @param array $config |
||
52 | * @param bool $supportsRecurring |
||
53 | * |
||
54 | * @return PaymentMethodInterface |
||
55 | */ |
||
56 | public function createPaymentMethod( |
||
88 | } |
||
89 |