@base44-preview/sdk 0.8.63-pr.393.4d87834 → 0.8.63-pr.394.7e3e1a1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export type { AppModule, AppPublicSettings, AppPublicSettingsResponse, } from ".
15
15
  export type { McpModule, McpConsentAction, McpConsentInfo, McpConsentResponse, McpConsentTool, } from "./modules/mcp.types.js";
16
16
  export type { ActorsModule, ActorClient, ActorRef, Connection, ActorSubscription, ActorConnectOptions, ActorNameRegistry, ActorRegistry, ActorConnectable, ActorMethods, ServiceRoleActorRef, ServiceRoleActorsModule, } from "./modules/actors.types.js";
17
17
  export type { SsoModule, SsoAccessTokenResponse } from "./modules/sso.types.js";
18
- export type { PaymentsModule, ServiceRolePaymentsModule, PaymentsErrorCode, PaymentsRecurringFrequency, CheckoutBuyer, CheckoutFreeTrial, CheckoutItem, CheckoutItemRecurring, CheckoutPresentation, CheckoutShipping, CheckoutElement, CheckoutMount, MountableCheckout, CreateCheckoutParams, CreateCheckoutResult, CompleteCheckoutResult, EmbeddedCheckout, PayPalCheckoutOnClick, PaddleCheckoutOnClick, CheckoutOnClick, PayPalEmbeddedCheckout, StripeEmbeddedCheckout, MountCheckoutOptions, ListPurchasesParams, ServiceRoleListPurchasesParams, ListPurchasesResult, Purchase, PurchaseItem, PurchaseStatus, RefundParams, ShippingAddress, RefundResult, CancelSubscriptionOptions, SubscriptionResult, } from "./modules/payments.types.js";
18
+ export type { PaymentsModule, ServiceRolePaymentsModule, PaymentsErrorCode, PaymentsRecurringFrequency, CheckoutBuyer, CheckoutFreeTrial, CheckoutItem, CheckoutItemRecurring, CheckoutPresentation, CheckoutShipping, CheckoutElement, CheckoutMount, MountableCheckout, CreateCheckoutParams, CreateCheckoutResult, CompleteCheckoutResult, EmbeddedCheckout, PayPalCheckoutOnClick, PayPalEmbeddedCheckout, StripeEmbeddedCheckout, MountCheckoutOptions, ListPurchasesParams, ServiceRoleListPurchasesParams, ListPurchasesResult, Purchase, PurchaseItem, PurchaseStatus, RefundParams, ShippingAddress, RefundResult, CancelSubscriptionOptions, SubscriptionResult, } from "./modules/payments.types.js";
19
19
  export type { BrowserModule, BrowserSession, BrowserSessionOptions, } from "./modules/browser.types.js";
20
20
  export type { VoiceModule, VoiceSession, VoiceSessionMessage, VoiceSessionOptions, } from "./modules/voice.types.js";
21
21
  export { Actor, type Conn, type ActorConnectionIdentity, ActorError, type ActorCallIdentity, type ActorCallContext, } from "./actor.js";
