Skip to Content
All Posts

What to check before you buy source code that uses Stripe

· Zero to Hundred

Before you buy source code that uses Stripe, check 6 things. You know which Stripe APIs and API version it's written for, the keys stay out of the code and its history, the webhook checks signatures and handles retries, the products and prices can be rebuilt in your own Stripe account, subscription changes reach the database, and the license covers the job. You pay the price on the listing and nothing more, and you get the source as soon as the payment goes through.

Every listing tagged Stripe is on the Stripe listings page, which updates as Builders add new software. That covers subscription billing, one-time checkout, and marketplaces that pay out other businesses. You can also browse the marketplace or read what you get when you buy.

The prices below were correct on 16 November 2026 and can change, so check the listing before you pay.

Which Stripe APIs does it use?

Stripe has several ways to take a payment, and each one leaves different work for you. Stripe's online payments overview lists them. Payment Links share a link to a Stripe payment page with no code, Checkout embeds or redirects to a prebuilt payment page, and Elements builds a custom payment page. Subscriptions run on Stripe Billing, and a marketplace that pays out other businesses uses Connect.

Search the code for Checkout Sessions, subscriptions, Payment Links, PaymentIntents, and transfers or connected accounts. The names differ a little by language, such as checkout.sessions.create in Node.js. A listing that says "Stripe" can mean one Payment Link on the pricing page or a full billing system with webhooks, so find out which before you compare prices.

Which Stripe API version is it written for?

Stripe's versioning reference says Stripe releases a new API version each month with no breaking changes. Twice a year it issues a major release that starts with breaking changes. On 16 November 2026, the current version was 2026-10-28.endive.

The version the code gets depends on how it calls Stripe. Stripe's SDK guide says calls through recent server-side SDKs use the API version that was current when that SDK was released. Direct calls use the account's default version unless the request sets a Stripe-Version header. Look at the Stripe package version in package.json, requirements.txt, or composer.json, and search the code for where it sets a version, such as apiVersion in Node.js or a Stripe-Version header.

Webhooks are where a mismatch shows up. Events use the account's default API version unless you set one when you create the endpoint. Ask the Builder which version their endpoint uses, and set yours to match. Otherwise events can arrive in a shape the code doesn't expect.

Where do the keys live?

Stripe's guide to API keys says secret keys must stay in your server environment, while publishable keys are safe to include in web pages and apps. It also says never to put secret keys in source code, because bad actors scan public repositories for them.

Every key should come from an environment variable, with a .env.example file that lists the names and holds no real values. Expect a secret key, a publishable key, and a webhook signing secret, plus price IDs if the code reads them from config. A publishable key in a variable the browser can read is fine. A secret key in one, such as a variable starting with NEXT_PUBLIC_ or VITE_, is a leak.

Search the files for sk_live_, rk_live_, sk_test_, and whsec_. If the download includes a .git folder, search the history too, because a key deleted in a later commit is still there. The guide to scanning source code you didn't write shows how to scan every commit with Gitleaks.

If you find a real key, tell the Builder. It belongs to their Stripe account, and Stripe says to rotate an exposed key immediately. You'll use your own keys anyway.

Does the webhook check signatures and handle retries?

Stripe tells the app what happened through webhook events: a payment succeeded, a renewal failed, a customer cancelled. Stripe's webhook guide sets out what the endpoint has to do. Find the webhook route and check 4 things.

First, it verifies the signature. The handler should pass the raw request body, the Stripe-Signature header, and the whsec_ signing secret to the Stripe library, through a call such as constructEvent or construct_event. Stripe says any change to the raw body makes verification fail, so a framework that parses the body as JSON first will break it. A handler that skips this check accepts events from anyone.

Second, it handles the same event twice without doing the work twice. Stripe says an endpoint might receive the same event more than once, and suggests logging the event IDs you've processed and skipping those. In live mode, Stripe retries a failed delivery for up to 3 days. Look for a table or a unique key on the event ID.

Third, it doesn't depend on order. Stripe doesn't guarantee that events arrive in the order they were created, so a payment event can land before the subscription event it belongs to.

Fourth, it returns a 2xx response quickly, before any slow work that could time out.

How do you move it into your own Stripe account?

Stripe keeps test data and live data apart. Stripe's testing guide says objects in one mode aren't accessible in the other, so a test product can't be part of a live payment. Every product, price, and customer ID in the Builder's setup also belongs to their account, so none of it exists in yours.

Search the code and config for IDs that start with price_ and prod_. Hard-coded IDs mean editing code before the first checkout works. IDs read from environment variables, or prices found by a lookup key, mean you only change config. Ask whether the repo has a script that creates the products and prices, or at least a list of them with amounts and billing intervals.

