WC_Payment_Token_CC::set_expiry_month( string $month )

Set the expiration month for the card (formats into MM format).


Description Description


Parameters Parameters

$month

(Required) Credit card expiration month.


Top ↑

Source Source

File: includes/payment-tokens/class-wc-payment-token-cc.php

	public function set_expiry_month( $month ) {
		$this->set_prop( 'expiry_month', str_pad( $month, 2, '0', STR_PAD_LEFT ) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.