Django: unable to read POST parameters sent by payment gateway

前端 未结 2 1748
旧时难觅i
旧时难觅i 2021-01-28 05:33

I am unable to read POST parameters sent by payment gateway after payment was processed. Payment gateway redirects to returnUrl (I pass this to payment gateway befo

2条回答
  •  旧巷少年郎
    2021-01-28 06:01

    @login_required decorator was causing the issue. I think @login_required redirecting the page to see if user logged in (even if user already logged in) then redirecting back to this view. During this process, it is loosing POST data and converting the request method to GET.

提交回复
热议问题