Commit graph

388 commits

Author SHA1 Message Date
Samuel Clay
0074cf2b53 Showing db error on Profile table 2022-02-16 15:40:51 -05:00
Samuel Clay
17809c4420 Don't cancel paypal subscription on stripe cancelation, only on new active stripe sub. 2022-02-16 13:43:53 -05:00
Samuel Clay
67fd848c5f Bouncing between subscriptions now works in all cases. No proration when switching payment providers though. 2022-02-16 13:27:56 -05:00
Samuel Clay
8dc3573b7d Adding active_provider field to profile to capture most recent payment provider in order to show correction options on feedchooser/premium dialog. Paypal now upgrades, just need to write messaging stating switches should happen at rewewal. 2022-02-16 09:20:43 -05:00
Samuel Clay
01ad0e8656 Paypal refunds are now working. Need to add partial balances when upgrading tiers on paypal. Eventually need to think about refunds for switching providers. 2022-02-10 13:40:07 -05:00
Samuel Clay
0a2a9607f0 Canceling paypal subscriptions correctly. Now need to test switching between the two flawlessly and ensure messaging is always consistent. Also needs refunds. 2022-02-09 12:26:35 -05:00
Samuel Clay
403af0a486 Payments are now reliably going through. Now to handle cancelations adn refunds with the new paypal api. 2022-02-08 21:16:12 -05:00
Samuel Clay
aab86a60d9 Store all seen paypal subscriber ids so we can cancel the second newest one when turning on a new subscription. 2022-02-08 20:56:23 -05:00
Samuel Clay
0dc315b568 Adding paypal ids. Still needs to save old paypal ids when new ones come in. 2022-02-08 18:40:07 -05:00
Samuel Clay
a1517b6266 Adding paypal sub id and paypalrestsdk library. Paypal has what it needs, now to hook up the API which is still unauthorized. 2022-02-08 12:49:40 -05:00
Samuel Clay
c18c16a0c3 Turning off shipping, adding user_id to subscription, and upgrading user. Now need renewals and cancellations. 2022-02-04 17:10:23 -05:00
Samuel Clay
6615745aac Showing next invoice. 2022-01-26 15:51:26 -05:00
Samuel Clay
cebce60096 Cleaning up premium renewal. Needs workflow between upgrading/downgrading plans. 2022-01-26 10:53:56 -05:00
Samuel Clay
26ce1b3e6b Invociing immediately on pro-rated plan switch. 2022-01-25 17:47:46 -05:00
Samuel Clay
07fe59cb57 Upgrading subscriptions with stripe now works, even pro-rated. Need to hook up Paypal and fix all billing inconsistencies. 2022-01-25 17:26:24 -05:00
Samuel Clay
813f5dec9f Adding premium_renewal profile field to track premium cancellations. 2022-01-25 16:08:56 -05:00
Samuel Clay
b0f1c5b91b Renaming stripe checkout 2022-01-24 17:33:11 -05:00
Samuel Clay
1b9a6f54d5 Activating premium archive subscription. 2022-01-24 17:23:25 -05:00
Samuel Clay
31936eec4e Using stripe customer if present. 2022-01-24 16:27:37 -05:00
Samuel Clay
2792e7305a Syncing redis on premium upgrade to sync new unread date possibilities for archive users. 2022-01-13 16:56:30 -05:00
Samuel Clay
1dd921fa61 Adding DAYS_OF_UNREAD_ARCHIVE and updating all the upread_cutoff's I could find. Doesn't seem to work yet when marking an older story as unread, but there's probably a line somewhere that's preventing the unread from working. 2022-01-13 14:55:44 -05:00
Samuel Clay
f615fccdad Coutning archive and pro premiums correctly. 2022-01-11 15:56:19 -05:00
Samuel Clay
5d0c9e0b27 Adding email for new premiums, though not done. 2022-01-11 13:43:38 -05:00
Samuel Clay
cab90d6ace Adding archive premium accounts. 2022-01-11 10:59:45 -05:00
Samuel Clay
db2a87df06 Counting pro subscribers. 2022-01-10 17:00:27 -05:00
Samuel Clay
66863653aa Adding is_pro field to Profile, also making a bunch of null/blank ALTER TABLE migrations and seeing how long they take to apply to a staging prod db. 2022-01-10 16:07:49 -05:00
Samuel Clay
19b3d271e4 Fixing missing paypal subscribers signal. 2021-08-03 16:04:56 -04:00
Samuel Clay
0de1c8ecfc Canceling second most recent Paypal subscription that does not match the current subscription. This is confusing for users as they get a 'NewsBlur canceled your subscription' email from Paypal when in fact NewsBlur canceled the old subscription. Can subscriptions change their subscr_id? If I cancel one, do I cancel the other? 2021-04-30 13:19:25 -04:00
Samuel Clay
f238bc7b5c Wrong Stripe exceptions. 2021-04-29 15:25:02 -04:00
Samuel Clay
38b679b22b Upgrading stripe charges API 2021-04-20 15:24:39 -04:00
Samuel Clay
b561ce756b Fixing issue with dashboard river folder not being changeable or selectable. 2021-04-07 15:32:17 -04:00
Samuel Clay
ba34e7c7ed Attempting to not allow multiple rivers to be created. 2021-03-25 20:18:41 -04:00
Samuel Clay
394910e4b0 Attempting to not allow multiple rivers to be created. 2021-03-25 20:17:13 -04:00
Samuel Clay
c5eeb9b101 Dont have a line if not necessary. 2021-03-25 16:29:42 -04:00
Samuel Clay
82cc26cd07 Handling missing position. 2021-03-25 16:28:50 -04:00
Samuel Clay
a6a6e7e957 Updating Stripe email when updating user email. 2021-03-22 10:25:14 -04:00
Samuel Clay
fc61ffd9dc Fixing stripe subscription cancellation. 2021-03-19 17:55:48 -04:00
Samuel Clay
5506e99e9a Merge branch 'master' into dashboard3
* master:
  Don't cancel second most recent paypal subscription because it may be the current subscription.
