With the introduction of account holders in
@medusajs, we decided to rework some existing logic to support this architecture.
By default, you can only create an account holder at checkout. This is where you'd typically add & manage payment methods in platforms like Shopify.
But what if you have an account section where it feels natural for a customer to manage payment methods? Or maybe they want to manage details without creating a cart, such as to replace an expired card?
Using some built-in payment module methods along with custom Stripe methods, we were able to extend this logic to support creating account holders & saving cards outside of the checkout flow, all while working within the account holder architecture.
Now, it doesn't matter how or when a user access either flow. They'll be able to manage payment methods as needed with zero friction.