Nope, no good.

I was looking to see if there was something like this posted in the group
before and there was, I found this answer from 2009:

"This is impossible to redirect a user to external site with post.
urllib and urllib2 can only help to fetch data, but not to redirect a
user."

Anyone knows if that's really the case? I can just do what most people do
to integrate the online payment solution, create a form with action to
their website and have all my fields as 'hidden'. But I was wondering if
there is a way to actually send the data via POST from inside a django view

On Sun Nov 02 2014 at 8:56:33 PM Collin Anderson <cmawebs...@gmail.com>
wrote:

> Hello,
>
> Does this work?
>
> def realizarPago(request):
>     parametros_payu = {} # I use my params here in a dict
>     url = "https://gateway.payulatam.com/ppp-web-gateway/";
>     return HttpResponse(requests.post(url, data=parametros_payu).text)
>
> Collin
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/19f76a8a-e90e-49ca-abb0-e9c8d1a003b8%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/19f76a8a-e90e-49ca-abb0-e9c8d1a003b8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAeX05FMqzvuuq2MdxZm_abdmLE9E9GsXuqiA60N5ZKZnRBq2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to