A versatile Kirby User Membership Plug-In powered by Stripe Subscriptions for Kirby CMS.
For a couple of ideas with Kirby CMS, I thought it would be nice to have a lean membership functionality powered by Stripe (Checkout & Customer Portal).
I put a lot of effort into the README file to describe as most straightforward and easy as possible how to use the Plug-In and how the Plug-In is working. In case I missed anything please feel free to ask!
Attached some screenshots (since pictures say more than words) …
When a Kirby user has been created, the Kirby hook (“user.create:after”) writes the stripe customer id into the Kirby user. → Check out the source code
Stripe-customer: cus_JFnUXXXXXXX
----
Tier: Basic
(Also, the user will be logged in after successful creation.)
Recently, I added another hook within the config.php (“user.login:after”) to capture the last login within the Kirby user:
Now, the Plug-In hook (“user.create:after”) is able to create the stripe customer successfully but fails to update the Kirby user (no exception/error), and surprisingly the hook (“user.login:after”) is able update the Kirby user!
… Do you have an idea?
Or could you tell me more about the execution sequence of Kirby hooks please?
(Is it possible that one hook blocks the other to update the user?)