I want to set up a Drupal 9 webform to enable people to buy a gift membership. I don't want to use the Gift Membership extension because it's approach of creating a redeemable code doesn't fit with our business processes: we want to be able to contact the recipient of the gift membership directly as part of the on-boarding process, and create a relationship between the purchaser and the holder of the membership.
So I need the webform to create the two contact records in CiviCRM so that I can then communicate appropriately to both the purchaser and the member.
My work so far on this seems to indicate that this isn't achievable, but I may well be missing a trick. Webform_CiviCRM appears to assume that any contribution is linked to Contact 1 in the form (there's no option to choose the contact that will be linked to the contribution record). If I then specify that I want a membership for Contact 2, the price for the membership doesn't appear to get included, so the total is always 0, and no payment can be processed.
Can I use the 'in honour of' element? (never used it before so I'm unclear as to what it actually does).
Has anyone got anything like this working? Am I doing something wrong?