I'm looking to integrate EFSnet's
payment gateway interface into a client application. I haven't done much work with XML (although I understand the basics), so I'm looking for suggested XML modules to get this work done.
A sample HTTPS POST would go like this:
<Request StoreID="myStoreID" StoreKey="myStoreKey" ApplicationID="EFSn
+et samples 1.0">
<CreditCardAuthorize>
<ReferenceNumber>1234</ReferenceNumber>
<TransactionAmount>1.00</TransactionAmount>
<AccountNumber>4111111111111111</AccountNumber>
<ExpirationMonth>12</ExpirationMonth>
<ExpirationYear>99</ExpirationYear>
</CreditCardAuthorize>
</Request>
And the reply:
<Reply>
<TransactionReply>
<ResponseCode>0</ResponseCode>
<ResultCode>00</ResultCode>
<ResultMessage>APPROVED</ResultMessage>
<TransactionID>100000182165</TransactionID>
<AVSResponseCode />
<CVVResponseCode />
<ApprovalNumber>123456</ApprovalNumber>
<AuthorizationNumber>123456</AuthorizationNumber>
<TransactionDate>021112</TransactionDate>
<TransactionTime>110544</TransactionTime>
<ReferenceNumber>1234</ReferenceNumber>
<AccountNumber>XXXXXXXXXXXX1111</AccountNumber>
<TransactionAmount>1.00</TransactionAmount>
</TransactionReply>
</Reply>
Any suggestions on what I might use to a) markup and send the HTTPS POST (XML) connection, and b) accept/parse the reply?
Thanks in advance,
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.