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