The value of your $signed_field_names variable should include "reference_number".
See pages 71 and 72 in their docs.