[EMAIL PROTECTED] wrote:
Oh wise ones... We have a competitor at one client that processes credit
cards for them with line-item detail of their purchases.
I'm not familiar enough with credit card processing to know if doing so
via U2 is possible. Currently we have a card swiper in a central location
and all cards are processed there. I'd like a solution that would allow
our sales team to just type the number in and have things automagically
happen, with a verification printed on the forms we currently generate in
our 'legacy' U2 application. We aren't using anything other than the
text-based green screen application, albeit via nice XP-based PCs (Okay,
I'd rather they ran on Linux as I do).
I'm in the process of setting up that very thing. We currently use a
swiping solution, but are going to start taking payments through our web
site. Rather than having two different solutions (1 for web, 1 for
UniVerse), I've decided to do everything from the UniVerse side. We
already pass UV data back to the web site via UOJ, so it's trivial for
me to pass credit card authentication data back.
All you need is a credit card gateway provider that offers a web service
you can talk to over an SSL connection. I'm testing Verisign's PayFlow
Pro service at the moment, and have had no trouble sending XML requests
from UV and getting data back. I did have to install a piece of
software from their SDK on the UV server (linux) to talk to their
server, but once I did it was a piece of cake. I initially tried using
the linux "curl" program (works fine for talking to UPS's web service),
but had no success. I think Verisign's web service is doing something a
little non-standard.
I'm just writing an XML request to a temp file, then shelling out to
Verisign's program and passing it the file name:
EXECUTE 'SH -c "':EXECUTABLE:' ':PFPRO.HOST:' ':XML.PATH:'/':REQ.ID:'"',
OUT > XML.TXT
Then I parse the XML text I get back. There's a document from Verisign
named XMLPay.pdf with examples of all the XML requests and a table of
error codes you might get back. I just copied/pasted one of the
examples into a basic program, stuck it in a variable, and filled in the
blanks.
-John
--
John Hester
System & Network Administrator
Momentum Group Inc.
(949) 833-8886 x623
http://memosamples.com
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/