So again, that layer of abstraction that the orchestration layer is providing, it's just caring that it needs to process the payment, it's going to use an adapter under the hood to adapt the right gateway. When it comes to that rules configuration that we talked about, we can see actually over here what a rules configuration looks like for a Stripe payment gateway. So you can see that Stripe is defined, and we have something called an enablement criteria. And this has an SQL like type syntax, or, you know, in terms of understanding how it operates, where you can have or an and operators to decide what to include and exclude and how to define your conditions for what should work, what should render in your orchestration layer. And so you can see, for the country's enablement criteria, you have only in China, so only render this payment method in China, and only in test Stripe gateway, which is a feature flag. So if I want to be able to enable this in the US, I can enable a feature flag in the US. And it will also be enabled via an experiment, I don't just have to rely on the country alone. And then there's no currency limits, we put null for currencies. We've also defined AliPay as a payment method.
Just because you've selected a gateway in China, as Stripe, that doesn't mean all of the payment methods are supported in that particular country. So we've defined AliPay. And we've said that, hey, only render this in China. And then, as we explained a little bit before, in terms of the context providers, you're passing that Stripe provider that's provided by the Stripe SDK in as the payment gateway context provider so it knows what provider to render so that we can render that checkout and provide it the right state. If we wanted to add a new payment method, such as PayPal, we just need to define PayPal as a payment method, say that it's enabled in the US, for example, add us as a country to our enablement criteria. And in seven lines of code, you've added a payment method.
Now, if we look a little bit in terms of numbers, if you've got a 10 million ARR business and you're operating 24 7, for example, you can estimate even though you have peaks and lows that you're making around about $1,140 per hour. And if you're running at a 99.9% availability or SLA, that's around about eight hours, 41 minutes as downtime, as we've seen before that you could have as a potential loss, which translates to nearly $10,000 a year, no small amount again. Not only does being able to switch to different gateways give you that advantage of being able to reroute during downtime, but you also get an uplift from the payment methods. So using, for example, PICS payments in Brazil versus credit card can increase conversion by five to 15%. But not only that, credit cards have fees. And so you can actually reduce the amount that you have to pay in terms of fees, because you're no longer using credit card using PICS payments instead, and you don't pay the two to 4% fees on top of that. So you're optimizing at multiple different levels. It's not just the availability. It's not just the payment method. It's the combination of these that actually have a significant effect on how you're able to monetize and optimize everything in your SaaS platform, especially when you get to a certain scale. And this all has benefits as you scale. This is going to apply as you go from a 10 million to a 20 million ARR business. Now, let's check out a demo of how this works with SmallPDF. So I've opened up the SmallPDF platform. And what we're going to do is we're going to open up our checkout.
Comments