@@ -64,7 +64,7 @@ export interface AiGatewayModuleConfig {
64
64
  *
65
65
  * You can use any of the [models available through `InvokeLLM`](/developers/references/sdk/docs/type-aliases/integrations#invokellm).
66
66
  * Pass `'automatic'` to let Base44 choose one, or pin a specific model such
67
- * as `'claude_sonnet_4_6'`, `'gpt_5_5'`, or `'gemini_3_1_pro'`.
67
+ * as `'claude_fable_5_2'`, `'gpt_6_2_sol'`, or `'gemini_3_8_flash'`.
68
68
  *
69
69
  * ## Images
70
70
  *
@@ -43,9 +43,9 @@ export interface InvokeLLMParams {
43
43
  prompt: string;
44
44
  /** Optionally specify a model to override the app-level model setting for this specific call.
45
45
  *
46
- * Options: `"gemini_3_8_flash"`, `"gpt_6_luna"`, `"claude-sonnet-5"`, `"claude_opus_5_5"`, `"gpt_6_sol"`, `"gpt_6_astra"`, `"claude_fable_5_1"`, `"glm_5_2"`, `"gemini_3_1_pro"`, `"gpt_5_4"`, `"claude_sonnet_4_6"`, `"claude_opus_4_6"`, `"claude_opus_4_7"`, `"claude_opus_4_8"`, `"claude_opus_5"`, `"gpt_5_6_terra"`, `"gpt_5_6_sol"`, `"gpt_5_6_luna"`
46
+ * Options: `"gemini_3_8_flash"`, `"gpt_6_luna"`, `"claude-sonnet-5"`, `"claude_opus_5_5"`, `"gpt_6_sol"`, `"gpt_6_astra"`, `"claude_fable_5_1"`, `"glm_5_2"`, `"claude_fable_5_2"`, `"gpt_6_2_sol"`, `"gpt_6_2_astra"`, `"gemini_3_1_pro"`, `"gpt_5_4"`, `"claude_sonnet_4_6"`, `"claude_opus_4_6"`, `"claude_opus_4_7"`, `"claude_opus_4_8"`, `"claude_opus_5"`, `"gpt_5_6_terra"`, `"gpt_5_6_sol"`, `"gpt_5_6_luna"`
47
47
  */
48
- model?: 'gemini_3_8_flash' | 'gpt_6_luna' | 'claude-sonnet-5' | 'claude_opus_5_5' | 'gpt_6_sol' | 'gpt_6_astra' | 'claude_fable_5_1' | 'glm_5_2' | 'gemini_3_1_pro' | 'gpt_5_4' | 'claude_sonnet_4_6' | 'claude_opus_4_6' | 'claude_opus_4_7' | 'claude_opus_4_8' | 'claude_opus_5' | 'gpt_5_6_terra' | 'gpt_5_6_sol' | 'gpt_5_6_luna';
48
+ model?: 'gemini_3_8_flash' | 'gpt_6_luna' | 'claude-sonnet-5' | 'claude_opus_5_5' | 'gpt_6_sol' | 'gpt_6_astra' | 'claude_fable_5_1' | 'glm_5_2' | 'claude_fable_5_2' | 'gpt_6_2_sol' | 'gpt_6_2_astra' | 'gemini_3_1_pro' | 'gpt_5_4' | 'claude_sonnet_4_6' | 'claude_opus_4_6' | 'claude_opus_4_7' | 'claude_opus_4_8' | 'claude_opus_5' | 'gpt_5_6_terra' | 'gpt_5_6_sol' | 'gpt_5_6_luna';
49
49
  /** If set to `true`, the LLM will use Google Search, Maps, and News to gather real-time context before answering.
50
50
  * @default false
51
51
  */
@@ -1,5 +1,4 @@
1
- import type { CheckoutElement, CheckoutMount, CompleteCheckoutResult, MountableCheckout, MountCheckoutOptions, CheckoutOnClick, PayPalEmbeddedCheckout } from "./payments.types.js";
2
- type ScriptProvider = "paypal" | "stripe" | "paddle";
1
+ import type { CheckoutElement, CheckoutMount, CompleteCheckoutResult, MountableCheckout, MountCheckoutOptions, PayPalCheckoutOnClick, PayPalEmbeddedCheckout } from "./payments.types.js";
3
2
  /** @internal */
4
3
  export type LoadScript = (src: string) => Promise<void>;
5
4
  /**
@@ -14,9 +13,6 @@ export interface PaymentsCheckoutConfig {
14
13
  stripe?: {
15
14
  script_url?: string;
16
15
  };
17
- paddle?: {
18
- script_url?: string;
19
- };
20
16
  }
21
17
  type PayPalButtonConfig = Pick<PayPalEmbeddedCheckout, "client_id" | "merchant_id" | "partner_attribution_id">;
22
18
  /** @internal */
@@ -34,10 +30,10 @@ export declare const loadScript: LoadScript;
34
30
  * Fetches the payments config and loads the provider's script ahead of mountCheckout().
35
31
  * @internal
36
32
  */
37
- export declare function preloadCheckout(provider: ScriptProvider, deps: Pick<MountCheckoutDeps, "getConfig" | "loadScript">): Promise<void>;
33
+ export declare function preloadCheckout(provider: "paypal" | "stripe", deps: Pick<MountCheckoutDeps, "getConfig" | "loadScript">): Promise<void>;
38
34
  /**
39
35
  * Mounts the embedded checkout that createCheckout() returned.
40
36
  * @internal
41
37
  */
42
- export declare function mountCheckout(element: CheckoutElement, checkout: MountableCheckout | CheckoutOnClick, options: MountCheckoutOptions, deps: MountCheckoutDeps): Promise<CheckoutMount>;
38
+ export declare function mountCheckout(element: CheckoutElement, checkout: MountableCheckout | PayPalCheckoutOnClick, options: MountCheckoutOptions, deps: MountCheckoutDeps): Promise<CheckoutMount>;
43
39
  export {};
@@ -2,9 +2,7 @@
2
2
  const ALLOWED_SCRIPT_HOSTS = {
3
3
  paypal: ["www.paypal.com", "www.sandbox.paypal.com"],
4
4
  stripe: ["js.stripe.com"],
5
- paddle: ["cdn.paddle.com"],
6
5
  };
7
- const PROVIDER_NAMES = { paypal: "PayPal", stripe: "Stripe", paddle: "Paddle" };
8
6
  async function scriptUrlFor(provider, deps) {
9
7
  var _a, _b;
10
8
  const value = (_b = (_a = (await deps.getConfig())) === null || _a === void 0 ? void 0 : _a[provider]) === null || _b === void 0 ? void 0 : _b.script_url;
@@ -21,7 +19,8 @@ async function scriptUrlFor(provider, deps) {
21
19
  url.username !== "" ||
22
20
  url.password !== "" ||
23
21
  !ALLOWED_SCRIPT_HOSTS[provider].includes(url.hostname)) {
24
- throw new Error(`The payments config has no valid ${PROVIDER_NAMES[provider]} script URL`);
22
+ const name = provider === "paypal" ? "PayPal" : "Stripe";
23
+ throw new Error(`The payments config has no valid ${name} script URL`);
25
24
  }
26
25
  return url.href;
27
26
  }
@@ -237,130 +236,6 @@ checkout, options, deps) {
237
236
  },
238
237
  };
239
238
  }
