[LRUG] Sagepay

Daniel Barlow dan at telent.net
Wed Mar 21 05:12:04 PDT 2012


On Wed, Mar 21, 2012 at 10:55 AM, Riccardo Tacconi <rtacconi at gmail.com>wrote:

> Hi,
>
> What kind of library do you use to integrate sagepay? HTTP, active
> merchant or something else?
>

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.

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.


-dan

-- 
dan at telent.net
http://ww.telent.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20120321/83a79ac5/attachment-0003.html>


More information about the Chat mailing list