I have implemented the Payment method and I had to provide URL_STATUS to get the payment status notification but when trying to catch the notification on my backend and I could not catch it "https://developers.przelewy24.pl/index.php?en#section/Payment-system/Transaction-process" this is their a document to get status.
here is my code in python.
class PaymentVerify(APIView):
def post(self, request):
try:
data = request.data
data.get
except (KeyError, ValueError, AttributeError):
return Response(
"Need valid JSON dictionary.", 404)
if data:
print(data)
return Response(
{'message': 'Payment successful!'},
status=status.HTTP_200_OK)
else:
return Response(
{'message': 'Payment unsuccessful!'},
status=status.HTTP_400_OK)
I am not able to catch anything, can you please help me to catch this error. thanks