Copied!

TypeInterface

TypeInterface.php : 29

Interface for payment method types.

final class CreditCardType implements TypeInterface
{
    public function getIdentifier(): string
    {
        return 'credit_card';
    }

    public function getName(): string
    {
         return 'Credit Card';
    }
}

Methods

publicgetIdentifier()

TypeInterface.php : 36

Returns the identifier of the payment method type.

public getIdentifier() : string

Identifier MUST be unique and SHOULD contain alphanumeric characters and underscores.

Return values

string

publicgetName()

TypeInterface.php : 41

Returns the name of the payment method type.

public getName() : string

Return values

string