Credit-Card handling in Zope (thread progamming?)
I'm starting to research CC handling, and it seems the way CCVS works is that when you ask for a CC to be authorized, you don't get immediate feedback on success/failure. Instead, at some point the status changes to "authorized". I need to authenticate the CC, and do different actions depending on the result. Since this is going to be run non-interactively, I don't want to have a thread waiting around polling to see if the CC was authenticated - I need, I think, a new thread that does that and does a callback when the authorization is finished. Is it possible to mix threads in Python with Zope? Alternatively, the CC handling can be done by a different python program that does callback via, what - XML-RPC? The monitor? -- Itamar S.T. itamars@ibm.net
On Tue, 18 Apr 2000, Itamar Shtull-Trauring wrote:
Alternatively, the CC handling can be done by a different python program that does callback via, what - XML-RPC? The monitor?
I suppose one could simply use python's 'urllib' module and call the special DTMLMethod/ExpternalMethod to handle the processed CC number. You could just pass the CC number (or other info) in the URL or simply write it in a file and have the ExternalMethod read the file. Pavlos
participants (2)
-
Itamar Shtull-Trauring -
Pavlos Christoforou