Build and test everything in a sandbox first. When it works, Stripe's guide to products and prices says you can copy a sandbox product to live mode with the Copy to live mode button on its page in the Dashboard. Check the live IDs afterward and update the config to match.

Account settings don't come with the code either. You set up your own webhook endpoint, customer portal, branding, and tax settings in your own Dashboard.

How does subscription state reach the database?

The app should keep its own copy of each subscription's status and update it from webhook events. Stripe's guide to subscription webhooks lists the events that matter. Find the handler for each one and read what it writes.

For a renewal, Stripe sends invoice.paid. The guide says to retrieve the subscription and confirm it's active before extending access. For a failed renewal, Stripe sends invoice.payment_failed and the subscription becomes past_due. What happens next depends on the retry and failed payment settings in your Dashboard: the subscription can move to canceled or unpaid, or stay past_due. The guide says to revoke access when it's canceled or unpaid. Ask the Builder which settings the demo uses, because you'll set your own.

Stripe sends customer.subscription.updated when a subscription changes and customer.subscription.deleted when it ends. Check whether the app keeps access until the end of the period the customer paid for, or cuts it off at once. Either can be right, but the listing should say which.

Refunds arrive as charge.refunded, which Stripe also sends for partial refunds. The guide says the way to find the subscription behind a refunded charge changed in API version 2025-03-31.basil. On older versions the charge carries an invoice field, and newer versions don't. Code written for one version can miss refunds on the other. Ask what the app does with access after a full refund and after a partial one.

Stripe subscriptions in Next.js walks through these cases from the building side.

If it pays out other businesses, how does Connect move the money?

A marketplace that pays vendors uses Stripe Connect. Your account is the platform, and each vendor gets a connected account. Stripe's guide to Connect charges describes 3 charge types, and the code's choice decides whose balance pays for refunds and disputes.

With direct charges, the payment lands in the connected account's balance, and refunds and chargebacks reduce that balance. With destination charges, and with separate charges and transfers, the payment lands in your platform's balance, and refunds and chargebacks come out of yours. You can try to recover the money by reversing the transfer to the vendor. To see which one it uses, search the code for transfer_data, which sets up destination charges, and for calls that create transfers. Direct charges pass the connected account's ID in a Stripe-Account header, which the libraries set through an option such as stripeAccount.

The connected accounts in the demo belong to the Builder's platform. Your vendors go through onboarding on yours, so check that the code includes the onboarding flow, and ask what the app does with a vendor who hasn't finished it.

Which tax and invoice settings do you set yourself?

The code can turn tax calculation on, but the settings behind it live in your Stripe account. Stripe's tax setup guide lists them: a head office address, a preset product tax code, and a registration for each place you collect tax. Without a registration in the customer's location, the calculation returns zero tax. Turning on Stripe Tax also doesn't update existing subscriptions or Payment Links, so each one needs it switched on. Check whether the code sets automatic_tax when it creates a Checkout Session or a subscription.

Invoices take their look and numbering from account settings. Stripe's invoice guide covers branding, the invoice number prefix, a default memo and footer, tax IDs, and the public business details shown on each invoice. It also says you're responsible for checking that your invoices meet local tax requirements, and suggests asking a professional about your case.

Do the tests run, and can you replay Stripe events locally?

The README should show how to run the app against a sandbox on your own machine. The Stripe CLI does most of this. Its stripe listen command forwards events to your local server without a Dashboard endpoint and prints a webhook signing secret for your config. Its stripe trigger command sends example events, so you can test the webhook handler without clicking through checkout.

Then read the tests. A test that sends a signed sample event to the webhook handler and checks the database tells you more than many tests of pricing math. For renewals and failed payments, Stripe's billing testing guide describes test clocks, which move simulated time forward in a sandbox. You can watch a renewal fail without waiting for the billing date.

What should you ask about the demo?

Every listing has a working demo or a walkthrough video. For software that takes payments, ask for the demo in test mode, so you can pay without real money. Stripe's test cards include 4242 4242 4242 4242, which succeeds with any future date and any CVC, and 4000 0000 0000 0002, which is declined. Stripe's terms prohibit testing in live mode with real card details, so if the demo only runs live, ask for a recording instead.

In a test mode demo, pay for a plan and check that the paid features open up. Pay with the declined card and check that they stay closed. Cancel and see what happens to access. Then ask the Builder to refund a test payment and show you what the app does. If the demo is a video, ask whether it runs the same code you'll get.

