Help Needed For <Forbidden (403) CSRF verification failed. Request aborted >.Error Solving

183 views
Skip to first unread message

Kumar Ashirwad Mishra

unread,
Mar 25, 2019, 7:19:34 PM3/25/19
to Django users
I am trying to send a request to paytm gateway checkout api for online transaction so I have created a form that has hidden values for request. So how to solve the csrf_token problem .. Thankyou  
payment2.htm

Mike Dewhirst

unread,
Mar 26, 2019, 1:27:59 AM3/26/19
to Django users
You need to include the CSRF token immediately after the form action

    <form action="payment" method="POST">
        {% csrf_token %}

... so if that occurs in card2.htm that's where it should be.

hth


> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1ccd4a76-e64c-4aab-8b08-5a1feee0fff1%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/1ccd4a76-e64c-4aab-8b08-5a1feee0fff1%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Manas Nikam

unread,
Mar 26, 2019, 7:28:45 AM3/26/19
to django...@googlegroups.com
Where is the error at response from paytm or at your request for payment information?

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages