Skip to content
All changes

Dispute fee consent and the scoped CLI name, in SDK 1.5.0

SDK 1.5.0 lets a seller accept the app owner's debit terms inside your app, closes an open redirect after sign-in, and names the CLI npx @buildbase/sdk.

Added
3
  • SDKWith @buildbase/sdk 1.5.0, a seller can accept your account debit terms inside your app. The new DebitTermsConsent component shows your terms as a link with their version and an Accept button, and SellerHome shows it to sellers. When you publish a new version of the terms, sellers are asked again.
  • SDKFor a screen of your own, useSelling() now returns acceptDebitTerms. Only an acceptance of the version in force counts.
  • SDKOn a lost marketplace dispute, the seller's sale page can now say what became of Stripe's dispute fee: taken from the seller, refused and owed, or kept by your app. It shows when the platform reports it; otherwise the page is unchanged.
Improved
1
  • SDKThe SDK's README, its AGENTS.md and the hints the CLI prints now say npx @buildbase/sdk for a command run before the SDK is installed. The unscoped buildbase package on npm is not ours. In a project that already has the SDK installed, npx buildbase still works.
Fixed
3
  • SecurityThe redirect after sign-in now refuses a target that contains a control character, such as a tab or a line break. One like that could send a person who had just signed in to another site.
  • SDKAbout 50 API methods, among them createWorkspace and addUser, now report errors the same way as the rest of the client. When one is refused for a plan limit, the app refreshes what the plan allows and stops offering the action.
  • SDKThe credit methods no longer report every refusal for payment as INSUFFICIENT_CREDITS. A refusal such as PLAN_REQUIRED now keeps its own code.

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