diff --git a/app/api/services/repayment.py b/app/api/services/repayment.py index 737e22f..e1500bf 100644 --- a/app/api/services/repayment.py +++ b/app/api/services/repayment.py @@ -24,6 +24,7 @@ class RepaymentService(BaseService): customer_id = validated_data.get('customerId') customer = RepaymentService.get_or_create_customer(validated_data) account = customer.accounts[0] + validated_data['accountId'] = account.id if (RepaymentService.validate_account_ownership(account_id = account.id, customer_id = customer_id)):