On Wed, Mar 21, 2012 at 10:55 AM, Riccardo Tacconi <span dir="ltr"><<a href="mailto:rtacconi@gmail.com">rtacconi@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><br></div><div>What kind of library do you use to integrate sagepay? HTTP, active merchant or something else?</div></blockquote><div><br>HTTP and EventMachine.  Our sagepay interface is a little "interesting", because it's asynchronous: the web server puts payment requests onto a queue then sends the user to an auto-refreshing "please wait" page while a separate daemon picks up the queued requests and sends them onto sagepay.  The "please wait" page checks for a queue response and sends the user off to Sagepay (we use Sagepay Server) when it gets one.<br>
<br>This means if Sagepay is slow or down (as, historically, it often has been) we don't tie all our web worker processes up waiting for it.  It does mean showing the user a progress bar for (usually) a couple of seconds in the "good" case, but in the bad case it means they get an intelligible error/apology message from our server (we could hand off here to another payment provider if we had one) instead of a blank screen and a timeout.  <br>
<br><br>-dan<br><br></div></div>-- <br><a href="mailto:dan@telent.net" target="_blank">dan@telent.net</a> <br><a href="http://ww.telent.net" target="_blank">http://ww.telent.net</a><br><br>