240
- // Paddle.js takes one token per page and reports every checkout's events to the callback set then.
241
- let paddleToken = null;
242
- let onPaddleEvent = null;
243
- /** Sets Paddle.js up for this seller on first use; a page serves one seller's token. */
244
- function initializePaddle(Paddle, embedded) {
245
- if (paddleToken === null) {
246
- if (embedded.environment === "sandbox")
247
- Paddle.Environment.set("sandbox");
248
- Paddle.Initialize({ token: embedded.client_token, eventCallback: (event) => onPaddleEvent === null || onPaddleEvent === void 0 ? void 0 : onPaddleEvent(event) });
249
- paddleToken = embedded.client_token;
250
- }
251
- else if (paddleToken !== embedded.client_token) {
252
- throw new Error("Paddle is already set up on this page for another seller. Reload the page to check out.");
253
- }
254
- }
255
- /**
256
- * Draws a pay button that opens Paddle's checkout. `resolve` is the checkout itself, or what an
257
- * on-click checkout calls inside the click to create it: Paddle's checkout opens in the page, not a
258
- * popup, so it can open after the checkout is created and the buyer still clicks once.
259
- */
260
- async function mountPaddle(element, scriptUrl, resolve, options, deps) {
261
- const Paddle = await loadGlobal(scriptUrl, () => browserGlobals().Paddle, deps.loadScript);
262
- let destroyed = false;
263
- let open = false;
264
- let starting = false;
265
- let completing = false;
266
- // Set once the payment goes through: the transaction is paid, so the button stays off.
267
- let paid = false;
268
- let checkoutId;
269
- const notify = (callback) => {
270
- if (destroyed)
271
- return;
272
- try {
273
- callback();
274
- }
275
- catch (error) {
276
- console.error("[Base44 SDK] A mountCheckout() callback threw", error);
277
- }
278
- };
279
- const handle = async (event) => {
280
- if (event.name === "checkout.completed") {
281
- completing = true;
282
- button.disabled = true;
283
- let result;
284
- try {
285
- if (!checkoutId)
286
- throw new Error("Paddle completed a checkout that wasn't created");
287
- // Paddle charged inside its own window; this asks the backend, which reads Paddle, whether it did.
288
- result = await deps.completeCheckout(checkoutId);
289
- }
290
- catch (error) {
291
- completing = false;
292
- button.disabled = false;
293
- notify(() => { var _a; return (_a = options.onError) === null || _a === void 0 ? void 0 : _a.call(options, error); });
294
- return;
295
- }
296
- completing = false;
297
- paid = true;
298
- notify(() => { var _a; return (_a = options.onComplete) === null || _a === void 0 ? void 0 : _a.call(options, result); });
299
- }
300
- else if (event.name === "checkout.closed") {
301
- open = false;
302
- if (!paid && !completing)
303
- notify(() => { var _a; return (_a = options.onCancel) === null || _a === void 0 ? void 0 : _a.call(options); });
304
- }
305
- else if (event.name === "checkout.error") {
306
- notify(() => { var _a, _b; return (_a = options.onError) === null || _a === void 0 ? void 0 : _a.call(options, (_b = event.error) !== null && _b !== void 0 ? _b : event); });
307
- }
308
- };
309
- const button = document.createElement("button");
310
- button.type = "button";
311
- button.textContent = "Pay";
312
- button.setAttribute("data-base44-checkout", "paddle");
313
- const onClick = async () => {
314
- if (paid || completing || open || starting || button.disabled)
315
- return;
316
- starting = true;
317
- try {
318
- const target = await resolve();
319
- initializePaddle(Paddle, target.embedded);
320
- checkoutId = target.checkoutId;
321
- onPaddleEvent = (event) => void handle(event);
322
- open = true;
323
- Paddle.Checkout.open({
324
- transactionId: target.embedded.transaction_id,
325
- // The app prices discounts itself through createCheckout, so Paddle's own coupon field would be a second one.
326
- settings: { showAddDiscounts: false },
327
- ...(target.embedded.customer_email ? { customer: { email: target.embedded.customer_email } } : {}),
328
- });
329
- }
330
- catch (error) {
331
- open = false;
332
- notify(() => { var _a; return (_a = options.onError) === null || _a === void 0 ? void 0 : _a.call(options, error); });
333
- }
334
- finally {
335
- starting = false;
336
- }
337
- };
338
- const listener = () => void onClick();
339
- button.addEventListener("click", listener);
340
- element.appendChild(button);
341
- return {
342
- destroy() {
343
- if (destroyed)
344
- return;
345
- destroyed = true;
346
- button.removeEventListener("click", listener);
347
- button.remove();
348
- if (open)
349
- Paddle.Checkout.close();
350
- },
351
- setDisabled(disabled) {
352
- if (!completing && !paid)
353
- button.disabled = disabled;
354
- },
355
- };
356
- }
357
- function paddleTarget(checkout) {
358
- const embedded = checkout === null || checkout === void 0 ? void 0 : checkout.embedded;
359
- if (!checkout || (embedded === null || embedded === void 0 ? void 0 : embedded.provider) !== "paddle") {
360
- throw new Error("createCheckout() returned a checkout that isn't an embedded Paddle checkout.");
361
- }
362
- return { checkoutId: checkout.checkout_id, embedded };
363
- }
364
239
  /** The new checkout's id, refused unless it is the checkout the button was drawn for. */
