Use define_singleton_method to define receipt methods.