PHP Class WC_Payment_Token_eCheck

Representation of a payment token for eChecks.
Since: 2.6.0
Author: WooThemes
Inheritance: extends WC_Payment_Token
Afficher le fichier Open project: woocommerce/woocommerce Class Usage Examples

Protected Properties

Свойство Type Description
$type

Méthodes publiques

Méthode Description
get_display_name ( string $context = 'view' ) : string Get type to display to user.
get_last4 ( string $context = 'view' ) : string Returns the last four digits.
set_last4 ( string $last4 ) Set the last four digits.
validate ( ) : boolean Validate eCheck payment tokens.

Méthodes protégées

Méthode Description
get_hook_prefix ( ) Hook prefix

Method Details

get_display_name() public méthode

Get type to display to user.
Since: 2.6.0
public get_display_name ( string $context = 'view' ) : string
$context string
Résultat string

get_hook_prefix() protected méthode

Hook prefix
Since: 2.7.0
protected get_hook_prefix ( )

get_last4() public méthode

Returns the last four digits.
Since: 2.6.0
public get_last4 ( string $context = 'view' ) : string
$context string
Résultat string Last 4 digits

set_last4() public méthode

Set the last four digits.
Since: 2.6.0
public set_last4 ( string $last4 )
$last4 string

validate() public méthode

These fields are required by all eCheck payment tokens: last4 - string Last 4 digits of the check
Since: 2.6.0
public validate ( ) : boolean
Résultat boolean True if the passed data is valid

Property Details

$type protected_oe property

protected $type