Level 54
The key gets attached to the Billable object, which provides a method to set the key.. so your instinct on using a helper to set it contextually makes sense to me.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm assisting a non-profit organization that collects payments in two different accounts (an operating account and a donations account), requiring two separate Stripe accounts. What would be the cleanest way to maintain multiple Stripe keys using Cashier? I was thinking of building a helper class to return the required Stripe key based on the context. Perhaps, there is a better way; I'm very new to Cashier.
Please or to participate in this conversation.