Lurker News
Back to discussion

Comment by brightball

brightball8 replies#
Stuff like this is why I think a business should have a system that abstracts away the payment processor.

I use Stripe for invoices, but I can easily send an invoice through another platform if needed.
For processing transactions on the web, I would always lean toward using a service like ChargeBee that allows me to setup multiple payment gateways.
Getting off the ground quickly is one thing, but the moment that you have reliable revenue is the moment that you need to put some serious emphasis on redundancy across your business to plan for disasters, outages, etc. It's worth it to pay the fees to maintain a 2nd (or 3rd) payment processor once you have that type of revenue coming in.

BiteCode_dev4 replies#
And if ChargeBee bans you, you are still dead because that's a single point of failure. No, you should have several payment processors, and rotate them regularly to check they work.
eropple2 replies#
It's been a while since I dealt with this side of ecommerce - how can you have several payment processors, and rotate them, without having to handle card data yourself? (Most folks aren't really equipped to do that.)
BiteCode_dev#
You use several API, attach one provider per customer to divide the risks. When one provider bails out, you onboard new customers and new payment on the other payment provider.

Then you only loose the recurring payments on the lost provider that are on hold, and you are not dying, so you can resolve that problem using a lawyer.
This is crisis management, not technical perfection that you need for those situations.

yamtaddle6 replies#

    display_cc_form_that_handles_cc_data_so_we_do_not_have_to() {
        which_one = random_number(3)
        switch which_one {
            case 1:
                display_authorizedotnet_form()
                break
            case 2:
                display_stripe_form()
                break
            default:
                display_paypal_form()
        }
    }

Plus the same integration work for each one that you'd have to do anyway (which may be little or none if you're using a platform that integrates all of them via plugins or settings or whatever)

Like maybe don't literally randomize it request-by-request, but that's how you'd be ready to use multiple processors, and you could do something a little more complex to, say, rotate which one you're on every Wednesday, or whatever. Or just have it ready so a one-line code change or config toggle switches which one you're on (that's only worse because if something's not used frequently in prod, there's a good chance it doesn't actually work, even if it once did)

Continue this thread — 6 replies

brightball2 replies#
Under ChargeBee's terms, they must provide you with your data for up to 120 days following any termination. So there's that at least.

> 7.2.3. Data Export Following termination or expiration of a Subscription, We will retain that Account’s Service Data for one hundred twenty (120) days from such date of termination or expiration (“Data Retention Period”).
I mean, ideally we need an open source PCI compliant equivalent of ChargeBee so that you can 100% own your customers payment information.
That's the way this problem really gets solved, but the security surface for that open source project is going to be a challenge.

hinkley2 replies#
SLAs only entitle you to a refund, not compensation for lost income. If you’re not making at least four times as much off a service as you pay for it, you really need to think about why you use that service.

Power can go out. Promises from the power company don’t fix that. Only backup power does.

Continue this thread — 2 replies

connordoner#
The problem with that idea is that PCI compliance doesn't just include the software you're running, but the infrastructure you run it on, various elements of organisational security and, of course, certification costs.
gingerlime1 reply#
Besides being a single point of failure, we tried to switch to ChargeBee and found them to be pretty lacking (to put it mildly). The platform looks nice and has lots of options, but under the hood things seem pretty fragile. Horrible docs, random 500 errors that weren't showing on the status page (and support ignored until more customers reported it), our Stripe gateway disconnected and the system still appeared to be working (partly, partly failing) with no alerts, plus lots of other odd behaviour. To be fair, all of this was on the test system, but we didn't feel confident to go live so we put the migration on hold. YMMV of course.
brightball#
Fwiw, I’m just using them as an example. There are likely plenty of other options.
KaoruAoiShiho#
That's why you need a self hosted solution.
yaythefuture#
We're built on Rails which has the extreme luxury of being able to use ActiveMerchant, which does exactly this. The problem is, abstraction falls apart when you're using functions that are specific to a product. Stripe Connect is is nearly impossible to replicate with an adapter.
brightball#
I will definitely look into that.
canadiantim3 replies#
Have you tried or considered lago? (getlago.com) I haven't heard of killbill, so will definitely look into them. Love that they're open-source as well and seems like they've been at it a long while.
gingerlime1 reply#
Thank you! First I hear about either of those, but definitely interesting. Are there paid / hosted versions of lago? after a sub-par experience trying to switch to ChargeBee I'm looking for alternatives, but struggle to find something that fits our needs.

Continue this thread — 1 reply

chromatin#
Lago looks interesting, and promising if development continues, but nowhere near as feature complete or battle tested as Kill Bill.
NetOpWibby#
Lago looks beautiful, thanks for sharing!
mattbee#
Yup I did this at my last business in 2008; instead of changing payment processors we abstracted them away behind a pretty small API that also stored and charged card numbers. We could flip back and forth between two. PCI DSS gradually became a bummer around that time but it was a very slow introduction which we were able to cope with.
jstummbillig2 replies#
> Stuff like this is why I think a business should have a system that abstracts away the payment processor.

Realistically, more humanly, payment processors and other big tech companies that are basically societies digital gum and infrastructure can simply not be tasked with making these calls. I also don't think they are very keen to do it but in the absence of timely regulation they must.
There have to be more rigorous ground rules (what is the business allowed to do, what must they do, what is the user allowed to do, and what are they entitled to), by law, and quickly.

mardifoufs1 reply#
But there are tons of rules and laws around payments already, and they are often the reason why providers are so trigger happy and conservative even if it means losing clients. Regulatory requirements (KYC, money laundering, sanctions) usually force them to make those calls, quickly and by design. It's very clear that most financial regulations are customer/client unfriendly, and inherently treat them with distrust.

I'm not saying that's an inherently good or bad thing... But it sure would be hard to fit both customer protections laws and service guarantees while at the same time having laws that explicitly force providers to do the opposite.

jstummbillig#
There is nothing intrinsic about financial regulations that needs to be customer unfriendly. Checks can work both ways and what happened at stripe could for example be avoided by a statue which requires a reasonable explanation and a clear path and timeline towards resolution for the customer, regardless of the company they work with.
carrotcarrot#
You think stripe and PayPal are not keen to control the flow of information and business success?
canadiantim1 reply#
I'm just starting to use Lago (getlago.com) for this. I'm not affiliated with them, but it solves the need for me for an open-source payment-processor-agnostic billing system that can easily swap between processors while maintaining a single source of truth.
cx42net2 replies#
But what happens if getlago.com bans you? Haven't you just moved the single-point-of-failure at a different place?

Continue this thread — 2 replies

Continue this thread — 2 more replies