# Purchases confirmed inside your app, with SDK 1.2.0

5 November 2026. With SDK 1.2.0, a buyer back from Stripe sees if their purchase is ready. Buy buttons wait while it is confirmed, and a new app builds before its keys are set.

## Added

- **SDK:** With @buildbase/sdk 1.2.0, a buyer back from Stripe's checkout page sees a dialog that checks the purchase with BuildBase. It says whether the plan, add-on, credit pack or saved card is ready. Or it says the purchase is still processing, or waiting on a bank payment.
- **SDK:** Once the purchase is done, the dialog opens the settings screen for it, or calls your own ui.behavior.onCheckoutComplete. When confirming takes long, it says so, and Check again asks once more.
- **SDK:** Set ui.behavior.checkoutReturn to 'screen' to keep the billing screens with no dialog. Set it to 'off' to show the result yourself, with <CheckoutStatus> or useCheckoutStatus.
- **Agents:** Your server can ask the same question with bb.checkout.status(sessionId). Your app's MCP server has a read-only get_checkout_status tool, so an agent can ask too.

## Improved

- **Billing:** Plan & Billing, personal Billing, Add-ons, Credits and the auto top-up card show that same answer instead of guessing. While a purchase is being confirmed, their buy buttons give way to a notice, so nobody starts a second purchase by mistake.
- **Tracking:** Behaviour change: the purchase and addon_purchased events fire once the purchase is complete, not when the buyer is back. A bank payment still clearing reports nothing from the browser. Set checkoutReturn to 'off' for the old timing.
- **SDK:** Behaviour change: SDK components no longer set margin: 0 on their root. They take the spacing your layout gives them.

## Fixed

- **Billing:** Credits no longer says the credits were bought before they are added. The top-up card no longer says the card is saved before it is.
- **SDK:** An app set up with npx @buildbase/sdk init now builds before its keys are filled in. A missing org ID or API token is reported at the first call to BuildBase, naming the variable to set.
- **SDK:** For Vite, npx @buildbase/sdk init now sends the sign-in code to /api/auth/token, the route the Next.js setup and the docs use. Apps set up before keep their own route.
- **SDK:** Screen readers now hear the names of the invite form's fields on the Members screen. The passkey name box and its buttons on the Security screen are named too.

Source: https://www.buildbase.app/changelog/purchases-confirmed-in-your-app-sdk-1-2-0
