@fantastic.dev/better-stripe 0.6.1 → 0.8.0

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.
Files changed (359) hide show
  1. package/CHANGELOG.md +28 -16
  2. package/README.md +130 -90
  3. package/dist/client/billing/checkout.d.ts +1 -1
  4. package/dist/client/billing/checkout.d.ts.map +1 -1
  5. package/dist/client/billing/checkout.js +7 -2
  6. package/dist/client/billing/checkout.js.map +1 -1
  7. package/dist/client/connect/paymentMethods.d.ts.map +1 -1
  8. package/dist/client/connect/paymentMethods.js.map +1 -1
  9. package/dist/client/connect/refundActor.d.ts.map +1 -1
  10. package/dist/client/connect/refundActor.js.map +1 -1
  11. package/dist/client/connect/refunds.d.ts.map +1 -1
  12. package/dist/client/connect/refunds.js.map +1 -1
  13. package/dist/client/connect/transfers.d.ts.map +1 -1
  14. package/dist/client/connect/transfers.js +15 -4
  15. package/dist/client/connect/transfers.js.map +1 -1
  16. package/dist/client/core/accountDefaults.d.ts +6 -0
  17. package/dist/client/core/accountDefaults.d.ts.map +1 -0
  18. package/dist/client/core/accountDefaults.js +15 -0
  19. package/dist/client/core/accountDefaults.js.map +1 -0
  20. package/dist/client/core/accounts.d.ts +1 -5
  21. package/dist/client/core/accounts.d.ts.map +1 -1
  22. package/dist/client/core/accounts.js +2 -14
  23. package/dist/client/core/accounts.js.map +1 -1
  24. package/dist/client/core/fees.d.ts.map +1 -1
  25. package/dist/client/core/fees.js +7 -2
  26. package/dist/client/core/fees.js.map +1 -1
  27. package/dist/client/index.d.ts +1 -1
  28. package/dist/client/index.d.ts.map +1 -1
  29. package/dist/client/products/prices.d.ts.map +1 -1
  30. package/dist/client/products/prices.js.map +1 -1
  31. package/dist/client/products/products.d.ts.map +1 -1
  32. package/dist/client/products/products.js +3 -1
  33. package/dist/client/products/products.js.map +1 -1
  34. package/dist/client/utils/owner.d.ts.map +1 -1
  35. package/dist/client/utils/owner.js +3 -1
  36. package/dist/client/utils/owner.js.map +1 -1
  37. package/dist/client/utils/stripeDashboardUrl.d.ts.map +1 -1
  38. package/dist/client/utils/stripeDashboardUrl.js.map +1 -1
  39. package/dist/client/webhooks/helpers.d.ts +10 -0
  40. package/dist/client/webhooks/helpers.d.ts.map +1 -1
  41. package/dist/client/webhooks/helpers.js +18 -0
  42. package/dist/client/webhooks/helpers.js.map +1 -1
  43. package/dist/client/webhooks/processors.d.ts.map +1 -1
  44. package/dist/client/webhooks/processors.js +10 -24
  45. package/dist/client/webhooks/processors.js.map +1 -1
  46. package/dist/component/_generated/component.d.ts +34 -0
  47. package/dist/component/_generated/component.d.ts.map +1 -1
  48. package/dist/component/billing/queries.d.ts +36 -0
  49. package/dist/component/billing/queries.d.ts.map +1 -1
  50. package/dist/component/billing/queries.js +10 -0
  51. package/dist/component/billing/queries.js.map +1 -1
  52. package/dist/component/billing/schema.d.ts +1 -0
  53. package/dist/component/billing/schema.d.ts.map +1 -1
  54. package/dist/component/billing/schema.js +1 -0
  55. package/dist/component/billing/schema.js.map +1 -1
  56. package/dist/component/connect/mutations.d.ts.map +1 -1
  57. package/dist/component/connect/mutations.js +28 -28
  58. package/dist/component/connect/mutations.js.map +1 -1
  59. package/dist/component/connect/schema.d.ts.map +1 -1
  60. package/dist/component/connect/schema.js.map +1 -1
  61. package/dist/component/lib/paymentSeller.d.ts +3 -0
  62. package/dist/component/lib/paymentSeller.d.ts.map +1 -0
  63. package/dist/component/lib/paymentSeller.js +10 -0
  64. package/dist/component/lib/paymentSeller.js.map +1 -0
  65. package/dist/component/lib/reversals.d.ts +10 -0
  66. package/dist/component/lib/reversals.d.ts.map +1 -1
  67. package/dist/component/lib/reversals.js +17 -0
  68. package/dist/component/lib/reversals.js.map +1 -1
  69. package/dist/component/schema.d.ts +1 -0
  70. package/dist/react/components/ConnectProvider.d.ts +1 -1
  71. package/dist/react/components/ConnectProvider.d.ts.map +1 -1
  72. package/dist/react/components/ConnectProvider.js +18 -4
  73. package/dist/react/components/ConnectProvider.js.map +1 -1
  74. package/dist/react/components/ConnectStatusBadge.d.ts.map +1 -1
  75. package/dist/react/components/ConnectStatusBadge.js.map +1 -1
  76. package/dist/react/components/EmbeddedDisputes.d.ts +1 -1
  77. package/dist/react/components/EmbeddedDisputes.d.ts.map +1 -1
  78. package/dist/react/components/EmbeddedDisputes.js +1 -1
  79. package/dist/react/components/EmbeddedDisputes.js.map +1 -1
  80. package/dist/react/components/SplitBreakdown.d.ts.map +1 -1
  81. package/dist/react/components/SplitBreakdown.js +12 -2
  82. package/dist/react/components/SplitBreakdown.js.map +1 -1
  83. package/dist/react/hooks/useCheckoutSession.d.ts.map +1 -1
  84. package/dist/react/hooks/useCheckoutSession.js.map +1 -1
  85. package/dist/react/hooks/useConfirmPayment.d.ts.map +1 -1
  86. package/dist/react/hooks/useConfirmPayment.js.map +1 -1
  87. package/dist/react/index.d.ts +1 -0
  88. package/dist/react/index.d.ts.map +1 -1
  89. package/dist/react/index.js +2 -0
  90. package/dist/react/index.js.map +1 -1
  91. package/dist/react/workflows/Account.d.ts +67 -0
  92. package/dist/react/workflows/Account.d.ts.map +1 -0
  93. package/dist/react/workflows/Account.js +74 -0
  94. package/dist/react/workflows/Account.js.map +1 -0
  95. package/dist/react/workflows/Billing.d.ts +60 -0
  96. package/dist/react/workflows/Billing.d.ts.map +1 -0
  97. package/dist/react/workflows/Billing.js +84 -0
  98. package/dist/react/workflows/Billing.js.map +1 -0
  99. package/dist/react/workflows/BillingPlans.d.ts +45 -0
  100. package/dist/react/workflows/BillingPlans.d.ts.map +1 -0
  101. package/dist/react/workflows/BillingPlans.js +51 -0
  102. package/dist/react/workflows/BillingPlans.js.map +1 -0
  103. package/dist/react/workflows/Checkout.d.ts +46 -0
  104. package/dist/react/workflows/Checkout.d.ts.map +1 -0
  105. package/dist/react/workflows/Checkout.js +61 -0
  106. package/dist/react/workflows/Checkout.js.map +1 -0
  107. package/dist/react/workflows/CheckoutChooser.d.ts +20 -0
  108. package/dist/react/workflows/CheckoutChooser.d.ts.map +1 -0
  109. package/dist/react/workflows/CheckoutChooser.js +24 -0
  110. package/dist/react/workflows/CheckoutChooser.js.map +1 -0
  111. package/dist/react/workflows/CheckoutForms.d.ts +26 -0
  112. package/dist/react/workflows/CheckoutForms.d.ts.map +1 -0
  113. package/dist/react/workflows/CheckoutForms.js +126 -0
  114. package/dist/react/workflows/CheckoutForms.js.map +1 -0
  115. package/dist/react/workflows/ClipboardButton.d.ts +17 -0
  116. package/dist/react/workflows/ClipboardButton.d.ts.map +1 -0
  117. package/dist/react/workflows/ClipboardButton.js +35 -0
  118. package/dist/react/workflows/ClipboardButton.js.map +1 -0
  119. package/dist/react/workflows/Collection.d.ts +30 -0
  120. package/dist/react/workflows/Collection.d.ts.map +1 -0
  121. package/dist/react/workflows/Collection.js +25 -0
  122. package/dist/react/workflows/Collection.js.map +1 -0
  123. package/dist/react/workflows/Collections.d.ts +56 -0
  124. package/dist/react/workflows/Collections.d.ts.map +1 -0
  125. package/dist/react/workflows/Collections.js +111 -0
  126. package/dist/react/workflows/Collections.js.map +1 -0
  127. package/dist/react/workflows/Connect.d.ts +19 -0
  128. package/dist/react/workflows/Connect.d.ts.map +1 -0
  129. package/dist/react/workflows/Connect.js +43 -0
  130. package/dist/react/workflows/Connect.js.map +1 -0
  131. package/dist/react/workflows/Costs.d.ts +48 -0
  132. package/dist/react/workflows/Costs.d.ts.map +1 -0
  133. package/dist/react/workflows/Costs.js +66 -0
  134. package/dist/react/workflows/Costs.js.map +1 -0
  135. package/dist/react/workflows/Disputes.d.ts +36 -0
  136. package/dist/react/workflows/Disputes.d.ts.map +1 -0
  137. package/dist/react/workflows/Disputes.js +74 -0
  138. package/dist/react/workflows/Disputes.js.map +1 -0
  139. package/dist/react/workflows/Earnings.d.ts +42 -0
  140. package/dist/react/workflows/Earnings.d.ts.map +1 -0
  141. package/dist/react/workflows/Earnings.js +38 -0
  142. package/dist/react/workflows/Earnings.js.map +1 -0
  143. package/dist/react/workflows/Financials.d.ts +43 -0
  144. package/dist/react/workflows/Financials.d.ts.map +1 -0
  145. package/dist/react/workflows/Financials.js +57 -0
  146. package/dist/react/workflows/Financials.js.map +1 -0
  147. package/dist/react/workflows/IntegrationSwitch.d.ts +23 -0
  148. package/dist/react/workflows/IntegrationSwitch.d.ts.map +1 -0
  149. package/dist/react/workflows/IntegrationSwitch.js +31 -0
  150. package/dist/react/workflows/IntegrationSwitch.js.map +1 -0
  151. package/dist/react/workflows/Onboarding.d.ts +56 -0
  152. package/dist/react/workflows/Onboarding.d.ts.map +1 -0
  153. package/dist/react/workflows/Onboarding.js +86 -0
  154. package/dist/react/workflows/Onboarding.js.map +1 -0
  155. package/dist/react/workflows/Overview.d.ts +51 -0
  156. package/dist/react/workflows/Overview.d.ts.map +1 -0
  157. package/dist/react/workflows/Overview.js +63 -0
  158. package/dist/react/workflows/Overview.js.map +1 -0
  159. package/dist/react/workflows/PaymentMethods.d.ts +35 -0
  160. package/dist/react/workflows/PaymentMethods.d.ts.map +1 -0
  161. package/dist/react/workflows/PaymentMethods.js +63 -0
  162. package/dist/react/workflows/PaymentMethods.js.map +1 -0
  163. package/dist/react/workflows/PaymentReceipt.d.ts +20 -0
  164. package/dist/react/workflows/PaymentReceipt.d.ts.map +1 -0
  165. package/dist/react/workflows/PaymentReceipt.js +24 -0
  166. package/dist/react/workflows/PaymentReceipt.js.map +1 -0
  167. package/dist/react/workflows/Payouts.d.ts +47 -0
  168. package/dist/react/workflows/Payouts.d.ts.map +1 -0
  169. package/dist/react/workflows/Payouts.js +87 -0
  170. package/dist/react/workflows/Payouts.js.map +1 -0
  171. package/dist/react/workflows/Products.d.ts +92 -0
  172. package/dist/react/workflows/Products.d.ts.map +1 -0
  173. package/dist/react/workflows/Products.js +179 -0
  174. package/dist/react/workflows/Products.js.map +1 -0
  175. package/dist/react/workflows/ReferralLinks.d.ts +26 -0
  176. package/dist/react/workflows/ReferralLinks.d.ts.map +1 -0
  177. package/dist/react/workflows/ReferralLinks.js +30 -0
  178. package/dist/react/workflows/ReferralLinks.js.map +1 -0
  179. package/dist/react/workflows/Refunds.d.ts +72 -0
  180. package/dist/react/workflows/Refunds.d.ts.map +1 -0
  181. package/dist/react/workflows/Refunds.js +95 -0
  182. package/dist/react/workflows/Refunds.js.map +1 -0
  183. package/dist/react/workflows/Setup.d.ts +50 -0
  184. package/dist/react/workflows/Setup.d.ts.map +1 -0
  185. package/dist/react/workflows/Setup.js +59 -0
  186. package/dist/react/workflows/Setup.js.map +1 -0
  187. package/dist/react/workflows/Storefront.d.ts +53 -0
  188. package/dist/react/workflows/Storefront.d.ts.map +1 -0
  189. package/dist/react/workflows/Storefront.js +44 -0
  190. package/dist/react/workflows/Storefront.js.map +1 -0
  191. package/dist/react/workflows/SubscriptionOverview.d.ts +13 -0
  192. package/dist/react/workflows/SubscriptionOverview.d.ts.map +1 -0
  193. package/dist/react/workflows/SubscriptionOverview.js +26 -0
  194. package/dist/react/workflows/SubscriptionOverview.js.map +1 -0
  195. package/dist/react/workflows/Subscriptions.d.ts +92 -0
  196. package/dist/react/workflows/Subscriptions.d.ts.map +1 -0
  197. package/dist/react/workflows/Subscriptions.js +149 -0
  198. package/dist/react/workflows/Subscriptions.js.map +1 -0
  199. package/dist/react/workflows/Tasks.d.ts +40 -0
  200. package/dist/react/workflows/Tasks.d.ts.map +1 -0
  201. package/dist/react/workflows/Tasks.js +113 -0
  202. package/dist/react/workflows/Tasks.js.map +1 -0
  203. package/dist/react/workflows/checkout-options.d.ts +37 -0
  204. package/dist/react/workflows/checkout-options.d.ts.map +1 -0
  205. package/dist/react/workflows/checkout-options.js +43 -0
  206. package/dist/react/workflows/checkout-options.js.map +1 -0
  207. package/dist/react/workflows/current-subscription.d.ts +11 -0
  208. package/dist/react/workflows/current-subscription.d.ts.map +1 -0
  209. package/dist/react/workflows/current-subscription.js +14 -0
  210. package/dist/react/workflows/current-subscription.js.map +1 -0
  211. package/dist/react/workflows/filters.d.ts +17 -0
  212. package/dist/react/workflows/filters.d.ts.map +1 -0
  213. package/dist/react/workflows/filters.js +23 -0
  214. package/dist/react/workflows/filters.js.map +1 -0
  215. package/dist/react/workflows/index.d.ts +70 -0
  216. package/dist/react/workflows/index.d.ts.map +1 -0
  217. package/dist/react/workflows/index.js +38 -0
  218. package/dist/react/workflows/index.js.map +1 -0
  219. package/dist/react/workflows/useWorkflowAction.d.ts +11 -0
  220. package/dist/react/workflows/useWorkflowAction.d.ts.map +1 -0
  221. package/dist/react/workflows/useWorkflowAction.js +68 -0
  222. package/dist/react/workflows/useWorkflowAction.js.map +1 -0
  223. package/dist/react/workflows/useWorkflowResource.d.ts +9 -0
  224. package/dist/react/workflows/useWorkflowResource.d.ts.map +1 -0
  225. package/dist/react/workflows/useWorkflowResource.js +67 -0
  226. package/dist/react/workflows/useWorkflowResource.js.map +1 -0
  227. package/docs/react-workflows-audit.md +66 -0
  228. package/docs/react-workflows.md +231 -0
  229. package/package.json +19 -3
  230. package/src/client/billing/checkout-ui-modes.test.ts +49 -0
  231. package/src/client/billing/checkout.ts +8 -3
  232. package/src/client/billing/invoices.test.ts +12 -6
  233. package/src/client/connect/paymentMethods.test.ts +3 -1
  234. package/src/client/connect/paymentMethods.ts +4 -1
  235. package/src/client/connect/refundActor.ts +1 -2
  236. package/src/client/connect/refunds.test.ts +35 -10
  237. package/src/client/connect/refunds.ts +4 -1
  238. package/src/client/connect/transfers.test.ts +66 -12
  239. package/src/client/connect/transfers.ts +32 -8
  240. package/src/client/core/accountDefaults.ts +15 -0
  241. package/src/client/core/accounts.ts +14 -17
  242. package/src/client/core/config.test.ts +2 -1
  243. package/src/client/core/descriptors.test.ts +6 -4
  244. package/src/client/core/fees.test.ts +20 -28
  245. package/src/client/core/fees.ts +9 -2
  246. package/src/client/index.test.ts +22 -22
  247. package/src/client/index.ts +1 -1
  248. package/src/client/products/prices.test.ts +8 -2
  249. package/src/client/products/prices.ts +4 -1
  250. package/src/client/products/products.test.ts +61 -20
  251. package/src/client/products/products.ts +3 -1
  252. package/src/client/utils/data.test.ts +3 -1
  253. package/src/client/utils/owner.test.ts +4 -1
  254. package/src/client/utils/owner.ts +5 -1
  255. package/src/client/utils/stripeDashboardUrl.ts +1 -4
  256. package/src/client/webhooks/handler.test.ts +16 -19
  257. package/src/client/webhooks/helpers.test.ts +26 -13
  258. package/src/client/webhooks/helpers.ts +23 -0
  259. package/src/client/webhooks/hooks.test.ts +1 -2
  260. package/src/client/webhooks/processors.test.ts +34 -34
  261. package/src/client/webhooks/processors.ts +9 -26
  262. package/src/client/webhooks.test.ts +1 -2
  263. package/src/component/_generated/api.ts +2 -0
  264. package/src/component/_generated/component.ts +46 -0
  265. package/src/component/billing/queries.ts +12 -0
  266. package/src/component/billing/schema.ts +1 -0
  267. package/src/component/connect/mutations.ts +34 -35
  268. package/src/component/connect/schema.ts +4 -3
  269. package/src/component/connect.test.ts +1 -5
  270. package/src/component/lib/paymentSeller.ts +15 -0
  271. package/src/component/lib/reversals.ts +30 -2
  272. package/src/component/seller-case-ownership.test.ts +61 -0
  273. package/src/component/store-subscriptions.test.ts +32 -0
  274. package/src/component/subscription-scoping.test.ts +5 -1
  275. package/src/component/triggers.test.ts +7 -4
  276. package/src/react/components/BuyerBillingView.render.test.tsx +7 -2
  277. package/src/react/components/ConnectProvider.live.test.tsx +61 -0
  278. package/src/react/components/ConnectProvider.tsx +18 -4
  279. package/src/react/components/ConnectStatusBadge.tsx +1 -4
  280. package/src/react/components/DisputeDetail.render.test.tsx +5 -1
  281. package/src/react/components/EarningsSummary.render.test.tsx +2 -6
  282. package/src/react/components/EmbeddedDisputes.render.test.tsx +7 -5
  283. package/src/react/components/EmbeddedDisputes.tsx +4 -1
  284. package/src/react/components/EvidenceForm.render.test.tsx +2 -8
  285. package/src/react/components/SplitBreakdown.render.test.tsx +28 -5
  286. package/src/react/components/SplitBreakdown.tsx +12 -2
  287. package/src/react/hooks/useCheckoutSession.ts +1 -2
  288. package/src/react/hooks/useConfirmPayment.ts +1 -2
  289. package/src/react/hooks/useEarnings.test.ts +43 -8
  290. package/src/react/hooks/useStripeMode.test.ts +5 -8
  291. package/src/react/index.ts +3 -0
  292. package/src/react/workflows/Account.test.tsx +31 -0
  293. package/src/react/workflows/Account.tsx +183 -0
  294. package/src/react/workflows/Billing.test.tsx +45 -0
  295. package/src/react/workflows/Billing.tsx +213 -0
  296. package/src/react/workflows/BillingPlans.test.tsx +31 -0
  297. package/src/react/workflows/BillingPlans.tsx +130 -0
  298. package/src/react/workflows/Checkout.test.tsx +118 -0
  299. package/src/react/workflows/Checkout.tsx +135 -0
  300. package/src/react/workflows/CheckoutChooser.test.tsx +44 -0
  301. package/src/react/workflows/CheckoutChooser.tsx +77 -0
  302. package/src/react/workflows/CheckoutForm.test.tsx +66 -0
  303. package/src/react/workflows/CheckoutForms.test.tsx +123 -0
  304. package/src/react/workflows/CheckoutForms.tsx +247 -0
  305. package/src/react/workflows/ClipboardButton.test.tsx +34 -0
  306. package/src/react/workflows/ClipboardButton.tsx +67 -0
  307. package/src/react/workflows/Collection.tsx +76 -0
  308. package/src/react/workflows/Collections.test.tsx +86 -0
  309. package/src/react/workflows/Collections.tsx +213 -0
  310. package/src/react/workflows/Connect.test.tsx +50 -0
  311. package/src/react/workflows/Connect.tsx +107 -0
  312. package/src/react/workflows/Costs.test.tsx +41 -0
  313. package/src/react/workflows/Costs.tsx +133 -0
  314. package/src/react/workflows/Disputes.test.tsx +25 -0
  315. package/src/react/workflows/Disputes.tsx +164 -0
  316. package/src/react/workflows/Earnings.test.ts +19 -0
  317. package/src/react/workflows/Earnings.tsx +84 -0
  318. package/src/react/workflows/Financials.test.tsx +35 -0
  319. package/src/react/workflows/Financials.tsx +117 -0
  320. package/src/react/workflows/IntegrationSwitch.test.tsx +36 -0
  321. package/src/react/workflows/IntegrationSwitch.tsx +63 -0
  322. package/src/react/workflows/Onboarding.test.tsx +75 -0
  323. package/src/react/workflows/Onboarding.tsx +171 -0
  324. package/src/react/workflows/Overview.test.tsx +57 -0
  325. package/src/react/workflows/Overview.tsx +123 -0
  326. package/src/react/workflows/PaymentMethods.test.tsx +60 -0
  327. package/src/react/workflows/PaymentMethods.tsx +117 -0
  328. package/src/react/workflows/PaymentReceipt.test.tsx +24 -0
  329. package/src/react/workflows/PaymentReceipt.tsx +46 -0
  330. package/src/react/workflows/Payouts.test.tsx +82 -0
  331. package/src/react/workflows/Payouts.tsx +212 -0
  332. package/src/react/workflows/Products.test.tsx +90 -0
  333. package/src/react/workflows/Products.tsx +377 -0
  334. package/src/react/workflows/ReferralLinks.test.tsx +39 -0
  335. package/src/react/workflows/ReferralLinks.tsx +75 -0
  336. package/src/react/workflows/Refunds.test.tsx +75 -0
  337. package/src/react/workflows/Refunds.tsx +223 -0
  338. package/src/react/workflows/Setup.test.tsx +25 -0
  339. package/src/react/workflows/Setup.tsx +166 -0
  340. package/src/react/workflows/Storefront.test.tsx +82 -0
  341. package/src/react/workflows/Storefront.tsx +138 -0
  342. package/src/react/workflows/SubscriptionOverview.test.tsx +27 -0
  343. package/src/react/workflows/SubscriptionOverview.tsx +48 -0
  344. package/src/react/workflows/Subscriptions.test.tsx +61 -0
  345. package/src/react/workflows/Subscriptions.tsx +282 -0
  346. package/src/react/workflows/Tasks.test.tsx +23 -0
  347. package/src/react/workflows/Tasks.tsx +199 -0
  348. package/src/react/workflows/checkout-options.ts +42 -0
  349. package/src/react/workflows/current-subscription.test.ts +29 -0
  350. package/src/react/workflows/current-subscription.ts +25 -0
  351. package/src/react/workflows/filters.test.ts +12 -0
  352. package/src/react/workflows/filters.ts +22 -0
  353. package/src/react/workflows/index.ts +238 -0
  354. package/src/react/workflows/native-interactions.test.tsx +73 -0
  355. package/src/react/workflows/public-workflows.test.tsx +216 -0
  356. package/src/react/workflows/useWorkflowAction.test.tsx +54 -0
  357. package/src/react/workflows/useWorkflowAction.ts +75 -0
  358. package/src/react/workflows/useWorkflowResource.test.tsx +41 -0
  359. package/src/react/workflows/useWorkflowResource.ts +78 -0
