Copied!

PaymentMethodInterface

PaymentMethodInterface.php : 16
Interface

Methods

publicgetCreatedAt()

PaymentMethodInterface.php : 59

Returns the date and time when the payment method was created.

public getCreatedAt() : DateTimeInterface

Return values

DateTimeInterface

publicgetDescription()

PaymentMethodInterface.php : 36

Returns the description of the payment method in given language.

public getDescription([string|null $languageCode = null ]) : string|null

Parameters

Name Type Default value Description
$languageCode string|null null

Language code in which the description should be returned or null to use the main language

Return values

string|null

publicgetId()

PaymentMethodInterface.php : 18
public getId() : int

Return values

int

publicgetIdentifier()

PaymentMethodInterface.php : 20
public getIdentifier() : string

Return values

string

publicgetLanguages()

PaymentMethodInterface.php : 50

Returns the list of languages in which the payment method is available.

public getLanguages() : array<string|int, string>

Return values

array<string|int, string>

publicgetMainLanguageCode()

PaymentMethodInterface.php : 43

Return the main language code of the payment method.

public getMainLanguageCode() : string

Return values

string

Tags
Throws
BadStateException

If the main language code is not set

publicgetName()

PaymentMethodInterface.php : 29

Returns the name of the payment method in given language.

public getName([string|null $languageCode = null ]) : string

Parameters

Name Type Default value Description
$languageCode string|null null

Language code in which the name should be returned or null to use the main language

Return values

string

publicgetOptions()

PaymentMethodInterface.php : 54
public getOptions() : OptionsBag

Return values

OptionsBag

publicgetType()

PaymentMethodInterface.php : 22
public getType() : TypeInterface

Return values

TypeInterface

publicgetUpdatedAt()

PaymentMethodInterface.php : 64

Returns the date and time when the payment method was last updated.

public getUpdatedAt() : DateTimeInterface

Return values

DateTimeInterface

publicisEnabled()

PaymentMethodInterface.php : 52
public isEnabled() : bool

Return values

bool