PaymentMethodServiceInterface
        PaymentMethodServiceInterface.php
                :
        20
                 
    
            Interface
                Service for managing payment methods.
Methods¶
                 createPaymentMethod()
            ¶
createPaymentMethod()
            ¶
    
        
        PaymentMethodServiceInterface.php
                :
        66
                 
    
        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()
            ¶
deletePaymentMethod()
            ¶
    
        
        PaymentMethodServiceInterface.php
                :
        86
                 
    
        Deletes the payment method.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $paymentMethod | PaymentMethodInterface | - | - | 
Tags
                 findPaymentMethods()
            ¶
findPaymentMethods()
            ¶
    
        
        PaymentMethodServiceInterface.php
                :
        51
                 
    
        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()
            ¶
getPaymentMethod()
            ¶
    
        
        PaymentMethodServiceInterface.php
                :
        30
                 
    
        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()
            ¶
getPaymentMethodByIdentifier()
            ¶
    
        
        PaymentMethodServiceInterface.php
                :
        40
                 
    
        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()
            ¶
isPaymentMethodUsed()
            ¶
    
        
        PaymentMethodServiceInterface.php
                :
        91
                 
    
        Checks if the payment method is used in any payment.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $paymentMethod | PaymentMethodInterface | - | - | 
Return values
bool
                 updatePaymentMethod()
            ¶
updatePaymentMethod()
            ¶
    
        
        PaymentMethodServiceInterface.php
                :
        76
                 
    
        Updates the payment method with given data.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $paymentMethod | PaymentMethodInterface | - | - | 
| $updateStruct | PaymentMethodUpdateStruct | - | - |