On Fri, Sep 18, 2009 at 11:31 AM, lifewithryan <[email protected]> wrote:
>
> I'm sure this is easy -- we're writing a Website Payments Pro library
> to talk to Paypals Webiste Payments Pro NVP API.  (not to be confused
> with Payflow Pro).
>
> Anyway, this API requires us to send an IP address.  How can I get the
> IP Address to be sent to our custom processor.py so that we can
> assemble the appropriate request??

from threaded_multihost import threadlocals

request = threadlocals.get_current_request()
ip = request.META.get['REMOTE_ADDR'

-- 
Bruce Kroeze
http://www.ecomsmith.com
It's time to hammer your site into shape.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to