Here's the checklist in one place.

CheckWhere you lookWhat a gap costs
Stripe APIsCalls to Checkout, subscriptions, Payment Links, PaymentIntents, and ConnectPaying for billing you don't need, or missing billing you do
API versionThe Stripe package version, where the code sets a version, the webhook endpoint's versionWebhook events in a shape the code doesn't expect
Keys.env.example, the code, the git historyA leaked key, or a secret key sent to the browser
WebhookThe webhook route and its signature checkFake events accepted, or a retry that grants access twice
Your own accountprice_ and prod_ IDs in the code and configA checkout that fails until you edit code
Subscription syncHandlers for invoice.paid, invoice.payment_failed, customer.subscription.deleted, charge.refundedCustomers who keep access after they stop paying
Connecttransfer_data, transfer calls, or a stripeAccount optionRefunds and disputes paid from a balance you didn't expect
Tax and invoicesautomatic_tax in the code, then your Dashboard settingsTax you owe but never collected
Tests and local flowThe test command and the Stripe CLI steps in the READMENo safe way to try a change before customers see it
Docs and updatesDocs and maintenance labels on the listingA README you still have to write
LicenseThe listing and the license termsA use, such as reselling, the license doesn't allow

The listing shows a docs label and a maintenance label. For docs, None means no written docs, Basic means setup and run steps, and Full means setup, architecture, and how the pieces fit together. For maintenance, None means sold as-is with no further updates, Occasional means occasional fixes, and Active means ongoing updates. The labels are the Builder's description, so open the README anyway.

What do live Stripe listings look like?

These 4 listings were live on 16 November 2026 and show the range. They aren't a ranking or a review of the code.

Stripe Starter is a Next.js template with Supabase and Drizzle, listed at $25. It covers subscription checkout with optional free trials, one-time purchases, and the Stripe customer portal. The listing says real payments ran through the code in Stripe test mode and that 57 automated checks pass on a clean clone. It also says there's no tax handling, no metered billing, and no multi-seat billing. The docs label is Full and the maintenance label is None. Read the Stripe Starter listing for the full list of what's left out.

Be Social is a social platform built on Next.js and Supabase, listed at $399. Billing is optional: Stripe Checkout for subscription plans defined in one file, plus a webhook receiver that keeps a local subscriptions table in sync. Stripe stays switched off until you configure it. The listing says there's no test suite. The docs label is Full and the maintenance label is None. Use the Be Social listing to see which services are required.

Inovix Market is a multi-vendor marketplace in PHP and MySQL, listed at $1,200. It uses Stripe Checkout and Stripe Connect, and needs a server with PHP 8.1 or newer. The listing tells you to verify payment processing, webhooks, and transfers to vendors yourself before taking live payments. Check the Inovix Market listing before you plan a Connect setup.

White-Label Social Network Platform is a Next.js and Postgres social network, listed at $1,999, with Stripe for premium subscriptions. Its listing says you'll need a Neon Postgres database, a Stripe account, and hosting, and that you provide and pay for each one. The docs label is Full and the maintenance label is None. The White-Label Social Network listing shows the setup steps.

If the app runs on a JavaScript server, use the Node.js checklist too. If it runs on Supabase, read what to check in Next.js and Supabase source code. For a Python backend, read what to check in Python source code. For the frontend, read what to check in React and Tailwind source code.

What does the license let you do?

You're buying a non-exclusive license. You can use, modify, and deploy the software for your commercial or personal use, including inside a client's project, within the license. You can't resell it, re-list it, sub-license it, or redistribute it as a product. If your client contract says you must give them the right to resell the software, this license doesn't cover that, so settle it before you pay.

Other Buyers can license the same software, and the Builder can keep licensing it, here or somewhere else. Build your offer around what you add: your work, your service, and your client relationships.

You have 24 hours after delivery to report a factual problem: misrepresentation, a bug that stops it working, or another factual ground. Something the listing already disclosed doesn't count. The Builder's payout is held for 72 hours, so a report made in time is reviewed before they're paid. After those 24 hours the sale is final, whatever the price.

What do you pay?

You pay the price on the listing and nothing more. There's no Buyer fee, and you don't need a membership to read a listing.

Zero to Hundred's commission comes out of the Builder's payout, so it never adds to what you pay. It's 8% plus $0.50 when the Builder sent you through their share link, and 25% when you found the listing on the marketplace. Pricing lists both rates.

Before you pay, ask which API version the Builder's webhook endpoint uses, ask for a test mode demo, and read the license. If the Stripe setup, the services you'd need, or the missing pieces don't fit, pick a different listing.