Commit graph

1361 commits

Author SHA1 Message Date
9e640d0802 Merge branch '8691/check_vm_templates' into 'master'
8691/check vm templates

See merge request ungleich-public/dynamicweb!744
2021-01-07 12:06:02 +01:00
PCoder
c58302d90e Log error messages 2021-01-07 16:30:48 +05:30
PCoder
1e67bef4f5 Remove unwanted code/comments 2021-01-07 16:30:33 +05:30
PCoder
ec13a71866 Reformat code 2021-01-07 16:29:34 +05:30
PCoder
6c968fdbb8 Redirect to dcl payment
We no longer seem to use hosting payment
2021-01-02 09:03:02 +05:30
PCoder
44ebb71916 Also clear id_payment_method from session 2021-01-02 09:02:37 +05:30
PCoder
8deed169ca Fix redirect url
Take user to virtual_machines page if the user ordered a VM
2021-01-01 11:13:02 +05:30
PCoder
36505db5a2 set default_payment_method 2021-01-01 01:35:59 +05:30
PCoder
9b84461a29 Add logger messages 2021-01-01 00:58:11 +05:30
PCoder
04003757dc Move log block to correct case 2021-01-01 00:43:28 +05:30
PCoder
e024a3a7a6 Do not create paymentintent for subscription 2021-01-01 00:34:35 +05:30
PCoder
2c3d00f03f Pass correct stripe_customer_id 2021-01-01 00:09:20 +05:30
PCoder
d8a674da3d Remove unwanted code + doc 2021-01-01 00:08:58 +05:30
PCoder
9524e03762 Pass user param with request dict 2021-01-01 00:08:33 +05:30
PCoder
a32a5af5a3 Add code to differentiate between subscription and non-subscription in js 2021-01-01 00:07:23 +05:30
PCoder
9faf897818 Formatting and documentation 2020-12-31 22:46:15 +05:30
PCoder
6e6a57b304 Refactor price to charge => amount_to_charge
This is a common variable between the generic onetime and
subscription
2020-12-31 22:45:05 +05:30
PCoder
7b71ba55f2 Rename token to id_payment_method 2020-12-31 22:43:50 +05:30
PCoder
d2ebd3c473 Do card association 2020-12-31 20:53:02 +05:30
PCoder
b36afcb828 Simplify code for logged in one-time payments with SCA 2020-12-31 20:35:31 +05:30
PCoder
a823efd8e2 Add get_available_payment_methods 2020-12-31 20:01:52 +05:30
PCoder
2f98294eab Store dicts as json in db 2020-12-31 17:12:17 +05:30
PCoder
52d1fb6a0e Add logger + return 200 on success of webhook 2020-12-31 16:27:12 +05:30
PCoder
87b85c43b4 More logger 2020-12-31 15:59:09 +05:30
PCoder
b2f0a45679 Add logger message 2020-12-31 15:56:08 +05:30
PCoder
98b5d03d0b Refactor code for do_provisioning_generic 2020-12-31 15:40:46 +05:30
PCoder
ba92c8e416 Do not pop billing address data from session in case of a payment failure
Instead pop id_payment_method
2020-12-31 11:05:32 +05:30
PCoder
42c9ec6f28 Handle js success/error messages 2020-12-31 10:32:25 +05:30
PCoder
c3286a68a5 Use payment method instead of token and PaymentIntent all over 2020-12-31 10:04:21 +05:30
PCoder
35cc9d4229 Log client secret 2020-12-24 20:07:31 +05:30
PCoder
e9c596de66 Test PaymentIntent for payment of generic onetime products 2020-12-24 20:03:46 +05:30
PCoder
ec1da8fbdf Use cents price for Stripe 2020-12-24 19:40:39 +05:30
PCoder
1c4f297775 Begin migrating to PaymentIntent 2020-12-24 19:34:06 +05:30
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
4962b72d1a Add logging message 2020-12-23 14:19:22 +05:30
PCoder
70c8ed6825 Add debugging messages 2020-12-23 14:12:30 +05:30