45 Commits

Author SHA1 Message Date
austinkelsay
5d884cf2b6
update and unify modals into generic component 2025-05-14 14:43:01 -05:00
austinkelsay
2b10e74d35
update subscriptions frontend and backend to support both monthly and yearly subscriptions, tested minimally 2025-05-14 13:30:19 -05:00
austinkelsay
074de680df
prevent race conditions in BitcoinConnect initialization by memoizing promise, clean up some logs 2025-05-13 11:47:00 -05:00
Austin Kelsay
3583379468
Update src/components/bitcoinConnect/SubscriptionPaymentButton.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-05-13 11:39:11 -05:00
austinkelsay
3ec3f69ae6
update Bitcoin Connect integration to use client-based approach and direct SDK for NWC operations 2025-05-13 11:22:43 -05:00
austinkelsay
5dd71c3de0
started on bitcoinconnect update 2025-05-13 11:22:42 -05:00
austinkelsay
a090898fad
lint everything lmao 2025-04-02 17:47:30 -05:00
austinkelsay
7d176decfc
Handle fallback for component already initialized 2025-03-28 10:34:59 -05:00
austinkelsay
c760de1a9d Add memo with user id and content id when there are purchases or subscriptions 2025-03-02 17:28:40 -06:00
austinkelsay
410ee763cd
Fix 0 amount invoice bug 2024-12-23 16:21:00 -06:00
austinkelsay
a08d6a7af3
Fix onchange for discount code 2024-12-23 15:06:30 -06:00
austinkelsay
117161e2d5
Code analytics event 2024-12-23 15:05:06 -06:00
austinkelsay
f440b18bd5
course code 2024-12-23 15:00:54 -06:00
austinkelsay
da5484eca5
Lower subscription cost 2024-12-03 11:26:40 -06:00
austinkelsay
77337b8019
fix onchange for course discount code 2024-11-26 16:00:10 -06:00
austinkelsay
93d0dc9b31
Clean up test again, it seems to work 2024-11-26 15:44:12 -06:00
austinkelsay
9e8e355ae8
Start on discount code impl, keep it single and hardcoded and simple at first 2024-11-26 15:32:25 -06:00
austinkelsay
aaeb5de1fe
Take invoice out of track for now since it is too long of string 2024-11-15 18:43:06 -06:00
austinkelsay
4cc94de801
Remove console logs 2024-11-14 16:12:25 -06:00
austinkelsay
18b1271326
Set real subscription price and recurring cron job 2024-11-14 13:23:05 -06:00
austinkelsay
36be3bdc12
Middleware for nip05, fix for sidebar navigation to conent all 2024-11-09 12:09:30 -06:00
austinkelsay
034680a0a1
Random styling fixes, param for user id on track calls, params on calendly embed, add favicon 2024-11-05 12:29:16 -06:00
austinkelsay
44f5af5061
Add author view buttons back into video details, mobile style fixes for course and resource payment buttons 2024-10-18 14:14:17 -05:00
austinkelsay
d23e98f535 tracking events for new signups, course, resource, and subscription payments 2024-10-06 15:39:53 -05:00
austinkelsay
c33aecea5c Update cron to be one day 25 sats to test recurring subscriptions 2024-10-06 14:44:20 -05:00
austinkelsay
129cbd02e2 Fix authorize function 2024-10-05 16:37:44 -05:00
austinkelsay
3a18a41404 subscription button optional layout for renew modal 2024-09-25 20:57:14 -05:00
austinkelsay
a0a9b9fcc8 Improvements to progress spinners, fixed resource and course payment buttons to not have to fetch invoice until button is pressed 2024-09-17 13:28:58 -05:00
austinkelsay
5bb89c4c35 Good stuff 2024-09-15 15:53:27 -05:00
austinkelsay
cf1f1d73c3 New content templates and content details components 2024-09-12 17:39:47 -05:00
austinkelsay
aaedada2ca Standardized and improved payment messages on paid courses and resources 2024-09-12 09:17:22 -05:00
austinkelsay
aaad0d9931 Fix small issue with subscription button flows, got started on paid course cleanup 2024-09-10 18:15:12 -05:00
austinkelsay
7c8273d663 Added generic button 2024-09-10 15:44:08 -05:00
austinkelsay
c54f0cfed2 frontend tab changes 2024-09-04 17:09:46 -05:00
austinkelsay
e69d974ad7 Added basic cron job, endpoint, and vercel setup just wrong intervals right now, also added admin and subscriptionExpiredAt into Role schema so I can show user a special message after their subscription expired 2024-09-01 12:40:25 -05:00
austinkelsay
fb02ea79af Made it prettier 2024-08-31 21:52:50 -05:00
austinkelsay
c6c6fc4fbd implementation of pay as you go and recurring subscriptions on the frontend is fully working, just need the cron endpoint now. 2024-08-31 18:18:21 -05:00
austinkelsay
c8870bc1ff pay as you go subscriptions working and recurring subscriptions flow is halfway done, had to change schema. 2024-08-30 19:37:13 -05:00
austinkelsay
d1c121e6e8 Allow both drafts and published resources to make it into course draft, seperated selectedContentItem in course form into its own component 2024-08-18 14:45:51 -05:00
austinkelsay
054adf6869 Improved payment buttons 2024-08-17 16:29:37 -05:00
austinkelsay
cee1679a8b Paid course creation, got started on rendering paid course details 2024-08-16 18:00:46 -05:00
austinkelsay
a85f0505d2 Moved resourceDetails with payment flow into it's own component, cleaned up a bit 2024-08-13 13:19:22 -05:00
austinkelsay
7808a88258 Payment flow for resources works 2024-08-12 17:27:47 -05:00
austinkelsay
573f560f28 Progress on payment flow, added purchases endpoint 2024-08-11 19:10:08 -05:00
austinkelsay
42a9d243ca Start of individual content payment flow 2024-08-09 19:00:31 -05:00