Commit graph

353 commits

Author SHA1 Message Date
PCoder
eefabe45b6 Login new users only for non-SCA generic subscription payments only 2020-12-23 20:41:31 +05:30
PCoder
968eaaf6a4 For generic payments, take users to invoice page after purchase 2020-12-23 20:40:20 +05:30
PCoder
6a7373523e Set default card before making payments 2020-12-23 20:39:41 +05:30
PCoder
080a45f39c Pop up stale card_id/token or billing_address_data in the paymentorder page 2020-12-23 20:38:42 +05:30
PCoder
c8519058c4 Fix new_user_hosting_key_id 2020-12-23 18:31:45 +05:30
PCoder
a03e2dc006 Return provisioning if set in do_provisioning 2020-12-23 18:10:17 +05:30
PCoder
c28bd9091a Add more logger 2020-12-23 17:53:19 +05:30
PCoder
c0aeac4dc7 Add some logger messages 2020-12-23 17:47:50 +05:30
PCoder
377d12b5a5 Create IncompleteSubscriptions only for SCA case 2020-12-23 17:47:37 +05:30
PCoder
d447f8d9e6 Add logging message 2020-12-23 17:26:40 +05:30
PCoder
a9778076d6 Clean session variables using real_request 2020-12-23 17:10:06 +05:30
PCoder
a99924b94c Rename do_create_vm to do_provisioning; and pass real_request 2020-12-23 17:09:27 +05:30
PCoder
41e993a3d9 Log variable value 2020-12-23 16:34:34 +05:30
PCoder
0c1b7b1885 Do clear session vars at the end 2020-12-23 14:33:32 +05:30
PCoder
480e38fbc9 Attempt fix for local variable 'card_details_dict' referenced before assignment 2020-12-23 14:19:52 +05:30
PCoder
70c8ed6825 Add debugging messages 2020-12-23 14:12:30 +05:30
PCoder
981e68aa4f Fix getting card_id and compare 2020-12-23 13:56:08 +05:30
PCoder
a4a5acd0e7 Fix string formatting issues 2020-12-23 13:46:34 +05:30
PCoder
812157b6c6 Move login code out of the refactored do_create_vm 2020-12-23 13:40:19 +05:30
PCoder
b1dd9988ce Add missing subscription_id param 2020-12-23 12:03:17 +05:30
PCoder
95a1b8fa20 Make complete_at allow null 2020-12-23 11:52:41 +05:30
PCoder
50d9eb1c50 Fix UnboundLocalError: local variable 'stripe_onetime_charge' referenced before assignment 2020-12-23 11:26:52 +05:30
PCoder
17c8f9ca18 Handle IncompleteSubscriptions in webhook 2020-12-23 10:59:21 +05:30
PCoder
c4c918d591 Prepare params from session to pass to do_create_vm 2020-12-23 09:26:01 +05:30
PCoder
20c6703236 Add a todo 2020-12-23 09:10:03 +05:30
PCoder
2a84d20f35 Add docstring 2020-12-23 09:09:53 +05:30
PCoder
9f49c664fa Make do_create_vm independent of session 2020-12-23 09:09:40 +05:30
PCoder
9e247cc556 Fix PEP warning 2020-12-23 09:08:08 +05:30
PCoder
ca7481cce0 Avoid request.user.is_authenticated() 2020-12-23 08:00:08 +05:30
PCoder
cda241893b Fix PEP warning 2020-12-23 07:57:54 +05:30
PCoder
cb7a1ed4f4 Implement provisioning of VM on invoice.paid webhook 2020-12-20 02:41:30 +05:30
PCoder
a63fac1a20 Set data at the client side according to success or error 2020-12-18 17:16:44 +05:30
PCoder
d0d5fb0196 Handle payment_intent requires SCA case 2020-12-18 16:47:45 +05:30
PCoder
0b0c932e5a Refactor code: show_error 2020-12-18 16:45:16 +05:30
PCoder
352c780287 Work in progress 2020-12-07 07:53:20 +05:30
PCoder
e9801eb9c4 Fix wrong logging 2020-12-03 09:48:08 +05:30
PCoder
81ec1125cb Capture both actions requires_action and requires_source_action 2020-10-11 17:21:15 +05:30
PCoder
4c7b9eaa52 Handle SCA in dcl flow 2020-10-11 17:11:20 +05:30
PCoder
676a358832 Add logger messages 2020-10-11 16:57:10 +05:30
PCoder
df301a18fc Set vat params 2020-07-21 22:23:07 +05:30
PCoder
bc69cc49e5 Move opennebula specific code to celery to make it asynchronous 2020-06-11 15:20:42 +05:30
PCoder
cb3ff73100 Filter out None case for discount's name 2020-03-25 18:47:00 +05:30
PCoder
9d96ecefea Remove unwanted import 2020-03-18 12:44:18 +05:30
PCoder
580960548e Merge tag '2.10.2' into branch-2.10.3b
Introduce base price for VMs and let admins add stripe_coupon_id
2020-03-18 12:05:57 +05:30
PCoder
b44a7f98b5 Use username instead of email when creating VM 2020-03-05 15:55:44 +05:30
PCoder
e2c86116b2 Use username for opennebula related tasks 2020-03-05 15:27:18 +05:30
PCoder
dd2eae68e6 Use math round to round amount to 2 decimal places 2020-02-04 11:20:17 +05:30
PCoder
e322e58246 Use appropriate stripe_coupon_id 2020-02-04 09:06:10 +05:30
PCoder
b103cff0a6 Dont round_up discount (is obtained from subtraction) 2020-02-01 13:54:29 +05:30
PCoder
c43afb7c59 Use round_up method 2020-02-01 13:47:29 +05:30