#534 Renamed $code -> $voucher for consistency