function pay_method_gateway::cc_expiration in Pay 7
Same name and namespace in other branches
- 6 includes/handlers/pay_method_gateway.inc \pay_method_gateway::cc_expiration()
File
- includes/
handlers/ pay_method_gateway.inc, line 148 - The base class for credit card payment activities.
Class
- pay_method_gateway
- @file The base class for credit card payment activities.
Code
function cc_expiration() {
if ($this->cc_exp_month && $this->cc_exp_year) {
$exp = str_pad((int) $this->cc_exp_month, 2, '0', STR_PAD_LEFT);
$exp .= str_pad((int) $this->cc_exp_year, 2, '0', STR_PAD_LEFT);
return $exp;
}
}