Commit graph

213 commits

Author SHA1 Message Date
Samuel Clay
13ac3535d0 Refreshing unread counts when changing days_of_unread. 2022-07-07 21:44:57 -04:00
Samuel Clay
6ed33a5a65 Stripe should consider active subscription that have bene canceled as still active. 2022-07-02 10:53:24 -04:00
Samuel Clay
e566ec03e9 Python imports don't always work when overly composed. 2022-07-01 15:39:20 -04:00
Samuel Clay
add08159dc Wrapping paypal ipn in an assertionerror check because sometimes paypal sends webhooks to ipn endpoint. 2022-07-01 15:04:56 -04:00
Samuel Clay
932b4a489c Attempting two paypal fixes, one where ipns are sent to webhooks, and the other where webhooks are sent to ipns. 2022-07-01 12:17:14 -04:00
Samuel Clay
4b0a599a03 Removing stories outside a mark read date cutoff. Also slightly optimizing a check for old unread stories by checking existance instead of zrevrange -1 -1. 2022-06-24 18:12:00 -04:00
Samuel Clay
5e70a09e7c Handling missing paypal custom_id field when suspending subscriptions. 2022-06-21 10:13:39 -04:00
Samuel Clay
8a5748fa37 Adding # of stories per dashboard module. Also fixing long-standing double load bug on initial page load. Fixed issues around phantom read stories popping in and out of existance on page load. 2022-05-16 17:21:46 -04:00
Samuel Clay
ac593494db Sending all of a user's feeds through the archive fetcher to fill out their backfill, then email them the new stories. 2022-04-18 13:29:13 -04:00
Samuel Clay
7d2a5cd206 Adding proration messaging to upgrades. I believe payments are finally done. 2022-04-08 16:08:06 -04:00
Samuel Clay
8712e57d6a Refunding premium archive accounts that recently used paypal, as a means of prorating their upgrade. This may accidentally cancel subscriptions it shouldn't, but we'll find out. 2022-04-08 15:07:58 -04:00
Samuel Clay
b90501d955 Adding a paypal archive return page. Also redrawing when premium expire/renewal status changes on payment fetch in account dialog. 2022-04-06 15:56:13 -04:00
Samuel Clay
e44ed2b46b Merge branch 'master' into pro
* master:
  Rearranging urls for paypal. Also updating to latest gunicorn.
  Pulling latest docker image in a separate task.
2022-04-04 15:42:19 -04:00
Samuel Clay
f40854bd8b Rearranging urls for paypal. Also updating to latest gunicorn. 2022-04-04 15:40:04 -04:00
Samuel Clay
38d2341a6c Updating premium archive email. 2022-03-17 16:54:40 -04:00
Samuel Clay
50d107d897 Adding credit cards to premium upgrade, handling paypal first before stripe payments, and posibly cleaning up how many premium histories we scrub. 2022-02-16 17:11:08 -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
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
2ce93043b9 Typo on return url 2022-01-27 12:33:37 -05:00
Samuel Clay
76e2eabda5 With this, all Stripe billing is complete. Subscribe, switch plans, upgrade plans, proration, and cancel plans all work now. Need to hookup Paypal and send upgrade emails. 2022-01-26 16:21:24 -05:00
Samuel Clay
6615745aac Showing next invoice. 2022-01-26 15:51:26 -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
71b9b2f3d8 Paypal/stripe return needs user profile for JS. 2022-01-25 10:26:45 -05:00
Samuel Clay
31936eec4e Using stripe customer if present. 2022-01-24 16:27:37 -05:00
Samuel Clay
8140df0d7b Directing to plan-adjusted stripe checkout. Needs billing. 2022-01-21 17:27:36 -05:00
Samuel Clay
d9276d5e82 Preparing Stripe Checkout. 2022-01-21 16:41:22 -05:00
Samuel Clay
0baaa951b9 Adding preference for changing days of unreads. Need to kick off a re-counter on preference change. 2022-01-18 12:40:49 -05:00
Samuel Clay
f238bc7b5c Wrong Stripe exceptions. 2021-04-29 15:25:02 -04:00
Samuel Clay
ef7c46a686 Handling new Stripe api errors. 2021-01-26 12:24:24 -05:00
Samuel Clay
8cf070a72d Merge branch 'master' into dashboard3
* master:
  Removing old types field. Needed to upgrade to mongo 3.4.
  Checking if a feed has any notifications on it, set a max of 30 min fetch (yes this is a pretty good way of getting your feeds to fetch faster, but youll have to deal with the notifications).
  Fix task fetch monitor.
  Attempting to see iOS premium status over email.
  Handling work queue missing error.
