Commit Graph

36 Commits

Author SHA1 Message Date
PCoder 665c327fc5 Supply interval param for creating the subscription
{month, year} work; needs testing for others
2019-09-19 15:13:56 +05:30
PCoder 5201b9a443 Rename duration -> period and remove recurring_duration_units 2019-09-19 11:34:27 +05:30
PCoder d45c953eae Add parsedatetime to pipenv 2019-09-19 11:00:00 +05:30
PCoder b93aefa607 Add minimum_subscription_duration to recurring products 2019-09-19 10:54:11 +05:30
PCoder 5e4b105b97 Fix bug: access wrong key 2019-09-15 13:07:57 +05:30
PCoder 6c2183a6c8 Improve the details in products that we show 2019-09-15 13:05:14 +05:30
PCoder 9b8a9c563a Handle None when all stripe plans are empty 2019-09-14 23:13:30 +05:30
PCoder 44a68f88d8 Deactivate port if not set 2019-09-14 22:58:11 +05:30
PCoder 0a6db9ebc0 Handler /order/list 2019-09-14 22:46:43 +05:30
PCoder 98a25361ea Put client orders properly 2019-09-14 22:31:23 +05:30
PCoder 591eaadea2 Fix bug: forgot cast to string 2019-09-14 22:16:37 +05:30
PCoder c2514cd5b5 Add code to subscribe user to recurring subscriptions 2019-09-14 21:57:35 +05:30
PCoder 9c210ae2e4 Fix bugs: gettings all plans and putting them back to db 2019-09-14 21:56:54 +05:30
PCoder eb241c8b85 Improve logging 2019-09-14 21:56:08 +05:30
PCoder c3467d98d8 Add/delete Stripe plans 2019-09-14 18:32:26 +05:30
PCoder 5749b644ee Detect one time or recurring product 2019-09-14 17:42:10 +05:30
PCoder e32baf65a0 Rename ucloud-pay to ucloud_pay 2019-09-14 16:08:26 +05:30
PCoder 14067de378 Code reformatting 2019-09-14 13:51:04 +05:30
PCoder 97743f1346 Use get instead of get_prefix to obtain the desired product 2019-09-14 13:50:00 +05:30
PCoder a7ba9669f8 Implement validate product 2019-09-14 13:39:30 +05:30
PCoder 77dd6cb14e Indent 2019-09-14 13:33:53 +05:30
PCoder fefc1947e2 Add basic flow for ProductOrder 2019-09-14 13:33:23 +05:30
PCoder c83c7720b3 Forbid unwanted realms from add products 2019-09-14 13:19:22 +05:30
PCoder 73a7d9dc8b Add uuid to identify products 2019-09-14 12:48:19 +05:30
PCoder 15911872f3 Simplify logic and log everything 2019-09-14 12:28:28 +05:30
PCoder ba9961a01a Add card exists method 2019-09-14 12:28:03 +05:30
PCoder 0359eb22f9 Create a fresh token to avoid issue with reuse of tokens
(doesn't work well entirely -> creates duplicate cards)
2019-09-14 01:14:02 +05:30
PCoder 77c1ca76fa Borrow stripe_utils from dynamicweb
(avoid reinventing the wheel)
2019-09-14 00:50:45 +05:30
PCoder 8cc568f736 Add otp validation + handle key error for add product 2019-09-14 00:48:30 +05:30
PCoder e1f9db5479 Fix errors in --register-payment 2019-09-14 00:43:27 +05:30
PCoder 5b7e7a4606 Add UserRegisterPayment + check_otp 2019-09-13 23:38:48 +05:30
PCoder 153f339383 Obtain STRIPE_API_PRIVATE_KEY from config 2019-09-13 23:37:53 +05:30
PCoder 7f750a6c39 Add pyotp, requests and stripe 2019-09-13 23:37:25 +05:30
PCoder 85c9c4bacc Supply app port via config 2019-09-13 12:07:53 +05:30
PCoder 320ba43cdd Update Pipfile to obtain etcd3_wrapper from pypi 2019-09-13 11:40:10 +05:30
PCoder 48e012a131 Initial commit 2019-09-13 10:32:23 +05:30