This is the documentation provided by the payments company:
"

*The IPN protocol consists of three steps:* 

   1. Payson sends your IPN listener a message that notifies you of the 
   event. 
   2. Your listener sends the complete unaltered message back to Payson; 
   the message must contain the same parameters in the same order and be 
   encoded in the same way as the original message. 
   3. Payson sends a single word back, which is either VERIFIED if the 
   message originated from Payson or INVALID if there is any discrepancy 
   with what was originally sent. 

"
I am by no means an experienced web developer so I might have misunderstood 
something, but I figured I need to do something like the following;
 
message = request.vars
request = urllib2.Request(cmd, message)
response = urllib2.urlopen(request)
.
The problem here is that message needs to be a string so the first line is 
obviously not correct. What could I do instead?




On Friday, 5 February 2016 01:19:17 UTC+1, Anthony wrote:
>
> What is the nature of the message and how has it been altered in 
> request.vars. By what means are you supposed to "send it back"?
>
> On Thursday, February 4, 2016 at 12:39:03 PM UTC-5, Martin wrote:
>>
>> I'm trying to construct an instant payment notification listener in 
>> web2py. This requires me to receive a message from the other party and send 
>> it back unaltered. But I only have access to the request.vars which is a 
>> Storage object and already altered? How would I go about doing this?
>>
>> Hope you can help me with this!
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to