2021-03-02 17:59:59 -05:00
Samuel Clay
9f8f7d39cd Don't cancel second most recent paypal subscription because it may be the current subscription. 2021-03-02 17:59:50 -05:00
Samuel Clay
0fda7644f9 Fixing bug in subscription cancellation using latest stripe api. 2021-02-25 10:32:10 -05:00
Samuel Clay
0a9cc47f80 Fixing error conditions when creating dashboard rivers. 2021-02-05 17:29:55 -05:00
Samuel Clay
ab9a317793 Handling missing user. 2021-02-05 17:18:29 -05:00
Samuel Clay
5d08e2b03f This unique index should prevent the issue where multiple dashboard rivers occupy the same spot. This unique index should prevent the issue where multiple dashboard rivers occupy the same spot. May require deleting all rivers." 2021-02-05 17:15:43 -05:00
Samuel Clay
f9b7bbcd6e Merge branch 'master' into dashboard3
* master:
  Adding a preference to notification title only.
  Adding in preference to only send full title in iOS notifications.
  Forgot primary state
  Adding replset oplog timing to db monitor.
2021-02-01 15:01:58 -05:00
Samuel Clay
615819eff5 Adding in preference to only send full title in iOS notifications. 2021-02-01 14:00:04 -05:00
Samuel Clay
0af696df90 Handling new Stripe api errors. 2021-01-26 17:55:51 -05:00
Samuel Clay
3cc8efa10f Fixing stripe api on refunds. 2021-01-26 12:23:16 -05:00
Samuel Clay
6b7ccbb335 Merge branch 'master' into dashboard3
* master:
  Use email if username doesnt work.
2021-01-23 18:01:31 -05:00
Samuel Clay
be26dbcd22 Use email if username doesnt work. 2021-01-23 18:01:19 -05:00
Samuel Clay
6badcaf294 Removing old types field. Needed to upgrade to mongo 3.4. 2021-01-23 16:48:13 -05:00