We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab6837 commit a3b6cbbCopy full SHA for a3b6cbb
example/convex/example.ts
@@ -64,7 +64,7 @@ export const {
64
65
// Cancels the current subscription.
66
cancelCurrentSubscription,
67
-} = polar.api();
+} = polar.checkoutApi();
68
69
// In a real app you'll set up authentication, we just use a
70
// fake user for the example.
src/client/index.ts
@@ -301,6 +301,10 @@ export class Polar<
301
}),
302
};
303
}
304
+ // Deprecated: use api() instead
305
+ checkoutApi() {
306
+ return this.api();
307
+ }
308
registerRoutes(
309
http: HttpRouter,
310
{
0 commit comments