2021-01-23 17:55:01 -05:00
Samuel Clay
6f9dbded8e Attempting to see iOS premium status over email. 2021-01-20 21:28:01 -05:00
Samuel Clay
6e07dbaf0f Merge branch 'master' into docker_django3.1
* master: (22 commits)
  Whoops
  Better logging for broken paypal ipns.
  Adding RSS Tracker for Windows to Goodies.
  Refactoring socketio so real-time works around username restrictions.
  Socket.IO v3 on the server too.
  Switching to Socket.IO v3.
  Haproxy splitting for socketio 3
  Socket.io 3
  Handling missing feed.
  Only nb.local.com uses ports for websockets.
  Adding GrazeTEN
  Full node install on setup.
  Updating toprc
  Changing mongodb server.
  Fixing toprc
  Attempting to collect queries for 1% of requests by using DEBUG.
  Fixing mongo install.
  Recalculating premium expiration to take into account forced expirations after gifts.
  Fixing never expire -> 1 year
  Adding 1 year expire to admin.
  ...
2021-01-05 19:12:19 -05:00
Samuel Clay
49e058d9fa Fixing never expire -> 1 year 2021-01-03 14:05:17 -05:00
Samuel Clay
83d7357306 Adding 1 year expire to admin. 2021-01-03 13:59:33 -05:00
Samuel Clay
8371c635f7 Merge branch 'master' into django2.0
* master: (27 commits)
  Removing log override
  Moving logging over to the newsblur log.
  Fixing search indexer background task for new celery.
  Attempting to add gunicorn errors to console/log.
  Better handling of missing subs.
  Handling missing user sub on feed delete.
  Correct encoding for strings on systems that don't have utf-8 as default encoding.
  Writing in the real urllib3 dependency for requests.
  Upgrading requests due to urllib3 incompatibility.
  Login required should use the next parameter.
  Upgrading django oauth toolkit for django 1.11.
  Handling newsletters with multiple recipients.
  Extracting image urls sometimes fails.
  Handling ajax errors in json views.
  Adding timeouts to most outbound requests.
  Sentry SDK 0.19.4.
  Removing imperfect proxy warning for every story.
  Found four more GET/POST crosses.
  Feed unread count may need a POST.
  Namespacing settings.
  ...
2020-12-08 09:09:25 -05:00
Samuel Clay
aff7d09962 Attempting to add gunicorn errors to console/log. 2020-12-07 13:55:28 -05:00
Samuel Clay
d0ca50d9d6 Login required should use the next parameter. 2020-12-07 11:42:23 -05:00
Samuel Clay
b89e7dc429 Merge branch 'django1.11' into django2.0
* django1.11: (152 commits)
  request.raw_post_data -> request.body (django 1.6)
  Upgrading pgbouncer to 1.15.0.
  Finishing off Postgresql 13 upgrade.
  Upgrading to Postgresql 13.
  Ubuntu 20.04
  Fixing supervisor path issues
  Upgrading setuptools
  Fixing flask
  Handling over capacity for twitter.
  Max length for image_urls.
  Properly filtering newsletter feeds.
  Fixing issue with text importer on feed-less urls.
  Removing dependency, fixing encoding issue for pages.
  Fixing DB Monitor.
  Updating User Agent for all fetchers.
  Ignoring VSCode.
  Fixing DB Monitor.
  Updating User Agent for all fetchers.
  Ignoring VSCode.
  Fixing Statistics by fixing how timezones are handled.
  ...
2020-12-03 14:04:26 -05:00
Samuel Clay
c257074036 Fixing both Stripe form and Login form. 2020-11-13 21:14:41 -05:00
Samuel Clay
8427be6862 Upgrading Sentry API 2020-11-13 11:18:18 -05:00
Samuel Clay
fd562bf397 Merge branch 'django1.9' into django1.10
* django1.9:
  Datetime needs to evaluate.
  Testing backups.
  Fixing missing Android receipt.
  Adding controls to twitter videos.
2020-11-12 15:40:21 -05:00
Samuel Clay
f7e74b13d2 Merge branch 'django1.7' into django1.8
* django1.7:
  Datetime needs to evaluate.
  Testing backups.
  Fixing missing Android receipt.
  Adding controls to twitter videos.
2020-11-12 15:39:23 -05:00
Samuel Clay
df587a8268 Merge branch 'django1.6' into django1.7
* django1.6:
  Datetime needs to evaluate.
  Testing backups.
  Fixing missing Android receipt.
  Adding controls to twitter videos.
2020-11-12 15:39:14 -05:00