diff --git a/apps/payment/management/commands/send_transactions_to_roistat.py b/apps/payment/management/commands/send_transactions_to_roistat.py index 6b47ab32..76131857 100644 --- a/apps/payment/management/commands/send_transactions_to_roistat.py +++ b/apps/payment/management/commands/send_transactions_to_roistat.py @@ -36,4 +36,4 @@ class Command(BaseCommand): f'Payment {payment.id}', payment.roistat_visit, ) - print('RESULT' + str(result)) + print('RESULT' + str(result.json())) diff --git a/apps/payment/tasks.py b/apps/payment/tasks.py index 3b15a50f..824e7272 100644 --- a/apps/payment/tasks.py +++ b/apps/payment/tasks.py @@ -56,5 +56,4 @@ def transaction_to_roistat(user_id, payment_id, event_name, amount, time, status url = settings.ROISTAT_API_URL + f'/project/add-orders?key={key}&project={project}' resp = requests.post(url, json=body) logger.info('TRANSACTION_TO_ROISTAT: ' + str(resp)) - return resp