Automatic Member Creation
New Members
For new members, those without an existing Kirby user account for their email, the Klub plugin will create a new account with the member
role after a successful purchase.
It will also store the Stripe customer ID, which allows them to change the email address later without any side effects.
Automatic login
After a purchase, newly created members are automatically logged in. There is no validation of email required.
Not Logged In Members
If an existing member makes a purchase but is not logged in before doing so, the Klub plugin will try to find his Kirby account after the purchase based on the email from the Stripe checkout flow. All actions will be performed on that user account, but it will not log in automatically to prevent any exploits.
There is no easy way to merge two Stripe accounts with different emails and/or customer IDs.