Hello, I think I may have identified a situation where referrers are not attributed during checkout.
Prerequisites..
* Nexus set to "Force users to make a purchase when registering?".
* Using Stripe gateway.
* Have referrals configured
Issue (I think?)...
In Core, Referrals are logged and through an "onCreateAccount" MemberSync hook. It looks for the "referred_by" cookie in the request. However when using Stripe, our member accounts are created during the webhook request from Stripe - so the customers cookie is not present in the request, and the referral is not logged for the member.
I have some logging running during the "onCreateAccount" hook for one of my own extensions, so you can see the backtrace of the request that creates the account from Stripe (and therefore doesn't have the referred_by cookie).
Going through the checkout code I also see there's some logic to store the "referred_by" in the "guest_data" field on an invoice, but I don't see that stored in our database and I don't see any code that looks at that field to apply the referral via that route anyway (but maybe it worked this way in the past??)
Would really appreciate your help looking in to this!
Thanks!