From 260333cea9289f2cb8439e52b31cb4a86ba27152 Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Mon, 15 Sep 2025 15:21:56 +0500 Subject: [PATCH] change: change response --- core/apps/payment/views.py | 2 +- core/services/payment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/apps/payment/views.py b/core/apps/payment/views.py index 0816954..d66f787 100644 --- a/core/apps/payment/views.py +++ b/core/apps/payment/views.py @@ -104,4 +104,4 @@ class VisaMastercardPaymentApiView(GenericAPIView): request_id=str(uuid.uuid4()), amount=data.get('amount'), ) - return Response(res) \ No newline at end of file + return Response({'success': True, 'link': res}) \ No newline at end of file diff --git a/core/services/payment.py b/core/services/payment.py index 80c2d5d..ddd4ca6 100644 --- a/core/services/payment.py +++ b/core/services/payment.py @@ -84,6 +84,6 @@ class Atmos: res = requests.post(url=url, headers=headers, json=data) if res.status_code == 200: - return res.json() + return res.json()['url'] else: return res.json() \ No newline at end of file