32 Commits

Author SHA1 Message Date
Shawn Erquhart
17f1c49caa chore: add error logging for failed createCheckout 2025-08-07 17:16:18 -04:00
Shawn Erquhart
edeedbfac9 use standalone functions to reduce bundle size 2025-07-25 09:42:55 -04:00
Shawn Erquhart
8a40db92d2 add syncProducts function 2025-06-16 22:32:23 -04:00
Shawn Erquhart
446d9e3973 fix events endpoint path in docs 2025-06-02 12:45:19 -04:00
Shawn Erquhart
c4a3cb18ae update example deps 2025-05-24 11:00:18 -04:00
Shawn Erquhart
27c9f6dd71 fix example 2025-04-22 17:28:33 -04:00
Shawn Erquhart
100f7d2aa7 add react 19 to peer deps 2025-04-09 09:21:32 -04:00
Shawn Erquhart
6b72a37e4e update for publishing 2025-04-04 12:55:29 -04:00
Shawn Erquhart
fc5893a71b deprecate checkoutApi, avoid breaking 2025-03-27 15:58:19 -04:00
Shawn Erquhart
a3b6cbb1ce deprecate checkoutApi, avoid breaking 2025-03-27 15:41:32 -04:00
Shawn Erquhart
5ab68376b0 fixes 2025-03-27 15:35:12 -04:00
Shawn Erquhart
018915fd53 clarify user query setup in example 2025-03-27 15:29:41 -04:00
Shawn Erquhart
92785c7913 improve docs 2025-03-27 14:25:01 -04:00
Shawn Erquhart
a8e2971e7e add example app info 2025-03-27 12:01:39 -04:00
Shawn Erquhart
981ba38c78 add optimistic updates to example 2025-03-27 11:58:12 -04:00
Shawn Erquhart
3afd571fb1 capture product metadata from webhooks 2025-03-04 11:08:15 -05:00
Shawn Erquhart
cc884fdde6 capture cancellation reason/comment, add callback docs 2025-03-03 12:07:54 -05:00
Shawn Erquhart
3078dc6794 redirect back after checkout 2025-03-03 11:58:09 -05:00
Shawn Erquhart
9e72f1b578 support checkout page as alternative to embedded checkout 2025-03-03 11:06:13 -05:00
Shawn Erquhart
287aba7952 accept polar config in code 2025-02-27 13:04:20 -05:00
Shawn Erquhart
94d17da713 drop system fields from return values 2025-02-25 18:04:51 -05:00
Shawn Erquhart
1db4b9c424 make product config optional 2025-02-25 17:12:44 -05:00
Shawn Erquhart
a9e591fe8d rework apis, add client components (#2)
* wip

* add static example app

* wip

* wip

* use relative path for jsx import

* wip

* working with single upgrade

* add premium plus upgrade cta

* make the ctas pricing page style

* update price tiles

* wip

* add current plan state

* wip

* working checkouts

* add free tier tile

* fix cta button arrows

* fix customer model

* add dummy manage subscription button

* improve subscription manage button

* fix current plan tile state

* revoke existing subscriptions when a new subscription is created

* support upgrade, downgrade, cancel

* add downgrade buttons

* wip

* implement upgrade/cancel functionality

* add downgrade confirmation

* add upgrade confirmation

* add billing settings panel

* wip

* wip

* split out pricing panel section

* fix manage button

* wip

* working

* wip

* differentiate premium plus

* fix price for current subscription

* add prices

* add interval toggle

* wip

* set default interval for change plan screen

* simplify

* add yearly pricing

* fix upgrade/downgrade

* prompt on delete

* wip - docs

* wip

* wip - docs

* wip

* wip

* wip

* wip

* wip

* update version
2025-02-25 13:01:41 -05:00
Shawn Erquhart
bbe9b308a2 add all functions to client 2024-11-13 20:08:06 -05:00
Shawn Erquhart
0407140a0c move listProducts back to client 2024-11-13 19:26:40 -05:00
Shawn Erquhart
25a6eab8a0 document api 2024-11-13 18:29:05 -05:00
Shawn Erquhart
381127fb44 add example functions 2024-11-13 16:05:43 -05:00
Shawn Erquhart
610354344a ensure against duplicate records 2024-11-13 09:40:32 -05:00
Shawn Erquhart
a10040f52e add schema, client methods 2024-11-12 18:39:18 -05:00
Shawn Erquhart
c8d6ecf16b wip 2024-11-03 13:21:36 -05:00
Shawn Erquhart
4219cd21f8 support initial free subscription 2024-11-01 18:31:02 -04:00
Shawn Erquhart
2eaff5e77f wip 2024-10-31 17:35:23 -04:00