Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
wp-content
/
plugins
/
woocommerce
/
includes
/
payment-tokens
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php if (!defined('ABSPATH')) { exit; } class WC_Payment_Token_ECheck extends WC_Payment_Token { protected $type = 'eCheck'; protected $extra_data = array('last4' => ''); public function get_display_name($deprecated = '') { $display = sprintf(__('eCheck ending in %1$s', 'woocommerce'), $this->get_last4()); return $display; } protected function get_hook_prefix() { return 'woocommerce_payment_token_echeck_get_'; } public function validate() { if (false === parent::validate()) { return false; } if (!$this->get_last4('edit')) { return false; } return true; } public function get_last4($context = 'view') { return $this->get_prop('last4', $context); } public function set_last4($last4) { $this->set_prop('last4', $last4); } }