PaymentMethodServiceInterface
PaymentMethodServiceInterface.php
:
25
Interface
Service for managing payment methods.
Methods¶
createPaymentMethod()
¶
PaymentMethodServiceInterface.php
:
74
Creates a new payment method.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | PaymentMethodCreateStruct | - |
Struct with data needed to create a new payment method. |
Return values
Tags
deletePaymentMethod()
¶
PaymentMethodServiceInterface.php
:
94
Deletes the payment method.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $paymentMethod | PaymentMethodInterface | - | - |
Tags
findPaymentMethods()
¶
PaymentMethodServiceInterface.php
:
59
Returns payment methods matching the given query.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $query | PaymentMethodQuery|null | null |
Query used to fetch methods. |
| $prioritizedLanguages | array<string|int, string>|null | null |
List of languages to use for fetching the payment methods. |
Return values
getPaymentMethod()
¶
PaymentMethodServiceInterface.php
:
35
Returns payment method with given id.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $id | int | - | - |
| $prioritizedLanguages | array<string|int, string>|null | null |
List of languages to use for fetching the payment method. |
Return values
Tags
getPaymentMethodByIdentifier()
¶
PaymentMethodServiceInterface.php
:
48
Returns payment method with given identifier.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
| $prioritizedLanguages | array<string|int, string>|null | null |
List of languages to use for fetching the payment method. |
Return values
Tags
isPaymentMethodUsed()
¶
PaymentMethodServiceInterface.php
:
99
Checks if the payment method is used in any payment.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $paymentMethod | PaymentMethodInterface | - | - |
Return values
bool
updatePaymentMethod()
¶
PaymentMethodServiceInterface.php
:
84
Updates the payment method with given data.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $paymentMethod | PaymentMethodInterface | - | - |
| $updateStruct | PaymentMethodUpdateStruct | - | - |