365
240
  function onClickCheckoutId(spec, button) {
366
241
  return async () => {
@@ -383,7 +258,7 @@ function onClickCheckoutId(spec, button) {
383
258
  export async function preloadCheckout(provider, deps) {
384
259
  if (typeof window === "undefined" || typeof document === "undefined")
385
260
  return;
386
- const read = () => provider === "paypal" ? browserGlobals().paypal : provider === "paddle" ? browserGlobals().Paddle : browserGlobals().Stripe;
261
+ const read = () => (provider === "paypal" ? browserGlobals().paypal : browserGlobals().Stripe);
387
262
  try {
388
263
  if (!read()) {
389
264
  await deps.loadScript(await scriptUrlFor(provider, deps));
@@ -405,12 +280,6 @@ export async function mountCheckout(element, checkout, options, deps) {
405
280
  throw new Error("mountCheckout() requires an element to render in");
406
281
  }
407
282
  if ("createCheckout" in checkout) {
408
- if (checkout.provider === "paddle") {
409
- if (typeof checkout.createCheckout !== "function")
410
- throw new Error("A Paddle checkout on click needs createCheckout()");
411
- const create = checkout.createCheckout;
412
- return mountPaddle(element, await scriptUrlFor("paddle", deps), async () => paddleTarget(await create()), options, deps);
413
- }
414
283
  return mountPayPalOnClick(element, checkout, options, deps);
415
284
  }
416
285
  const embedded = checkout === null || checkout === void 0 ? void 0 : checkout.embedded;
@@ -422,10 +291,6 @@ export async function mountCheckout(element, checkout, options, deps) {
422
291
  return mountStripe(element, await scriptUrlFor("stripe", deps), embedded, deps);
423
292
  case "paypal":
424
293
  return mountPayPal(element, await scriptUrlFor("paypal", deps), checkout.currency, embedded, checkout.checkout_id, options, deps);
425
- case "paddle": {
426
- const target = paddleTarget(checkout);
427
- return mountPaddle(element, await scriptUrlFor("paddle", deps), () => Promise.resolve(target), options, deps);
428
- }
429
294
  default:
430
295
  throw new Error(`Embedded checkout isn't supported for provider ${embedded.provider}`);
431
296
  }
@@ -146,25 +146,10 @@ export interface PayPalEmbeddedCheckout {
146
146
  /** Whether the checkout is a one-time payment or a subscription. */
147
147
  intent: "capture" | "subscription";
148
148
  }
149
- /**
150
- * Data that Paddle's checkout needs to open.
151
- */
152
- export interface PaddleEmbeddedCheckout {
153
- /** Payment provider. */
154
- provider: "paddle";
155
- /** Paddle client-side token of the app's seller account. Public by design. */
156
- client_token: string;
157
- /** ID of the Paddle transaction the buyer pays. */
158
- transaction_id: string;
159
- /** Paddle environment the transaction lives in. */
160
- environment: "sandbox" | "production";
161
- /** Buyer email to prefill, when the checkout named one. */
162
- customer_email?: string | null;
163
- }
164
149
  /**
165
150
  * Data that an embedded checkout needs to render, by provider.
166
151
  */
167
- export type EmbeddedCheckout = StripeEmbeddedCheckout | PayPalEmbeddedCheckout | PaddleEmbeddedCheckout;
152
+ export type EmbeddedCheckout = StripeEmbeddedCheckout | PayPalEmbeddedCheckout;
168
153
  /**
169
154
  * Result of [`createCheckout()`](#createcheckout).
170
155
  *
@@ -335,12 +320,12 @@ export type PaymentsErrorCode = "forbidden" | "unauthenticated" | "not_found" |
335
320
  */
336
321
  export interface MountCheckoutOptions {
337
322
  /**
338
- * Called after the buyer approves a PayPal payment, or pays in Paddle's checkout, and the SDK completes the checkout. Use it to update the page, not to grant access.
323
+ * Called after the buyer approves a PayPal payment and the SDK completes the checkout. Use it to update the page, not to grant access.
339
324
  *
340
325
  * Stripe doesn't call this. After a Stripe payment, the buyer returns to the checkout's `success_path` with a `session_id` query parameter. That parameter is the `checkout_id`. Show the result there with [`listPurchases()`](#listpurchases).
341
326
  */
342
327
  onComplete?: (result: CompleteCheckoutResult) => void;
343
- /** Called when the buyer closes the PayPal or Paddle window without paying. The button stays mounted so the buyer can try again. */
328
+ /** Called when the buyer closes the PayPal window without paying. The button stays mounted so the buyer can try again. */
344
329
  onCancel?: () => void;
345
330
  /**
346
331
  * Called when a PayPal checkout fails after it's mounted, including a declined payment with the [`payment_declined`](#paymentserrorcode) code. The button stays mounted so the buyer can try again. If it keeps failing with `payment_declined`, create a new checkout and mount it. Stripe shows its own errors inside the checkout.
@@ -384,28 +369,13 @@ export interface PayPalCheckoutOnClick {
384
369
  */
385
370
  createCheckout: () => Promise<MountableCheckout>;
386
371
  }
387
- /**
388
- * A Paddle checkout that [`mountCheckout()`](#mountcheckout) creates when the buyer clicks Paddle's button, so the buyer clicks once and no checkout is created for visitors who don't buy.
389
- */
390
- export interface PaddleCheckoutOnClick {
391
- /** Payment provider. */
392
- provider: "paddle";
393
- /**
394
- * Creates the checkout when the buyer clicks, usually by calling the backend function that calls [`createCheckout()`](#createcheckout). Resolve with its result, an embedded Paddle checkout. Reject to stop; `onError` receives the error.
395
- */
396
- createCheckout: () => Promise<MountableCheckout>;
397
- }
398
- /**
399
- * A checkout that [`mountCheckout()`](#mountcheckout) creates when the buyer clicks: PayPal or Paddle.
400
- */
401
- export type CheckoutOnClick = PayPalCheckoutOnClick | PaddleCheckoutOnClick;
402
372
  /**
403
373
  * A mounted embedded checkout.
404
374
  */
405
375
  export interface CheckoutMount {
406
376
  /** Removes the checkout from the page. Call it when the component that holds it unmounts. For Stripe, mounting another checkout destroys this one for you. */
407
377
  destroy: () => void;
408
- /** Grays out PayPal's or Paddle's button and ignores clicks, for example until a required form is filled in. After a payment completes the button stays off, so `setDisabled(false)` can't start a second payment. Stripe ignores it. */
378
+ /** Grays out PayPal's button and ignores clicks, for example until a required form is filled in. After a payment completes the button stays off, so `setDisabled(false)` can't start a second payment. Stripe ignores it. */
409
379
  setDisabled: (disabled: boolean) => void;
410
380
  }
411
381
  /**
@@ -457,11 +427,11 @@ export interface PaymentsModule {
457
427
  * base44.payments.preloadCheckout('paypal');
458
428
  * ```
459
429
  */
460
- preloadCheckout(provider: "paypal" | "stripe" | "paddle"): Promise<void>;
430
+ preloadCheckout(provider: "paypal" | "stripe"): Promise<void>;
461
431
  /**
462
432
  * Renders an embedded checkout inside an element on the page.
463
433
  *
464
- * Pass the result of a {@linkcode ServiceRolePaymentsModule.createCheckout | createCheckout()} call made with `presentation: 'embedded'`. Because only the service role can create checkouts, create it in a backend function and return the result to the page. For PayPal or Paddle, you can instead pass a {@linkcode PayPalCheckoutOnClick} or {@linkcode PaddleCheckoutOnClick} to show the button before any checkout exists. The SDK creates the checkout only when the buyer clicks the button, so visitors who don't buy don't leave unused checkouts behind.
434
+ * Pass the result of a {@linkcode ServiceRolePaymentsModule.createCheckout | createCheckout()} call made with `presentation: 'embedded'`. Because only the service role can create checkouts, create it in a backend function and return the result to the page. For PayPal, you can instead pass a {@linkcode PayPalCheckoutOnClick} to show the button before any checkout exists. The SDK creates the checkout only when the buyer clicks the button, so visitors who don't buy don't leave unused checkouts behind.
465
435
  *
466
436
  * The SDK loads the provider's library and renders the checkout for you:
467
437
  * - PayPal: Renders a PayPal button. When the buyer approves the payment, the SDK calls {@linkcode completeCheckout | completeCheckout()} and then `onComplete`.
@@ -474,7 +444,7 @@ export interface PaymentsModule {
474
444
  * The checkout's callbacks run in the buyer's browser, where they can be faked. Grant access to what the buyer paid for only after your backend confirms the purchase, for example with [`listPurchases()`](#service-role-methods) in a backend function.
475
445
  *
476
446
  * @param element - Element to render the checkout in. It should be empty.
477
- * @param checkout - The result of {@linkcode ServiceRolePaymentsModule.createCheckout | createCheckout()}, or for PayPal or Paddle a {@linkcode CheckoutOnClick} that creates it when the buyer clicks.
447
+ * @param checkout - The result of {@linkcode ServiceRolePaymentsModule.createCheckout | createCheckout()}, or for PayPal a {@linkcode PayPalCheckoutOnClick} that creates it when the buyer clicks.
478
448
  * @param options - Callbacks for the checkout's outcome.
479
449
  * @returns Promise resolving to the mounted checkout once it renders.
480
450
  *
@@ -539,7 +509,7 @@ export interface PaymentsModule {
539
509
  * }
540
510
  * ```
541
511
  */
542
- mountCheckout(element: CheckoutElement, checkout: MountableCheckout | CheckoutOnClick, options?: MountCheckoutOptions): Promise<CheckoutMount>;
512
+ mountCheckout(element: CheckoutElement, checkout: MountableCheckout | PayPalCheckoutOnClick, options?: MountCheckoutOptions): Promise<CheckoutMount>;
543
513
  /**
544
514
  * Completes a PayPal checkout after the buyer approves it.
545
515
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.63-pr.393.4d87834",
3
+ "version": "0.8.63-pr.394.7e3e1a1",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",