Skip to content
All changes

Purchases confirmed inside your app, with SDK 1.2.0

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
4
  • SDKWith @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.
  • SDKOnce 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.
  • SDKSet 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.
  • AgentsYour 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
3
  • BillingPlan & 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.
  • TrackingBehaviour 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.
  • SDKBehaviour change: SDK components no longer set margin: 0 on their root. They take the spacing your layout gives them.
Fixed
4
  • BillingCredits 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.
  • SDKAn 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.
  • SDKFor 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.
  • SDKScreen 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.

Use what shipped this week

Everything in this release is already in the console and the SDK.

Free plan7-day free trial on paid plansNo credit card required