change: change response

This commit is contained in:
behruz-dev
2025-09-15 15:21:56 +05:00
parent 787dd0a50a
commit 260333cea9
2 changed files with 2 additions and 2 deletions

View File

@@ -104,4 +104,4 @@ class VisaMastercardPaymentApiView(GenericAPIView):
request_id=str(uuid.uuid4()),
amount=data.get('amount'),
)
return Response(res)
return Response({'success': True, 'link': res})

View File

@@ -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()