make receipt sending function cope with multiple versions - so we can merge into 4.2 without maintaining too many differences