3 ms·
Question: did you plan the abstraction by looking at multiple providers first then figuring out the abstraction that would work well for all of them or did you
by james_s_tayler 8y ago
Question: did you plan the abstraction by looking at multiple providers first then figuring out the abstraction that would work well for all of them or did you just look at Stripe and luckily come up with an abstraction that also worked for other providers?
I'm encouraged by your success of this model. I'm currently struggling with the 'billing system as source of truth' model.
- base 8y agoWe used other payment gateways before Stripe. We built the abstraction around the requirements for our business model, although after some iterations it became similar to the model used by Stripe (customers, sources, plans...). We support saved payment options and on them we do recurring billing and one-stop payments. A user for us can have multiple sources and a source is a saved external card or payment method, in the case of Stripe a source is a combination of the Stripe customer id and Stripe source token. Most payment gateways support some kind of token that represents a saved card or similar on which you can do a charge.