WC_Payment_Token_CC::set_last4()publicWC 2.6.0

Set the last four digits.

Method of the class: WC_Payment_Token_CC{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Payment_Token_CC = new WC_Payment_Token_CC();
$WC_Payment_Token_CC->set_last4( $last4 );
$last4(string) (required)
Credit card last four digits.

Changelog

Since 2.6.0 Introduced.

WC_Payment_Token_CC::set_last4() code WC 8.7.0

public function set_last4( $last4 ) {
	$this->set_prop( 'last4', $last4 );
}