Ask a side project which payment provider it uses and the answer is usually baked into the models, the controllers, the jobs and half the views. Switching from Stripe to Paddle - say you want a merchant of record to take sales tax and VAT off your plate - becomes a rewrite instead of a config change. That ossification is a choice, and it happens on day one, when the first Cashier::billable trait goes onto the User model and the provider's nouns leak into every corner of the app.
Here is the alternative the kit this series is drawn from ships: two providers, Paddle and Stripe, behind one small contract, with plans defined in config and every piece of billing state written by webhooks. No Cashier, no billing package at all.
The whole surface is five methods
Everything the application needs from a billing provider fits in one interface:
interface BillingProvider { public function name ( ) : string ;
/** * A hosted checkout URL for the plan.…