Two friends invited me. Who gets the credit?
You choose. The first invitation you opened is suggested at checkout — "Invited by Paul ✓ Change" — and you can switch to anyone else who really invited you to that event before you pay.
At checkout you'll see Invited by Paul ✓ at the top. If more than one person sent you an invitation for that event, a Change link appears and you can pick any of them.
A later invitation never quietly replaces the first one — nothing changes unless you change it.
You can only pick people who actually sent you an invitation for that event (and never yourself). Once you pay, your choice is locked for that event, including for any more tickets you buy for it later.