56 Commits
Author SHA1 Message Date
shihaam 3397f212b5 handle payment erros better
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 6s
2026-08-02 15:11:46 +05:00
i701 c56140011f refactor: add src_bank attribute to Payment and Topup model 🔨 2025-09-20 21:03:43 +05:00
i701 9c082aedf2 feat(telegram): implement asynchronous Telegram alert system and enhance user verification messaging 2025-07-27 21:56:59 +05:00
i701 19321da0be feat(admin): enhance AdminTopupCreateView to support custom top-up descriptions 2025-07-27 19:55:22 +05:00
i701 e3c2d4450f feat(billing): add calculate_total_new_price utility for dynamic payment calculation 2025-07-27 15:17:47 +05:00
i701 ee54386fd5 feat(devices): enhance device naming to include user details and enforce name length limit 2025-07-27 14:59:08 +05:00
i701 80fc27fd74 feat(topup): add payment_type field and update AdminTopupCreateView to handle payment type 2025-07-27 12:17:12 +05:00
i701 cdef5ed27c feat(admin): add AdminTopupCreateView for admin top-up functionality 2025-07-27 10:50:40 +05:00
i701 3e7a74950e fix(tasks): add device activation/deactivation & blocking/unblocking for background task 🐛 2025-07-26 20:33:26 +05:00
i701 72e0cd1fba fix(payment): update wallet payment processing to activate devices and set expiry date and add further optimizations 🐛 2025-07-25 23:46:59 +05:00
i701 4aae0064ca fix(views): optimize database queries to solve N+1 problems 🔨🐛 2025-07-25 23:22:35 +05:00
i701 8d9a2ed2e0 fix(payment): update payment verification response status to 200 OK and set payment status to PAID 2025-07-25 15:32:28 +05:00
i701 1554829b9a feat(wallet): implement wallet transaction model, views, and serializers for fund management 2025-07-25 14:38:34 +05:00
i701 087782e351 feat(verification): handle user verification not found scenario and mark user as verified 2025-07-24 23:35:53 +05:00
i701 7c5ed1e89d feat(payment): enhance list view to support admin access to all payments 2025-07-23 22:10:49 +05:00
i701 c17e34a592 feat(payment): update payment status to "PAID" upon verification 2025-07-06 22:53:02 +05:00
i701 cdfa2d9192 feat(payment): add expiration time for payments to enhance payment validity tracking 2025-07-06 22:04:37 +05:00
i701 f10fa74fbb refactor(payment): enhance payment verification with detailed response structure and transaction data 🔨 2025-07-06 21:22:36 +05:00
i701 cd7555e35f fix(views): update paid_at field in VerifyTopupPaymentAPIView to use transaction date from MIB response 🐛 2025-07-05 17:42:06 +05:00
i701 7003e4bcba feat(views): implement topup cancellation and update status to CANCELLED 2025-07-05 17:37:35 +05:00
i701 6431d61d39 fix(views): format topup amount to two decimal places in VerifyTopupPaymentAPIView 🐛 2025-07-05 17:16:00 +05:00
i701 8871de8ce1 fix(views): format topup amount to two decimal places in VerifyTopupPaymentAPIView 🔨 2025-07-05 17:02:19 +05:00
i701 54056e9b7e fix(views): add logging for MIB verification response in VerifyPaymentView 🐛 2025-07-05 16:44:33 +05:00
i701 48bde9d52b fix(views-verifypayment): improve error handling in payment verification process 🐛 2025-07-05 16:24:10 +05:00
i701 e85d605454 fix(views): correct logging of topup payment verification time 🐛 2025-07-05 15:54:24 +05:00
i701 cf25863afe fix(billing): remove +5 minutes for payment verification payload 🐛 2025-07-04 22:52:13 +05:00
i701 cd17ced67d refactor(topup): Add logging for topup payment verification process and print response 2025-07-04 22:23:02 +05:00
i701 b6517e79ab feat(topup): Update wallet balance upon successful topup verification 2025-07-04 21:54:27 +05:00
i701 ddb65ca985 feat(billing): Add delete functionality for topups and update creation logic with expiration time 2025-07-04 20:14:37 +05:00
i701 5db71edc2c feat(billing): Implement DeleteTopupView with expiration and authorization checks 2025-07-04 16:32:34 +05:00
i701 61e008d4fb feat(billing): Implement TopupDetailAPIView for retrieving single topup details 2025-07-04 10:11:09 +05:00
i701 cec2045e5f refactor(billing): Enhance TopupSerializer to include detailed user information and update ListCreateTopupView queryset filtering 🔨 2025-07-03 21:04:59 +05:00
i701 c07d3c93d2 feat(billing): WIP Add Topup model, filters, serializers, and views for topup management 2025-07-03 17:13:25 +05:00
i701 cb15aed94b WIP (Payments) Add PaymentFilter for filtering payment records 🚧 2025-06-28 23:23:04 +05:00
i701 e3b39478eb Refactor task management: replace Celery with Procrastinate for background tasks and update related configurations 2025-06-28 10:25:33 +05:00
i701 a9e1973f4a Add mib_reference assignment in VerifyPaymentView upon successful payment verification 2025-05-31 13:02:10 +05:00
i701 f8d6e78f90 Add HTTP status codes to responses in VerifyPaymentView for payment verification 2025-05-30 22:56:13 +05:00
i701 09591bf825 Update VerifyPaymentView to mark payment as paid and set payment method upon successful transfer 2025-05-30 22:36:59 +05:00
i701 5b4d0e6488 Refactor send_otp function to remove unused otp parameter and improve clarity 2025-05-30 22:15:14 +05:00
i701 83db42cc60 Refactor and enhance device management and authentication features
- Updated the `reverse_dhivehi_string` function to correct the range for combining characters.
- Added new device handling in the health check view and integrated the `add_new_devices_to_omada` task.
- Improved date handling in `CreateTemporaryUserView` to ensure proper string conversion.
- Enhanced OTP sending by converting mobile numbers to strings.
- Implemented MAC address validation in the `Device` model using a custom validator.
- Removed unnecessary fields from the `CreateDeviceSerializer`.
- Normalized MAC address format in the `DeviceListCreateAPIView`.
- Updated the `djangopasswordlessknox` package to improve code consistency and readability.
- Added migration to enforce MAC address validation in the database.
2025-04-25 14:37:27 +05:00
i701 0f19f0c15c Add Celery periodic task for deactivating expired devices and update requirements 2025-04-24 13:05:20 +05:00
i701 ee8145f07f Add environment variable checks for OMADA_PROXY_URL and enhance payment verification logic 2025-04-23 10:43:39 +05:00
i701 929c6168a4 Refactor payment verification to use PAYMENT_BASE_URL from environment variables and improve error handling for missing configuration 2025-04-23 10:03:04 +05:00
i701 b8d9f5cf87 Refactor VerifyPaymentView to include checks for payment status and user authorization. Update logging level in settings.py to suppress certain logs during testing. Add comprehensive tests for device management in DeviceAPITestCase. 2025-04-11 17:06:28 +05:00
i701 10b3800171 Refactor VerifyPaymentView to improve wallet payment handling and response messages. Remove redundant insufficient funds check and enhance failure message clarity. 2025-04-11 00:41:44 +05:00
i701 f8253d572d Enhance VerifyPaymentView with user authorization check, streamline payment verification process, and improve response messages. Update settings.py for consistent formatting and clarity in PASSWORDLESS_AUTH configuration. 2025-04-10 21:50:21 +05:00
i701 9595476569 Refactor UpdatePaymentSerializer to include only number_of_months field, add DeletePaymentView for payment deletion, and enhance VerifyPaymentView with payment_id lookup. Introduce pending_payment_id field in DeviceSerializer to track unpaid payments. 2025-04-08 21:38:43 +05:00
i701 c3abdd8e34 Add has_a_pending_payment field to Device model and update related views for payment handling 2025-04-07 22:24:52 +05:00
i701 2368ff408a Add number_of_months field to UpdatePaymentSerializer and implement validation in UpdatePaymentAPIView 2025-04-05 22:38:08 +05:00
i701 b87dcfaf26 Add UpdateUserWalletView and CustomUserByWalletBalanceSerializer for wallet balance updates 2025-04-05 20:53:06 +05:00