Automatically create related content type

In afterCreate of Member you generate a fee, the id of the created fee you use to update the fee-Field in the created Member entry.
Might also be possible to do that in beforeCreate of Member without the need of updating the Member entry afterwards.