Commit Graph

636 Commits

Author SHA1 Message Date
fnux 4cc19e1e6e Remove legacy credit card support 2020-03-05 11:39:48 +01:00
fnux 08bf7cd320 Add STRIPE_PUBLIC_KEY setting 2020-03-05 11:39:48 +01:00
fnux 7e9f2ea561 Cleanup/reorder uncloud_pay views 2020-03-05 11:39:48 +01:00
fnux 929211162d Replace legacy Stripe Charge API by Payment{setup, intent} 2020-03-05 11:39:48 +01:00
Nico Schottelius cf17373b3f Fix ahmed introduced migrations
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-05 11:35:00 +01:00
Nico Schottelius 14a4fa8cc1 Merge remote-tracking branch 'ahmed/migrate-one-to-regular-vm' 2020-03-05 11:34:15 +01:00
Nico Schottelius 4fc1c36ae9 fix incorrect migrations from fnux-stable branch
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-05 11:17:30 +01:00
fnux 371c5ccf00 Merge remote-tracking branch 'origin/fnux-hacks' 2020-03-04 12:12:22 +01:00
fnux faca104459 Fix stripe import in uncloud_pay.models 2020-03-04 11:05:21 +01:00
fnux 9e8149135b Move bill generation logic to Bill class, initial work for prepaid 2020-03-04 10:55:12 +01:00
ahmadbilalkhalid 02b287eff8 small cleaning 2020-03-04 14:44:41 +05:00
fnux 9aabc66e57 Pay: move some model-related methods from helpers to models
Otherwise we end up in circular dependency hell
2020-03-04 09:39:18 +01:00
ahmadbilalkhalid a662b1fe29 Make migrate-one-vm-to-regular command idempotent 2020-03-04 13:25:46 +05:00
ahmadbilalkhalid 88c10e2e4a improve readability 2020-03-03 23:53:45 +05:00
ahmadbilalkhalid fea0568bb9 init commit 2020-03-03 23:46:39 +05:00
fnux e0cb6ac670 Allow for charging customers 2020-03-03 18:16:25 +01:00
Nico Schottelius ebc9238845 recreate all migrations
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-03 17:50:52 +01:00
fnux 94a39ed81d Properly wire stripe card to payment methods 2020-03-03 16:56:42 +01:00
fnux 5c2d2a5b94 Document relations for Orders and Managed Services 2020-03-03 13:14:51 +01:00
Nico Schottelius e9ef2acb06 Add readme for objects 2020-03-03 12:15:05 +01:00
fnux 3846e49395 Fix migration issue introduced in previous merge 2020-03-03 11:40:37 +01:00
fnux a849e642dd Merge remote-tracking branch 'origin/master' into fnux-hacks 2020-03-03 11:36:08 +01:00
fnux 28407bf3e3 Quickly document OrderRecord class 2020-03-03 11:34:47 +01:00
Nico Schottelius ea00e81b1e Move all stripe stuff to stripe.py 2020-03-03 11:31:32 +01:00
fnux 53baf0d9f3 Fix typo in BillRecord 2020-03-03 11:29:57 +01:00
fnux 11e22f5001 Consistently use one_time_price instead of setup_fee 2020-03-03 11:27:35 +01:00
Nico Schottelius e176ad0817 Remove second stripe key definition 2020-03-03 11:26:16 +01:00
Nico Schottelius a50095f873 Merge remote-tracking branch 'origin/fnux-stable'
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-03 11:23:29 +01:00
fnux a40da40169 Add recurring_count to bills 2020-03-03 11:15:48 +01:00
fnux 2eaaad49db Handle setup fee in bills 2020-03-03 10:59:21 +01:00
fnux 9fdf66ed74 Fix MatrixService ordering 2020-03-03 10:51:16 +01:00
fnux b31aa72f84 Allow to select billing period when registering VM 2020-03-03 10:14:56 +01:00
fnux 5559d600c7 Move things around for readability in uncloud_pay models and serializer 2020-03-03 09:13:04 +01:00
fnux 4e51670a90 Expand recurring period billing logic for DD/MM/hh/month 2020-03-03 08:53:19 +01:00
fnux 4ad737ed90 Initial stripe playground 2020-03-02 22:29:50 +01:00
fnux c651c4ddaa Cleanup a bit BillRecord 2020-03-02 16:41:49 +01:00
ahmadbilalkhalid 531bfa1768 actual thing name is replaced by pseudo names 2020-03-02 19:20:12 +05:00
ahmadbilalkhalid 750d8c8cbf Use fictional hostname for VMHost 2020-03-02 17:42:54 +05:00
ahmadbilalkhalid 0c3e6d10ae Indentation/Spacing fixes 2020-03-02 17:20:30 +05:00
ahmadbilalkhalid afdba3d7d9 Remove duplicate code 2020-03-02 17:17:30 +05:00
ahmadbilalkhalid 52e74c22cc Merge branch 'nico/meow-pay-master' into HEAD 2020-03-02 17:05:23 +05:00
ahmadbilalkhalid 6c9c63e0da Add sample clean() for model + Add tests for uncloud_vm 2020-03-02 16:54:36 +05:00
fnux 9e9018060e Wire order records to bills, fix user balance 2020-03-02 10:46:04 +01:00
fnux 9e253d497b Wrap VM creation in database transaction 2020-03-02 09:30:51 +01:00
fnux 81bd54116a Add records to orders 2020-03-02 09:25:03 +01:00
fnux 8e41b894c0 Add OrderRecord model 2020-03-02 08:09:42 +01:00
Ahmed Bilal 3228b91038 Merge branch 'master' into 'master'
Merge nico/meow-pay into ahmedbilal/meow-pay

See merge request ahmedbilal/meow-pay!7
2020-03-02 07:17:04 +01:00
Ahmed Bilal 028fd6789f ++cleanup
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-02 07:17:04 +01:00
fnux 4f25086a63 Only generate bill if no overlap 2020-03-01 15:47:27 +01:00
fnux be2b0a8855 Fix a few errors on preview billing rework
Another WIP commit to sync with laptop, do not forget to rebase!
2020-03-01 12:23:04 +01:00