get_last4() 공개 메소드

Returns the last four digits.
부터: 2.6.0
public get_last4 ( string $context = 'view' ) : string
$context string
리턴 string Last 4 digits
예제 #1
0
파일: cc.php 프로젝트: tlovett1/woocommerce
 public function test_wc_payment_token_cc_read_pulls_meta()
 {
     $token = WC_Helper_Payment_Token::create_cc_token();
     $token_id = $token->get_id();
     $token_read = new WC_Payment_Token_CC();
     $token_read->read($token_id);
     $this->assertEquals('1234', $token_read->get_last4());
 }