fix nil as payment_code