PHP Class WC_Payment_Token_eCheck

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

Protected Properties

Property Type Description
$type

Public Methods

Method 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.

Protected Methods

Method Description
get_hook_prefix ( ) Hook prefix

Method Details

get_display_name() public method

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

get_hook_prefix() protected method

Hook prefix
Since: 2.7.0
protected get_hook_prefix ( )

get_last4() public method

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

set_last4() public method

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

validate() public method

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

Property Details

$type protected_oe property

protected $type