Commit graph

55 commits

Author SHA1 Message Date
0ea2a68142 Fixed order in which AUTH Token is generated 2019-12-03 18:45:45 +05:00
PCoder
4c916072c3 Update Changelog 2019-10-13 09:17:38 +05:30
PCoder
1897cc087c Handle config not set cases more gracefully 2019-10-13 09:08:40 +05:30
PCoder
ab1714e733 Update Changelog 2019-09-19 22:00:54 +05:30
PCoder
8da25be8b8 Show minimum_subscription_period only for recurring products 2019-09-19 21:24:33 +05:30
PCoder
72d651ea76 Improve the price shown to user 2019-09-19 21:11:42 +05:30
PCoder
671ec75584 Handle one-time payment 2019-09-19 21:08:20 +05:30
PCoder
4c31e40411 Update changelog 2019-09-19 17:32:05 +05:30
PCoder
ffda97ca8c Remove unwanted logging + improve the order key 2019-09-19 17:23:12 +05:30
PCoder
3dab0efcd6 Correct product_id
It was containing the entire dir /v1/...
2019-09-19 17:13:42 +05:30
PCoder
dd5da3b234 Add Changelog 2019-09-19 16:15:39 +05:30
PCoder
9f0405b299 Correct script name 2019-09-19 15:58:01 +05:30
PCoder
5e8fb30405 Update README.md 2019-09-19 15:56:39 +05:30
PCoder
7ec5831f9b Add env.sample 2019-09-19 15:36:01 +05:30
PCoder
56725af770 Refactor + improve order list 2019-09-19 15:22:41 +05:30
PCoder
2c1a9986f4 Use refactored method + improved ordered_at time shown to user 2019-09-19 15:22:09 +05:30
PCoder
ca41a9bcab Use the user's name instead of asking email 2019-09-19 15:19:53 +05:30
PCoder
497c535de1 Add product_id/create_at/created_by fields for product 2019-09-19 15:18:18 +05:30
PCoder
9ed0fdf468 Add get_user_friendly_product 2019-09-19 15:15:19 +05:30
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