mirror of
https://github.com/LukeHagar/polar.git
synced 2025-12-10 12:47:47 +00:00
deprecate checkoutApi, avoid breaking
This commit is contained in:
@@ -64,7 +64,7 @@ export const {
|
|||||||
|
|
||||||
// Cancels the current subscription.
|
// Cancels the current subscription.
|
||||||
cancelCurrentSubscription,
|
cancelCurrentSubscription,
|
||||||
} = polar.api();
|
} = polar.checkoutApi();
|
||||||
|
|
||||||
// In a real app you'll set up authentication, we just use a
|
// In a real app you'll set up authentication, we just use a
|
||||||
// fake user for the example.
|
// fake user for the example.
|
||||||
|
|||||||
@@ -301,6 +301,10 @@ export class Polar<
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
// Deprecated: use api() instead
|
||||||
|
checkoutApi() {
|
||||||
|
return this.api();
|
||||||
|
}
|
||||||
registerRoutes(
|
registerRoutes(
|
||||||
http: HttpRouter,
|
http: HttpRouter,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user