Third-party services
After today, you can explain how a product plugs in a service like Stripe Checkout and list the work that stays with your team afterward.
Dip your toes 1 min
A third-party service is a product another company runs that your product plugs into, like payments, email, or maps. Teams rent these so they can spend their own time on what makes their product different. Stripe Checkout is a common example: a payment page Stripe builds and hosts, so card numbers never touch your company’s computers. Your product proves who it is to Stripe with an API key, a secret code that works like a password for software. Renting still leaves work on your side. The hosted page sets most of its own layout, so a checkout mock can promise things Stripe won’t draw. And a customer paying by bank debit can see “Thanks for your order” days before the money is confirmed.
The full lesson 10 min
Why this exists
Taking a card payment looks like one form with four fields. Behind it sit card networks like Visa and Mastercard, banks in every country you sell to, fraud checks, refunds, disputes, and tax rules. Handling card numbers also brings strict security rules, set by an industry standard called PCI DSS (Payment Card Industry Data Security Standard). A company that built all of that itself would be building a bank before it built its product.
So most teams rent it. A third-party service is a product another company runs that you plug into your own, usually by calling its API over the internet. Payments are the classic case, but the pattern is everywhere. Email delivery, text messages, maps, search, analytics, error tracking, and sign-in all come as services you can rent. A team buys the parts that aren’t its product, so it can spend its own time on the parts that are.
The trade is real, though, and it runs both ways. You get years of someone else’s engineering on day one. You also get a dependency that lives on another company’s servers, changes on another company’s schedule, and fails during another company’s bad hour. Knowing what that trade includes is most of what a designer needs to know about third parties.
Teams usually decide by asking whether the thing is part of what makes their product different. Spotify’s recommendations are its product, so it builds them. Sending a password reset email isn’t, so most companies rent that from a provider. The harder cases sit in between, like search or sign-in, where a rented service is fast to start but hard to shape. Those are the debates worth listening to.
What it is
Stripe Checkout is a good one to take apart. It’s a payment page that Stripe builds and hosts. Your product sends the customer there to pay, and Stripe sends them back when they’re done. The card number never touches your servers, which shrinks the security work your company has to do. A simplified version of a Checkout purchase looks like this:
- The customer clicks Pay, and the browser asks your server to start a checkout.
- Your server calls Stripe’s API to create a Checkout Session, a record of what’s being bought and for how much. Stripe answers with the address of a payment page.
- The browser goes to that Stripe-hosted page, and the customer enters their card.
- Stripe sends the browser back to a success page on your site.
- Separately, Stripe calls your server with a webhook saying the payment is complete. Your server then fulfills the order: it marks it paid, sends the receipt, and starts shipping.
Step 5 is the one that matters. Day 18 introduced webhooks as a way for another system to call you back later. Stripe’s fulfillment guide says you can’t rely on the success page alone, because a customer can pay and then lose their connection before it loads. The webhook reaches your server whether the browser comes back or not. The success page is for the customer, and the webhook is for your records.
Your server proves who it is to Stripe with an API key, a long secret string that identifies your account on every call. Stripe issues a few kinds. A publishable key can sit in frontend code, because it can’t move money or read account data. A secret key can do nearly anything on the account, so it stays on the server and never ships to the browser.
Keys also come in two sets. Sandbox keys work in Stripe’s test environment, where test cards make pretend payments. Live keys work in live mode, where real money moves.
The webhook needs protecting in the other direction. Anyone on the internet can send a request to your webhook address and claim a payment succeeded. So Stripe signs each webhook with a secret that only Stripe and your server know, and your server checks the signature before believing it. Stripe also retries a webhook for up to three days if your server doesn’t confirm it. That means your server can see the same event twice, and it has to fulfill each order only once.
Most of that code doesn’t get written from scratch. Teams install an SDK (software development kit), a package the provider publishes so your code can call its API in a few lines. Stripe publishes official SDKs for Node.js, Python, Ruby, and other languages, plus Stripe.js for the browser. The SDK handles details like formatting requests, checking webhook signatures, and retrying some failed calls. It’s a dependency like any other, with versions and upgrades.
Every provider also puts a ceiling on how fast you can call it. That ceiling is a rate limit, the most requests a service accepts from one customer in a set period, often per second. Go over it and Stripe answers with status code 429, “Too Many Requests,” until you slow down. Rate limits protect the provider from any one customer’s traffic. They rarely matter for a single checkout, and they matter a lot for a bulk job, like refunding ten thousand orders at once.
On the stack map, all of this hangs off the backend through the third-party column. That placement is deliberate. The frontend can show a provider’s page or load its browser script, but the calls that need a secret key go through your backend. That keeps the key off users’ devices, and it gives your team one place to log, retry, and swap providers later.
How it shows up in your work
Design reviews of anything that touches a provider’s screen run into its limits. A hosted page like Checkout is Stripe’s layout, not yours. You can set a logo, colors, fonts, and a few other options, but you can’t rearrange the form. Stripe also offers an embedded version and smaller building blocks, which give you more control in exchange for more engineering work. When a checkout mock goes past what the hosted page allows, the real question is which integration the team chose, and why.
Next is Day 18’s in-between state, with money attached. Some payment methods, like bank debits, take days to confirm, and Stripe sends a separate event when they finally succeed or fail. Until then, the customer can be looking at your success page while your records say the order isn’t paid.
So a success page isn’t proof of payment, and “Your order is confirmed” is sometimes a promise your backend can’t keep yet. Design a “payment processing” state, and ask what the order page shows while the webhook is late.
Then there’s the outage you didn’t cause. When a provider has a bad hour, your product has a bad hour too, and your users blame you, not the provider. Most large providers run a public status page, and engineers check it early in any incident.
Ask what each screen does when a provider is slow or down. A map that fails can fall back to a plain address. A hosted search service that fails might fall back to a simpler search. A payment provider that fails usually means a clear message and a way to try again later.
The one thing people get wrong
“Install the SDK, paste a key, and payments work by Friday.” That pitch is persuasive, and it makes a third-party service sound like zero work. The first test payment probably does work by Friday. Everything around it takes longer and never fully ends, because your team owns every connection between your product and the provider.
Here’s the list for a single payment provider. Keys must be stored as secrets and rotated when someone with access leaves. The webhook endpoint must check signatures and ignore duplicates. Calls must retry politely and stay under the rate limit.
The last two are easy to forget. Someone must decide what users see when the provider is down. Your own order records must also stay in sync with the provider’s, or a support team ends up matching the two by hand.
Providers change too. Stripe ties each account to a dated API version, and moving to a newer version is a planned piece of work, not a setting. SDKs get major versions that break old code, the same way any dependency does. None of this is a reason to build payments yourself, which would be far more work. It’s a reason to put the integration on the roadmap as an ongoing cost, not a one-time task.
Then there’s vendor lock-in, the cost of leaving a provider once your product and data depend on it. Saved cards, subscriptions, and years of payment history live in the provider’s systems, not yours. Moving them to another provider is possible, but it takes planning, cooperation from both companies, and careful testing. Lock-in isn’t a reason to avoid third parties. It’s a reason to choose them deliberately, and to keep your own copy of the records you’d need if you ever left.
Ask an engineer this
“If this provider were down for an hour, which of our screens would break, and what would users see?”
Ask this when a feature first depends on a new provider, or in the review before launch. Expect the engineer to walk through the screens one at a time, not answer for the product as a whole. A confident reply separates screens that stop working from ones that fall back, like a map that shows a plain address instead. If nobody knows, ask how the team would find out, and whether anything alerts them before users do. You’ll come away with the outage states your screens need, and a sense of which provider the product leans on hardest.
Terms from today
- Third-party service
- A product another company runs, like payments or email delivery, that your product plugs into, usually through that company’s API.
- SDK
- A software development kit, a package a provider publishes so your code can call its service in a few lines instead of building every request by hand.
- API key
- A long secret string that identifies your account to a provider’s API on every request, which is why most keys must stay on the server.
- Rate limit
- The maximum number of requests a service accepts from one customer in a set period, after which it refuses requests until the traffic slows down.
- Vendor lock-in
- The cost of leaving a provider once your product, your data, and your team’s habits depend on it.