Dear monks,
I have a perplexing problem. I need to integrate BarclayCard's ePDQ credit card authentication system (you know, the rather pointless Verified by Visa/Mastercard SecureCode thing) with an existing Perl shopping card I wrote. The Perl isn't the problem. The problem is that Barclaycard, in their wisdom, provide an API in C++ or Java. I don't do either - I do Perl or PHP!
However, I thought using XS might be the answer, creating my own Perl library interfacing to the supplied shared object file (which I don't have the source for of course, but do have a header file).
I have taken a look at the manpage
perlxstus and am now even more confused!
Anyone have any ideas where to start? I basically need to make a Perl interface to a shared object where I don't even have the source code (but do have the header file).
The header file is 1734 lines long so I can't post it here, but I'm posting a snippet here:
MS_API_EXTERN
int xfortInitializePAReqBuffer(unsigned int uPAReqBufLen,
asc7char *pPAReqBuf,
XFortCreatePAReqResult *result,
asc7char *szErrMsgBuf,
unsigned int uErrMsgBufLen);
Thanks in advance, oh wise ones!
Neil
p.s. At least the header file is well documented!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.