Copied!

PaymentMethodInterface

PaymentMethodInterface.php : 15

Methods

publicgetCreatedAt()

PaymentMethodInterface.php : 58

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

public getCreatedAt() : DateTimeInterface

Return values

DateTimeInterface

publicgetDescription()

PaymentMethodInterface.php : 35

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 : 17
public getId() : int

Return values

int

publicgetIdentifier()

PaymentMethodInterface.php : 19
public getIdentifier() : string

Return values

string

publicgetLanguages()

PaymentMethodInterface.php : 49

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 : 42

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 : 28

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 : 53
public getOptions() : OptionsBag

Return values

OptionsBag

publicgetType()

PaymentMethodInterface.php : 21
public getType() : TypeInterface

Return values

TypeInterface

publicgetUpdatedAt()

PaymentMethodInterface.php : 63

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

public getUpdatedAt() : DateTimeInterface

Return values

DateTimeInterface

publicisEnabled()

PaymentMethodInterface.php : 51
public isEnabled() : bool

Return values

bool