<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Avi and Julian,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Suppose your Seaside site user interaction goes 
something like this:</FONT></DIV>
<DIV><FONT face=Arial size=2>1. Choose your product</FONT></DIV>
<DIV><FONT face=Arial size=2>2. Pay</FONT></DIV>
<DIV><FONT face=Arial size=2>3. Process the sale</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Now suppose you want step 2 (Pay) &nbsp;to take 
place on Verisign's site.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>It would be nice if I could model this using the 
component call: mechanism already in place.&nbsp; eg, I would call 
WAPaymentStep&nbsp;which would forward the user to the Verisign site and answer 
a PaymentResponse upon "returning" from Verisign's site.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><FONT face=Arial size=2>There are two parts to this problem: </FONT></DIV>
<DIV><FONT face=Arial size=2>1. Sending them to the payment&nbsp;site and 
</FONT></DIV>
<DIV><FONT face=Arial size=2>2. receiving them back to Seaside after 
payment.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>1. This part is easy: WAPaymentStep presents a form 
to the user that upon submission posts the necessary variables to the payment 
site.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>2. This is the hard part.&nbsp; Here's my plan so 
far...</FONT></DIV>
<DIV>WAPaymentStep needs to register a callback that would </DIV>
<DIV>a) process the POST from Verisign site (their response) and create a 
PaymentResponse object</DIV>
<DIV>b) return the Payment Response using #answer:.&nbsp; </DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>What I would like is:</DIV>
<DIV>Example code on how to register an arbitrary&nbsp;callback block.</DIV>
<DIV>Does such a&nbsp;callback have access to POST variables?&nbsp; If 
not,&nbsp;can you suggest another way to get posted variables into a smalltalk 
object which gets "returned" using #answer: ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I can imagine another Seaside service called "VerisignService" who's job it 
is to accept responses from Verisign and leave an appropriate PaymentResponse in 
a "mailbox" to be picked up by WAPaymentStep.&nbsp; VerisignService then calls 
some continuation to "wake up" the WAPaymentStep, which "checks its mail" and 
returns the PaymentResponse using #answer: .</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any ideas would be appreciated.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you.</DIV>
<DIV>&nbsp;</DIV></FONT>
<DIV><FONT face=Arial size=2>Derek Brans<BR>Nerd on a Wire<BR>Web design that's 
anything but square<BR><A 
href="http://www.nerdonawire.com">http://www.nerdonawire.com</A> <BR>mailto: <A 
href="mailto:brans@nerdonawire.com">brans@nerdonawire.com</A><BR>phone: 
604.874.6463<BR>toll-free: 1-877-NERD-ON-A-WIRE</FONT></DIV></BODY></HTML>