return 0 if the voucher is pending.