 
 $.validators.validateCardExpiry = (expiry_string) ->
         expiry = $.payment.cardExpiryVal(expiry_string)
-        return $.payment.validateCardExpiry(expiry['month'], expiry['year'])
+        return $.payment.validateCardExpiry(expiry.month, expiry.year)
 
 $.validators.validateCardCVC = (cvc, type) ->
         return $.payment.validateCardCVC(cvc, type)

  $.validators.dateVal($(this).val())

$.validators.dateVal = (date_string) ->
	# [day, month, year] = if /[^\d\/\s]/g.test(date_string) then (NaN, NaN, NaN) else 
	
	[day, month, year] = date_string.replace(/\s/g, '').split('/', 3)

	day   = parseInt(day, 10)
	month = parseInt(month, 10)
	year  = parseInt(year, 10)

	return day: day, month: month, year: year


$.validators.validatePostalCode = (postal_code_string) ->
	return false unless postal_code_string?
	postal_code_string = postal_code_string.replace(/\s+/g, '')
	return false unless /^[a-zA-Z\d]+$/.test(postal_code_string)