package/CHANGELOG.md CHANGED
@@ -14,39 +14,51 @@
14
14
  - Remove internal tracker references from public documentation and add a
15
15
  regression check that prevents their reintroduction.
16
16
 
17
- ## [0.6.1](https://github.com/FantasticDevHQ/better-stripe/compare/v0.6.0...v0.6.1) (2026-10-13)
17
+ ## [0.8.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.7.0...v0.8.0) (2026-10-13)
18
+
19
+ ### Features
20
+
21
+ - compare checkout and embedded integration examples ([#133](https://github.com/FantasticDevHQ/better-stripe/issues/133)) ([0d916f6](https://github.com/FantasticDevHQ/better-stripe/commit/0d916f6aecf734877da379327a3148753fc0c4c3))
22
+ - ship reusable React workflows and migrate the example UI ([#134](https://github.com/FantasticDevHQ/better-stripe/issues/134)) ([a1336ce](https://github.com/FantasticDevHQ/better-stripe/commit/a1336ced2a6d3a09210e769a89cf70022c0f7531))
23
+
24
+ ### Maintenance
25
+
26
+ - add repo-gates and enforce check:all ([#131](https://github.com/FantasticDevHQ/better-stripe/issues/131)) ([be80b7f](https://github.com/FantasticDevHQ/better-stripe/commit/be80b7f8fe186bc22dbdc956357bd4a1120eec29))
27
+
28
+ ## [0.7.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.6.1...v0.7.0) (2026-10-13)
18
29
 
30
+ ### Features
31
+
32
+ - expand marketplace example with seller billing and sandbox fixtures ([#129](https://github.com/FantasticDevHQ/better-stripe/issues/129)) ([7f21f53](https://github.com/FantasticDevHQ/better-stripe/commit/7f21f5365ce82cab9ecc984b94f444408223f8b8))
33
+
34
+ ## [0.6.1](https://github.com/FantasticDevHQ/better-stripe/compare/v0.6.0...v0.6.1) (2026-10-13)
19
35
 
20
36
  ### Bug Fixes
21
37
 
22
- * complete large split reversals and keep public docs current ([#127](https://github.com/FantasticDevHQ/better-stripe/issues/127)) ([e7cc0a9](https://github.com/FantasticDevHQ/better-stripe/commit/e7cc0a9b0ea01f4993447f9d73edebe71b364081))
38
+ - complete large split reversals and keep public docs current ([#127](https://github.com/FantasticDevHQ/better-stripe/issues/127)) ([e7cc0a9](https://github.com/FantasticDevHQ/better-stripe/commit/e7cc0a9b0ea01f4993447f9d73edebe71b364081))
23
39
 
24
40
  ## [0.6.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.5.0...v0.6.0) (2026-10-12)
25
41
 
26
-
27
42
  ### ⚠ BREAKING CHANGES
28
43
 
29
- * the package name changes to @fantastic.dev/better-stripe; @getdojo/better-stripe receives no further releases.
44
+ - the package name changes to @fantastic.dev/better-stripe; @getdojo/better-stripe receives no further releases.
30
45
 
31
46
  ### Features
32
47
 
33
- * complete Stripe Endive compatibility and release 0.5.0 ([#126](https://github.com/FantasticDevHQ/better-stripe/issues/126)) ([135695f](https://github.com/FantasticDevHQ/better-stripe/commit/135695f51906ea156a36dbe8d0d43cf1d99e5fc1))
34
- * publish as [@fantastic](https://github.com/fantastic).dev/better-stripe via Release Please and trusted publishing ([#120](https://github.com/FantasticDevHQ/better-stripe/issues/120)) ([7451eeb](https://github.com/FantasticDevHQ/better-stripe/commit/7451eeb514b09a09656355c74c4bec083e1ddce7))
35
-
48
+ - complete Stripe Endive compatibility and release 0.5.0 ([#126](https://github.com/FantasticDevHQ/better-stripe/issues/126)) ([135695f](https://github.com/FantasticDevHQ/better-stripe/commit/135695f51906ea156a36dbe8d0d43cf1d99e5fc1))
49
+ - publish as [@fantastic](https://github.com/fantastic).dev/better-stripe via Release Please and trusted publishing ([#120](https://github.com/FantasticDevHQ/better-stripe/issues/120)) ([7451eeb](https://github.com/FantasticDevHQ/better-stripe/commit/7451eeb514b09a09656355c74c4bec083e1ddce7))
36
50
 
37
51
  ### Bug Fixes
38
52
 
39
- * repair example checkout billing and seller flows ([#125](https://github.com/FantasticDevHQ/better-stripe/issues/125)) ([5911fb8](https://github.com/FantasticDevHQ/better-stripe/commit/5911fb8d8bc585fab62fe48e58e1e964047b8fd9))
40
-
53
+ - repair example checkout billing and seller flows ([#125](https://github.com/FantasticDevHQ/better-stripe/issues/125)) ([5911fb8](https://github.com/FantasticDevHQ/better-stripe/commit/5911fb8d8bc585fab62fe48e58e1e964047b8fd9))
41
54
 
42
55
  ### Maintenance
43
56
 
44
- * **deps:** update dependencies to latest ([#122](https://github.com/FantasticDevHQ/better-stripe/issues/122)) ([a7e4161](https://github.com/FantasticDevHQ/better-stripe/commit/a7e416179d20afdd2356668cbd4482e2e3fa4eff))
45
-
57
+ - **deps:** update dependencies to latest ([#122](https://github.com/FantasticDevHQ/better-stripe/issues/122)) ([a7e4161](https://github.com/FantasticDevHQ/better-stripe/commit/a7e416179d20afdd2356668cbd4482e2e3fa4eff))
46
58
 
47
59
  ### Continuous Integration
48
60
 
49
- * **release:** open release PRs with the org release GitHub App ([#124](https://github.com/FantasticDevHQ/better-stripe/issues/124)) ([3c94f2e](https://github.com/FantasticDevHQ/better-stripe/commit/3c94f2ef317f939ac039c261f9c148e6b1f14a56))
61
+ - **release:** open release PRs with the org release GitHub App ([#124](https://github.com/FantasticDevHQ/better-stripe/issues/124)) ([3c94f2e](https://github.com/FantasticDevHQ/better-stripe/commit/3c94f2ef317f939ac039c261f9c148e6b1f14a56))
50
62
 
51
63
  ## 0.5.0
52
64
 
@@ -118,7 +130,7 @@ changed by this release.
118
130
 
119
131
  - [#76](https://github.com/kellykampen/better-stripe/pull/76) [`c9f1489`](https://github.com/kellykampen/better-stripe/commit/c9f148948f2f5ea77f343c5fc1a78faffbb5ac1e) Thanks [@kellykampen](https://github.com/kellykampen)! - Add headless `DisputesList` component with due-by countdown badges ([#41](https://github.com/kellykampen/better-stripe/issues/41)).
120
132
 
121
- Pure, hook-free presentational list of a seller's disputes, sorted by evidence deadline (soonest first, no-deadline rows last, overdue rows naturally at the top). Rows accept the exact shape `getDisputeWithCountdown`/`useDisputeWithCountdown` produce, so the component never recomputes deadlines itself.
133
+ Pure, hook-free presentational list of a seller's disputes, sorted by evidence deadline (soonest first, no-deadline rows last, overdue rows naturally at the top). Rows accept the exact shape `getDisputeWithCountdown`/`useDisputeWithCountdown` produce, so the component never recomputes deadlines itself.
122
134
 
123
135
  Headless overrides: `className`, i18n labels (`emptyLabel`, `loadingLabel`, `dueLabel`/`overdueLabel` with `{days}` templating), a per-row `renderRow` slot, and a whole-list `children` render prop. Default markup is semantic `ul[role=list] > li[data-dispute-id]` with a `span[role=status]` badge carrying `data-overdue`. Purely additive.
124
136
 
@@ -184,7 +196,7 @@ changed by this release.
184
196
 
185
197
  - [#76](https://github.com/kellykampen/better-stripe/pull/76) [`c9f1489`](https://github.com/kellykampen/better-stripe/commit/c9f148948f2f5ea77f343c5fc1a78faffbb5ac1e) Thanks [@kellykampen](https://github.com/kellykampen)! - Add product-level `statement_descriptor` so it covers a subscription's first charge ([#63](https://github.com/kellykampen/better-stripe/issues/63)).
186
198
 
187
- The invoice-time descriptor path sets the descriptor at `invoice.created`, which never reaches a subscription's first invoice — Stripe finalizes and (for `charge_automatically`/Checkout subscription-mode) pays invoice [#1](https://github.com/kellykampen/better-stripe/issues/1) synchronously at creation, before that handler runs. Per Stripe's descriptor precedence (Invoice → Product → charge-type default), a product-level `statement_descriptor` covers every cycle including the first.
199
+ The invoice-time descriptor path sets the descriptor at `invoice.created`, which never reaches a subscription's first invoice — Stripe finalizes and (for `charge_automatically`/Checkout subscription-mode) pays invoice [#1](https://github.com/kellykampen/better-stripe/issues/1) synchronously at creation, before that handler runs. Per Stripe's descriptor precedence (Invoice → Product → charge-type default), a product-level `statement_descriptor` covers every cycle including the first.
188
200
 
189
201
  `createProduct`/`updateProduct` now resolve the per-store descriptor (the store's stored suffix, else the platform default — mirroring the account-level descriptor resolution) and stamp it onto the Stripe Product's `statement_descriptor`, for products with an `accountId`. No public API change to existing call shapes.
190
202
 
@@ -273,7 +285,7 @@ changed by this release.
273
285
 
274
286
  - A bare metadata/status update (no `evidence`) is unchanged — no `submit` is forced.
275
287
  - An explicit `submit: true` / `submit: false` is always honored.
276
- - `EvidenceForm` already passes `submit` explicitly, so it is unaffected.
288
+ - `EvidenceForm` already passes `submit` explicitly, so it is unaffected.
277
289
 
278
290
  If you relied on the old behavior of submitting evidence by omitting `submit`, pass `submit: true` explicitly.
279
291
 
@@ -281,7 +293,7 @@ changed by this release.
281
293
 
282
294
  - [#76](https://github.com/kellykampen/better-stripe/pull/76) [`c9f1489`](https://github.com/kellykampen/better-stripe/commit/c9f148948f2f5ea77f343c5fc1a78faffbb5ac1e) Thanks [@kellykampen](https://github.com/kellykampen)! - Regenerate the component's `_generated` API so transfer/dispute queries are typed for consumers ([#71](https://github.com/kellykampen/better-stripe/issues/71)).
283
295
 
284
- `src/component/_generated/component.ts` was stale — it predated `listTransfersByCharge`/`listTransfersByAccount` and `getDisputeByStripeId`/`listDisputes`, so `components.betterStripe.connect.queries.*` for those methods was untyped for any consumer reaching into the raw component API. Regenerated via `npx convex codegen`; no source logic changed, generated bindings only.
296
+ `src/component/_generated/component.ts` was stale — it predated `listTransfersByCharge`/`listTransfersByAccount` and `getDisputeByStripeId`/`listDisputes`, so `components.betterStripe.connect.queries.*` for those methods was untyped for any consumer reaching into the raw component API. Regenerated via `npx convex codegen`; no source logic changed, generated bindings only.
285
297
 
286
298
  - [#76](https://github.com/kellykampen/better-stripe/pull/76) [`c9f1489`](https://github.com/kellykampen/better-stripe/commit/c9f148948f2f5ea77f343c5fc1a78faffbb5ac1e) Thanks [@kellykampen](https://github.com/kellykampen)! - Fix: `updateDispute` now sends an explicit `submit: false` on every call, including metadata-only updates ([#67](https://github.com/kellykampen/better-stripe/issues/67)).
287
299
 
package/README.md CHANGED
@@ -6,7 +6,7 @@ Built for Convex + Next.js applications. Follows the conventions established by
6
6
 
7
7
  ## Status
8
8
 
9
- **Version**: `0.6.1` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
9
+ **Version**: `0.8.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
10
10
 
11
11
  Used in production by its authors. Webhook pipeline is covered by unit tests and a live E2E harness (`npm run e2e:webhooks`) that fires real Stripe-signed events and asserts the ledger.
12
12
 
@@ -21,6 +21,7 @@ Releases are automated with [Release Please](https://github.com/googleapis/relea
21
21
  - `docs:`, `chore:`, `ci:`, `refactor:`, `test:`, `build:` and `perf:` appear in the changelog too. On their own they still open a patch release PR, which you can leave open to collect more changes: nothing publishes until that PR is merged.
22
22
 
23
23
  Write the title for consumers of the package: it becomes the changelog entry. A title that isn't a Conventional Commit is left out.
24
+
24
25
  2. **On merge to `main`**, the `Release` workflow opens or updates a release PR that bumps `package.json`, `CHANGELOG.md`, the version line above and `.release-please-manifest.json`.
25
26
  3. **Merging the release PR** is the release decision. The same run tags the version, creates the GitHub release and publishes to npm through [trusted publishing](https://docs.npmjs.com/trusted-publishers) with provenance. There's no npm token.
26
27
 
@@ -35,6 +36,27 @@ and `pnpm dev` to start the example at http://localhost:5173. The example needs
35
36
  Node.js 22.12+ and a configured Convex development deployment; see
36
37
  [the example setup guide](example/README.md).
37
38
 
39
+ The BetterStripe example separates visitor, customer, affiliate, seller, and
40
+ platform-admin workflows. Its resumable Stripe sandbox fixtures populate sales,
41
+ referrals, refunds, disputes, subscriptions, and payouts. Seller plans include
42
+ monthly billing, actual Stripe fee reconciliation, and refund/dispute cost
43
+ recovery. The example also demonstrates optional balance-funded subscriptions
44
+ using Stripe's Accounts v2 preview. See the setup guide for consent requirements,
45
+ renewal tests, and payment-recovery limitations.
46
+
47
+ The example also compares headless APIs, package React components, Stripe Connect
48
+ embeds, and hosted billing where supported. Its checkout chooser demonstrates
49
+ Hosted Checkout, Embedded Checkout, custom Checkout Sessions with Payment Element,
50
+ Payment Intents with Payment Element, and the preview Embedded Checkout Form,
51
+ with pros and cons for each. `createCheckoutSession` accepts `uiMode` values
52
+ `"redirect"`, `"embedded"`, `"custom"`, and `"form"`; the latter two map to Stripe's
53
+ `elements` and preview `form` modes. See [the integration examples](example/README.md#compare-integration-styles).
54
+
55
+ Run `pnpm run check:all` before submitting changes. It runs the build, lint,
56
+ formatting, typechecks, codegen drift check, tests, and repository quality gates
57
+ used by CI. Policy lives in `repo-gates.config.json`; measured baselines live in
58
+ `gates/`. Fix failures without weakening the gates or raising existing budgets.
59
+
38
60
  Builds and typechecks use TypeScript 7 (`@typescript/native` aliases
39
61
  `typescript`). ESLint and Convex code generation still need the TypeScript 6
40
62
  API, so `typescript` aliases Microsoft's `@typescript/typescript6` compatibility
@@ -64,8 +86,8 @@ All three require a configured dev deployment (`CONVEX_DEPLOYMENT` env var, norm
64
86
  **CI gate.** Two layers verify the committed files are not stale:
65
87
 
66
88
  1. **Structural drift check** (`pnpm codegen:check`, always runs in CI): two independent scans, each checking both directions (every source export appears in the generated file, and every generated entry still has a matching source), neither needing a deployment:
67
- - Library component — scans `src/component/**/*.{queries,mutations,actions}.ts` and verifies every exported function appears in `src/component/_generated/component.ts`. The reverse direction also flags a stale entry left behind by a *deleted* query/mutation/action. The export-detection regex intentionally matches only direct `query(...)`/`mutation(...)`/`action(...)` exports — not wrapper or re-export forms like `customQuery(...)` (convex-helpers) or `export { fn as name }`, which this component has none of today; widen the regex (and the reverse scan) rather than assuming that stays true.
68
- - Example app — scans `example/convex/**/*.ts` and verifies every source module is imported and registered in `example/convex/_generated/api.ts`. Catches the common case of adding a new `example/convex/<module>.ts` (or nested file like `example/convex/lib/<module>.ts`) without regenerating. The reverse direction likewise flags a stale import left behind by a *deleted* module.
89
+ - Library component — scans `src/component/**/*.{queries,mutations,actions}.ts` and verifies every exported function appears in `src/component/_generated/component.ts`. The reverse direction also flags a stale entry left behind by a _deleted_ query/mutation/action. The export-detection regex intentionally matches only direct `query(...)`/`mutation(...)`/`action(...)` exports — not wrapper or re-export forms like `customQuery(...)` (convex-helpers) or `export { fn as name }`, which this component has none of today; widen the regex (and the reverse scan) rather than assuming that stays true.
90
+ - Example app — scans `example/convex/**/*.ts` and verifies every source module is imported and registered in `example/convex/_generated/api.ts`. Catches the common case of adding a new `example/convex/<module>.ts` (or nested file like `example/convex/lib/<module>.ts`) without regenerating. The reverse direction likewise flags a stale import left behind by a _deleted_ module.
69
91
  2. **Authoritative regen-and-diff** (runs in CI when `CONVEX_DEPLOYMENT` is configured): runs `pnpm codegen` against the configured dev deployment and fails if `git diff` shows changes. Catches every drift case, including validator-shape changes the structural check can't see. To enable on a fork, set the `CONVEX_DEPLOYMENT` repo secret to a dev deployment name and authorize the CI runner — see Convex's [GitHub Actions guide](https://docs.convex.dev/production/integration/deployments#github-actions).
70
92
 
71
93
  ### Relation to `@convex-dev/stripe`
@@ -208,27 +230,27 @@ Methods named `get<Entity>` take the component document ID (exception: `getInvoi
208
230
 
209
231
  ### Account
210
232
 
211
- | Method | Description |
212
- | --------------------------------------------------------------------------------- | -------------------------------------------------------- |
213
- | `createAccount(ctx, { userId, email?, name?, country?, orgId?, metadata? })` | Create a V2 account in Stripe and the component database |
214
- | `getAccount(ctx, { accountId })` | Get account by component document ID |
215
- | `getAccountByStripeId(ctx, { stripeAccountId })` | Get account by Stripe account ID |
216
- | `getOrCreateAccount(ctx, { userId, email?, name?, country?, orgId?, metadata? })` | Get existing or create new account |
217
- | `getAccountByUserId(ctx, { userId })` | Get account by app-layer user ID |
218
- | `getAccountByOrgId(ctx, { orgId })` | Get account by organization/team ID |
219
- | `getAccountOnboardingStatus(ctx, { accountId })` | Get Connect onboarding status (by component document ID) |
220
- | `updateAccount(ctx, { stripeAccountId, email?, name?, metadata? })` | Update account fields |
221
- | `createAccountLink(ctx, { stripeAccountId, refreshUrl, returnUrl, type })` | Create Connect onboarding or update link |
222
- | `createAccountSession(ctx, { stripeAccountId, components })` | Create embedded account management session |
223
- | `createLoginLink(ctx, { stripeAccountId })` | Create Express dashboard login link |
224
- | `addRecipientConfiguration(ctx, { stripeAccountId })` | Add recipient configuration to an existing account |
225
- | `getV2Account(ctx, { stripeAccountId, include? })` | Retrieve a V2 account directly from Stripe |
226
- | `updateV2Account(ctx, { stripeAccountId, updateParams })` | Update a V2 account in Stripe |
227
- | `listStripeAccounts(ctx, { limit? })` | List V2 accounts directly from Stripe |
228
- | `closeAccount(ctx, { stripeAccountId })` | Close a V2 account; returns `{ closed: boolean }` |
229
- | `restartAccountOnboarding(ctx, { stripeAccountId })` | Close the account so onboarding can restart fresh |
230
- | `setAccountStatementDescriptor(ctx, { stripeAccountId, statementDescriptor })` | Set (or `null` to clear) the account's per-store statement-descriptor suffix |
231
- | `createDisputeSession(ctx, { stripeAccountId })` | Create an embedded Account Session scoped to the seller's disputes |
233
+ | Method | Description |
234
+ | --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
235
+ | `createAccount(ctx, { userId, email?, name?, country?, orgId?, metadata? })` | Create a V2 account in Stripe and the component database |
236
+ | `getAccount(ctx, { accountId })` | Get account by component document ID |
237
+ | `getAccountByStripeId(ctx, { stripeAccountId })` | Get account by Stripe account ID |
238
+ | `getOrCreateAccount(ctx, { userId, email?, name?, country?, orgId?, metadata? })` | Get existing or create new account |
239
+ | `getAccountByUserId(ctx, { userId })` | Get account by app-layer user ID |
240
+ | `getAccountByOrgId(ctx, { orgId })` | Get account by organization/team ID |
241
+ | `getAccountOnboardingStatus(ctx, { accountId })` | Get Connect onboarding status (by component document ID) |
242
+ | `updateAccount(ctx, { stripeAccountId, email?, name?, metadata? })` | Update account fields |
243
+ | `createAccountLink(ctx, { stripeAccountId, refreshUrl, returnUrl, type })` | Create Connect onboarding or update link |
244
+ | `createAccountSession(ctx, { stripeAccountId, components })` | Create embedded account management session |
245
+ | `createLoginLink(ctx, { stripeAccountId })` | Create Express dashboard login link |
246
+ | `addRecipientConfiguration(ctx, { stripeAccountId })` | Add recipient configuration to an existing account |
247
+ | `getV2Account(ctx, { stripeAccountId, include? })` | Retrieve a V2 account directly from Stripe |
248
+ | `updateV2Account(ctx, { stripeAccountId, updateParams })` | Update a V2 account in Stripe |
249
+ | `listStripeAccounts(ctx, { limit? })` | List V2 accounts directly from Stripe |
250
+ | `closeAccount(ctx, { stripeAccountId })` | Close a V2 account; returns `{ closed: boolean }` |
251
+ | `restartAccountOnboarding(ctx, { stripeAccountId })` | Close the account so onboarding can restart fresh |
252
+ | `setAccountStatementDescriptor(ctx, { stripeAccountId, statementDescriptor })` | Set (or `null` to clear) the account's per-store statement-descriptor suffix |
253
+ | `createDisputeSession(ctx, { stripeAccountId })` | Create an embedded Account Session scoped to the seller's disputes |
232
254
 
233
255
  ### Product and Price
234
256
 
@@ -249,22 +271,22 @@ Methods named `get<Entity>` take the component document ID (exception: `getInvoi
249
271
 
250
272
  ### Checkout and Subscription
251
273
 
252
- | Method | Description |
253
- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
274
+ | Method | Description |
275
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
254
276
  | `createCheckoutSession(ctx, { userId, stripePriceId, mode, returnUrl, uiMode?, quantity?, trialDays?, accountId?, orgId?, customerEmail?, destinationAccountId?, split?, fee?, amount?, metadata?, sessionOverrides? })` | Create checkout session (embedded or redirect); `destinationAccountId`/`split` route funds, `fee` overrides the platform's configured default |
255
- | `getCheckoutSession(ctx, { sessionId })` | Get checkout session by component document ID |
256
- | `getCheckoutSessionByStripeId(ctx, { stripeSessionId })` | Get checkout session by Stripe session ID |
257
- | `createSubscription(ctx, { userId, orgId?, customerAccount, stripePriceId, destinationAccountId?, split?, fee?, trialDays?, metadata? })` | Create a subscription directly for a V2 buyer (off the checkout flow), with the same routing/fee options as checkout |
258
- | `getSubscription(ctx, { subscriptionId })` | Get subscription by component document ID |
259
- | `getSubscriptionByStripeId(ctx, { stripeSubscriptionId })` | Get subscription by Stripe subscription ID |
260
- | `listSubscriptions(ctx, { stripeAccountId?, status?, limit? })` | List subscriptions, optionally scoped to a Connect account (use `listSubscriptionsByUser` for per-user filtering) |
261
- | `listSubscriptionsByUser(ctx, { userId, status? })` | List all subscriptions for a user |
262
- | `listSubscriptionsByOrg(ctx, { orgId, status? })` | List all subscriptions for an organization |
263
- | `getActiveSubscription(ctx, { userId, orgId? })` | Get the active subscription for a user or org |
264
- | `getTrialStatus(ctx, { subscriptionId })` | Get trial state for a subscription |
265
- | `cancelSubscription(ctx, { stripeSubscriptionId, cancelAtPeriodEnd? })` | Cancel subscription immediately or at period end |
266
- | `reactivateSubscription(ctx, { stripeSubscriptionId })` | Reactivate a canceled subscription |
267
- | `updateSubscriptionQuantity(ctx, { stripeSubscriptionId, quantity })` | Update subscription seat quantity |
277
+ | `getCheckoutSession(ctx, { sessionId })` | Get checkout session by component document ID |
278
+ | `getCheckoutSessionByStripeId(ctx, { stripeSessionId })` | Get checkout session by Stripe session ID |
279
+ | `createSubscription(ctx, { userId, orgId?, customerAccount, stripePriceId, destinationAccountId?, split?, fee?, trialDays?, metadata? })` | Create a subscription directly for a V2 buyer (off the checkout flow), with the same routing/fee options as checkout |
280
+ | `getSubscription(ctx, { subscriptionId })` | Get subscription by component document ID |
281
+ | `getSubscriptionByStripeId(ctx, { stripeSubscriptionId })` | Get subscription by Stripe subscription ID |
282
+ | `listSubscriptions(ctx, { stripeAccountId?, status?, limit? })` | List subscriptions, optionally scoped to a Connect account (use `listSubscriptionsByUser` for per-user filtering) |
283
+ | `listSubscriptionsByUser(ctx, { userId, status? })` | List all subscriptions for a user |
284
+ | `listSubscriptionsByOrg(ctx, { orgId, status? })` | List all subscriptions for an organization |
285
+ | `getActiveSubscription(ctx, { userId, orgId? })` | Get the active subscription for a user or org |
286
+ | `getTrialStatus(ctx, { subscriptionId })` | Get trial state for a subscription |
287
+ | `cancelSubscription(ctx, { stripeSubscriptionId, cancelAtPeriodEnd? })` | Cancel subscription immediately or at period end |
288
+ | `reactivateSubscription(ctx, { stripeSubscriptionId })` | Reactivate a canceled subscription |
289
+ | `updateSubscriptionQuantity(ctx, { stripeSubscriptionId, quantity })` | Update subscription seat quantity |
268
290
 
269
291
  ### Invoice, Payment Method, and Payout
270
292
 
@@ -286,17 +308,17 @@ Methods named `get<Entity>` take the component document ID (exception: `getInvoi
286
308
 
287
309
  ### Refund and Dispute
288
310
 
289
- | Method | Description |
290
- | --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
311
+ | Method | Description |
312
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
291
313
  | `createRefund(ctx, { stripePaymentIntentId?, stripeChargeId?, amount?, reason?, metadata?, stripeAccountId?, refundApplicationFee?, reverseTransfer? })` | Issue a refund (provide a payment intent or charge); returns/reverses the platform fee and destination transfer by default; synced via `refund.created`/`.updated` |
292
- | `getRefundByStripeId(ctx, { stripeRefundId })` | Get a refund by Stripe refund ID |
293
- | `listRefunds(ctx, { stripeAccountId?, stripePaymentIntentId?, status?, limit? })` | List refunds with optional filters |
294
- | `getDisputeByStripeId(ctx, { stripeDisputeId })` | Get a dispute by Stripe dispute ID |
295
- | `getDisputeWithCountdown(ctx, { stripeDisputeId })` | Get a dispute plus its evidence-due countdown (`daysRemaining`, `isOverdue`) |
296
- | `listDisputes(ctx, { stripeAccountId?, stripePaymentIntentId?, status?, limit? })` | List disputes with optional filters |
297
- | `updateDispute(ctx, { stripeDisputeId, evidence?, metadata?, submit?, stripeAccountId? })` | Submit/stage dispute evidence (`submit: true` finalizes the response) |
298
- | `closeDispute(ctx, { stripeDisputeId, stripeAccountId? })` | Accept a dispute (concede the chargeback) — irreversible |
299
- | `reverseTransfers(ctx, { sourceChargeId, percent?, amount? })` | Reverse split/destination transfers for a charge (the primitive behind automatic dispute clawback; also callable manually) |
314
+ | `getRefundByStripeId(ctx, { stripeRefundId })` | Get a refund by Stripe refund ID |
315
+ | `listRefunds(ctx, { stripeAccountId?, stripePaymentIntentId?, status?, limit? })` | List refunds with optional filters |
316
+ | `getDisputeByStripeId(ctx, { stripeDisputeId })` | Get a dispute by Stripe dispute ID |
317
+ | `getDisputeWithCountdown(ctx, { stripeDisputeId })` | Get a dispute plus its evidence-due countdown (`daysRemaining`, `isOverdue`) |
318
+ | `listDisputes(ctx, { stripeAccountId?, stripePaymentIntentId?, status?, limit? })` | List disputes with optional filters |
319
+ | `updateDispute(ctx, { stripeDisputeId, evidence?, metadata?, submit?, stripeAccountId? })` | Submit/stage dispute evidence (`submit: true` finalizes the response) |
320
+ | `closeDispute(ctx, { stripeDisputeId, stripeAccountId? })` | Accept a dispute (concede the chargeback) — irreversible |
321
+ | `reverseTransfers(ctx, { sourceChargeId, percent?, amount? })` | Reverse split/destination transfers for a charge (the primitive behind automatic dispute clawback; also callable manually) |
300
322
 
301
323
  Refunds denormalize cumulative state onto the linked `payments` row (`refundedAmount`, `refundStatus: "partially_refunded" | "fully_refunded"`) so "is this payment whole?" is a single read.
302
324
 
@@ -621,7 +643,11 @@ await stripe.createCheckoutSession(ctx, {
621
643
  returnUrl,
622
644
  split: [
623
645
  { destinationAccountId: storeAccountId, role: "store", percent: 80 },
624
- { destinationAccountId: affiliateAccountId, role: "affiliate", percent: 10 },
646
+ {
647
+ destinationAccountId: affiliateAccountId,
648
+ role: "affiliate",
649
+ percent: 10,
650
+ },
625
651
  ],
626
652
  fee: { percent: 10 }, // per-call override; omit to use the configured default
627
653
  });
@@ -700,21 +726,21 @@ Read hooks are exported as factory functions that take the app's `useQuery` bind
700
726
 
701
727
  ### Read Hooks
702
728
 
703
- | Hook Factory | Hook Arguments | Returns |
704
- | ---------------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
705
- | `createUseAccount` | `(userId?)` | `{ account, isLoading }` |
706
- | `createUseProducts` | `({ accountId?, active? }?)` | `{ products, isLoading }` |
707
- | `createUsePrices` | `(productId?)` | `{ prices, isLoading }` |
708
- | `createUseSubscription` | `(subscriptionId?)` | `{ subscription, isActive, isTrialing, isCanceling, daysUntilRenewal, daysUntilTrialEnd, isLoading }` |
709
- | `createUseSubscriptions` | `({ userId?, status? }?)` | `{ subscriptions, activeSubscription, isLoading }` |
710
- | `createUseCheckout` | `(sessionId?)` | `{ session, status, isComplete, isLoading }` |
711
- | `createUsePaymentMethods` | `(accountId?)` | `{ methods, defaultMethod, isLoading }` |
712
- | `createUseInvoices` | `({ userId?, subscriptionId?, status? }?)` | `{ invoices, isLoading }` |
713
- | `createUseAccountOnboarding` | `(accountId?)` | `{ account, status, isReady, missingRequirements, isLoading }` |
714
- | `createUseEarnings` | `(accountId?)` | `{ gross, reversed, net, payouts, paidOut, transfers, isLoading }` — recipient balance/earnings |
715
- | `createUseSplitBreakdown` | `({ sourceChargeId?, saleAmount? })` | `{ breakdown: { legs, store, affiliate, other, recipientsTotal, platform? } \| null, isLoading }` — per-sale split |
716
- | `createUseDisputes` | `({ accountId?, status? }?)` | `{ disputes, isLoading }` |
717
- | `createUseDisputeWithCountdown` | `(stripeDisputeId?)` | `{ dispute, countdown: { dueBy?, daysRemaining?, isOverdue } \| null, isLoading }` |
729
+ | Hook Factory | Hook Arguments | Returns |
730
+ | ------------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
731
+ | `createUseAccount` | `(userId?)` | `{ account, isLoading }` |
732
+ | `createUseProducts` | `({ accountId?, active? }?)` | `{ products, isLoading }` |
733
+ | `createUsePrices` | `(productId?)` | `{ prices, isLoading }` |
734
+ | `createUseSubscription` | `(subscriptionId?)` | `{ subscription, isActive, isTrialing, isCanceling, daysUntilRenewal, daysUntilTrialEnd, isLoading }` |
735
+ | `createUseSubscriptions` | `({ userId?, status? }?)` | `{ subscriptions, activeSubscription, isLoading }` |
736
+ | `createUseCheckout` | `(sessionId?)` | `{ session, status, isComplete, isLoading }` |
737
+ | `createUsePaymentMethods` | `(accountId?)` | `{ methods, defaultMethod, isLoading }` |
738
+ | `createUseInvoices` | `({ userId?, subscriptionId?, status? }?)` | `{ invoices, isLoading }` |
739
+ | `createUseAccountOnboarding` | `(accountId?)` | `{ account, status, isReady, missingRequirements, isLoading }` |
740
+ | `createUseEarnings` | `(accountId?)` | `{ gross, reversed, net, payouts, paidOut, transfers, isLoading }` — recipient balance/earnings |
741
+ | `createUseSplitBreakdown` | `({ sourceChargeId?, saleAmount? })` | `{ breakdown: { legs, store, affiliate, other, recipientsTotal, platform? } \| null, isLoading }` — per-sale split |
742
+ | `createUseDisputes` | `({ accountId?, status? }?)` | `{ disputes, isLoading }` |
743
+ | `createUseDisputeWithCountdown` | `(stripeDisputeId?)` | `{ dispute, countdown: { dueBy?, daysRemaining?, isOverdue } \| null, isLoading }` |
718
744
 
719
745
  ### Checkout Session Hooks
720
746
 
@@ -786,14 +812,20 @@ These are re-exported so apps never need to import from `@stripe/react-stripe-js
786
812
 
787
813
  ## React Components
788
814
 
789
- Import from `@fantastic.dev/better-stripe/react`. All components are headless by default -- they provide behavior and minimal structure. Style them with Tailwind or any CSS approach.
815
+ Import from `@fantastic.dev/better-stripe/react`. The package includes the
816
+ example's reusable checkout, payouts, refunds, disputes, accounts, onboarding,
817
+ products, subscriptions, billing, referrals, and admin/setup workflows.
790
818
 
791
- All components accept:
819
+ Use native unstyled markup, render props, or companion hooks with your own
820
+ design system. Bind authenticated server callbacks and query data in your app.
821
+ Supported workflows can select Stripe Connect embedded presentation; checkout
822
+ supports five integrations. No example router, persona provider, or CSS is required.
792
823
 
793
- - `theme?: Stripe.Appearance` -- Stripe Appearance API object for styling
794
- - `className?: string` -- outer wrapper styling
795
- - String props for i18n with English defaults (e.g., `submitLabel?: string`)
796
- - Standard React props (`children`, event handlers)
824
+ See [the React workflow guide](docs/react-workflows.md) for usage, the full
825
+ component/hook matrix, styling, data contracts, and Stripe integration limits.
826
+ Existing low-level components remain available below. Props vary by component;
827
+ Stripe iframe styling uses `appearance`, while custom markup uses render props
828
+ or the low-level component's `className`/label props.
797
829
 
798
830
  ### Provider
799
831
 
@@ -829,8 +861,8 @@ All components accept:
829
861
 
830
862
  ### Buyer Billing
831
863
 
832
- | Component | Description |
833
- | ------------------ | --------------------------------------------------------------------- |
864
+ | Component | Description |
865
+ | ------------------ | ------------------------------------------------------------------------------------------------------- |
834
866
  | `BuyerBillingView` | Per-store buyer billing view: subscriptions grouped by store, reusable saved card, embedded card update |
835
867
 
836
868
  An embedded-only billing surface for buyers: their subscriptions are grouped by
@@ -848,7 +880,9 @@ import {
848
880
  import { groupSubscriptionsByStore } from "@fantastic.dev/better-stripe";
849
881
 
850
882
  function BuyerBilling({ userId, customerAccount }: Props) {
851
- const subscriptions = useQuery(api.stripe.listSubscriptionsByUser, { userId });
883
+ const subscriptions = useQuery(api.stripe.listSubscriptionsByUser, {
884
+ userId,
885
+ });
852
886
  const { defaultMethod } = usePaymentMethods(customerAccount);
853
887
  const cancel = useMutation(api.stripe.cancelSubscription);
854
888
  const reactivate = useMutation(api.stripe.reactivateSubscription);
@@ -856,7 +890,10 @@ function BuyerBilling({ userId, customerAccount }: Props) {
856
890
  return (
857
891
  <BuyerBillingView
858
892
  // groupSubscriptionsByStore reused, not recomputed
859
- subscriptions={subscriptions?.map((s) => ({ ...s, id: s.stripeSubscriptionId }))}
893
+ subscriptions={subscriptions?.map((s) => ({
894
+ ...s,
895
+ id: s.stripeSubscriptionId,
896
+ }))}
860
897
  paymentMethod={defaultMethod}
861
898
  isLoading={subscriptions === undefined}
862
899
  onCancel={(sub) => cancel({ stripeSubscriptionId: sub.id })}
@@ -888,21 +925,21 @@ function BuyerBilling({ userId, customerAccount }: Props) {
888
925
 
889
926
  ### Payouts and Earnings
890
927
 
891
- | Component | Description |
892
- | ------------------- | ---------------------------------------------------------------------------------------------------------------- |
893
- | `PayoutSchedule` | Recipient balance + next-payout display, fed by a `balance` snapshot and `listPayouts` rows. Payouts are automatic/rolling — no manual-withdrawal action is offered. |
894
- | `EarningsSummary` | Gross / reversals & adjustments / net + latest payout, fed by `useEarnings(accountId)`. Reversals cover both deferred fee collection and refund/dispute clawbacks — not a pure fees figure, hence the "Reversals & adjustments" label rather than "Fees". |
895
- | `SplitBreakdown` | Per-sale store / affiliate / other / platform split lines, fed by `useSplitBreakdown`. The platform line reads "unknown" (not $0) when the hook wasn't given the sale amount. |
928
+ | Component | Description |
929
+ | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
930
+ | `PayoutSchedule` | Recipient balance + next-payout display, fed by a `balance` snapshot and `listPayouts` rows. Payouts are automatic/rolling — no manual-withdrawal action is offered. |
931
+ | `EarningsSummary` | Gross / reversals & adjustments / net + latest payout, fed by `useEarnings(accountId)`. Reversals cover both deferred fee collection and refund/dispute clawbacks — not a pure fees figure, hence the "Reversals & adjustments" label rather than "Fees". |
932
+ | `SplitBreakdown` | Per-sale store / affiliate / other / platform split lines, fed by `useSplitBreakdown`. The platform line reads "unknown" (not $0) when the hook wasn't given the sale amount. |
896
933
 
897
934
  ### Disputes (headless)
898
935
 
899
936
  The app-owned alternative to [Embedded Disputes](#embedded-disputes-stripe-connect) below — build a custom dispute UI on the read hooks and these components instead of Stripe's hosted ConnectJS components.
900
937
 
901
- | Component | Description |
902
- | ----------------- | ------------------------------------------------------------------------------------------------------------------ |
903
- | `DisputesList` | Sorted-by-deadline dispute list (soonest evidence due-by first, no-deadline last), fed by `useDisputes` |
904
- | `DisputeDetail` | Amount, reason, status, evidence-due countdown, and linked transfers for one dispute, fed by `useDisputeWithCountdown` |
905
- | `EvidenceForm` | Plain-language evidence form (product description, access activity, additional info, customer communication) that maps through `buildDisputeEvidence` before calling an app-wired `onUpdateDispute`; `stage()` saves a draft, `submit()` finalizes |
938
+ | Component | Description |
939
+ | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
940
+ | `DisputesList` | Sorted-by-deadline dispute list (soonest evidence due-by first, no-deadline last), fed by `useDisputes` |
941
+ | `DisputeDetail` | Amount, reason, status, evidence-due countdown, and linked transfers for one dispute, fed by `useDisputeWithCountdown` |
942
+ | `EvidenceForm` | Plain-language evidence form (product description, access activity, additional info, customer communication) that maps through `buildDisputeEvidence` before calling an app-wired `onUpdateDispute`; `stage()` saves a draft, `submit()` finalizes |
906
943
 
907
944
  ### Embedded Disputes (Stripe Connect)
908
945
 
@@ -911,8 +948,8 @@ views and responds to their own disputes via Stripe's embedded `disputes_list`
911
948
  / `payment_disputes` components, driven by the Account Session that
912
949
  `createDisputeSession` creates.
913
950
 
914
- | Component | Description |
915
- | ------------------ | ---------------------------------------------------------------------------------------------- |
951
+ | Component | Description |
952
+ | ------------------ | ----------------------------------------------------------------------------------------------- |
916
953
  | `ConnectProvider` | Initializes ConnectJS with your publishable key + an account-session fetcher |
917
954
  | `EmbeddedDisputes` | Mounts the embedded `disputes_list` (or `payment_disputes` when scoped via `payment`) component |
918
955
 
@@ -926,7 +963,10 @@ export const createDisputeSession = action({
926
963
  });
927
964
 
928
965
  // Seller disputes page (client side)
929
- import { ConnectProvider, EmbeddedDisputes } from "@fantastic.dev/better-stripe/react";
966
+ import {
967
+ ConnectProvider,
968
+ EmbeddedDisputes,
969
+ } from "@fantastic.dev/better-stripe/react";
930
970
 
931
971
  function SellerDisputes({ stripeAccountId }: { stripeAccountId: string }) {
932
972
  const createSession = useAction(api.stripe.createDisputeSession);
@@ -1098,8 +1138,8 @@ Async hook (scheduled action) --> App calls external APIs
1098
1138
 
1099
1139
  ### Package Entry Points
1100
1140
 
1101
- | Entry Point | Contents |
1102
- | -------------------------------------- | -------------------------------------------------------- |
1141
+ | Entry Point | Contents |
1142
+ | -------------------------------------------- | -------------------------------------------------------- |
1103
1143
  | `@fantastic.dev/better-stripe` | `BetterStripe` class, `registerRoutes`, TypeScript types |
1104
1144
  | `@fantastic.dev/better-stripe/react` | React hooks, headless UI components, formatting helpers |
1105
1145
  | `@fantastic.dev/better-stripe/testing` | Test fixtures, mock webhooks, `assertTestEnvironment` |
@@ -7,7 +7,7 @@ export declare function createCheckoutSession(stripe: Stripe, component: Compone
7
7
  orgId?: string;
8
8
  stripePriceId: string;
9
9
  mode: "payment" | "subscription" | "setup";
10
- uiMode?: "embedded" | "redirect";
10
+ uiMode?: "embedded" | "redirect" | "custom" | "form";
11
11
  quantity?: number;
12
12
  returnUrl: string;
13
13
  trialDays?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../../src/client/billing/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,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13 @@ export async function createCheckoutSession(stripe, component, ctx, opts) {
198
198
  }
199
199
  sessionParams.payment_intent_data = paymentIntentData;
200
200
  }
201
- if (uiMode === "embedded") {
202
- sessionParams.ui_mode = "embedded_page";
201
+ if (uiMode === "embedded" || uiMode === "custom" || uiMode === "form") {
202
+ sessionParams.ui_mode =
203
+ uiMode === "custom"
204
+ ? "elements"
205
+ : uiMode === "form"
206
+ ? "form"
207
+ : "embedded_page";
203
208
  sessionParams.return_url = opts.returnUrl;
204
209
  }
205
210
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"checkout.js","sourceRoot":"","sources":["../../../src/client/billing/checkout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAM1E,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;;;;;GAMG;AACH,SAAS,YAAY,CAAC,MAAmC;IAMvD,MAAM,IAAI,GAAG,CAAC,CAAU,EAAsB,EAAE,CAC9C,OAAO,CAAC,KAAK,QAAQ;QACnB,CAAC,CAAC,CAAC;QACH,CAAC,CAAC,CAAE,CAAwC,EAAE,EAAE,IAAI,SAAS,CAAC,CAAC;IAEnE,IAAI,MAAM,CAAC,IAAI,KAAK,cAAc,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,IAAI,CACtB,MAAM,CAAC,iBAAiB,EAAE,aAAa,EAAE,WAAW,CACrD,CAAC;QACF,IAAI,CAAC,WAAW;YAAE,OAAO,EAAE,CAAC;QAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;QAC9D,OAAO;YACL,UAAU,EAAE,aAAa;YACzB,oBAAoB,EAAE,WAAW;YACjC,GAAG,CAAC,GAAG,KA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