thelabnyc / django-oscar-api-checkout

Automated mirror of https://gitlab.com/thelabnyc/django-oscar-api-checkout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with fetching payments states

hackeraks opened this issue · comments

The payment method selection during checkout get stored in session during checkout, the subsequent request to /api/checkout/payment-states// is no longer have session attached to it as the UI is served from different Host and the django service is hosted in different domain. which result in 404 response as it couldn't find the session information. Relevant peace of code..
//views.py class PaymentStatesView(generics.GenericAPIView): def get(self, request, pk=None): if pk and int(pk) != request.session.get(CHECKOUT_ORDER_ID): return Response(status=status.HTTP_404_NOT_FOUND)
Am i Missing something? Thanks :)