last signup fix

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-17 06:46:16 +00:00
parent 491ddc5fbb
commit 79398c908d
6 changed files with 672 additions and 1238 deletions

View File

@@ -481,7 +481,7 @@ class RegisterSerializer(serializers.Serializer):
user.save()
# For paid plans, create subscription, invoice, and default payment method
if plan_slug and plan_slug in paid_plans:
if is_paid_plan:
payment_method = validated_data.get('payment_method', 'bank_transfer')
subscription = Subscription.objects.create(