Return a form to browser that the user can submit to BofA (as mentioned in another reply). You can't use LWP - the browser will need to initiate the session so that the user can process through the checkout.

If you want to validate input before forwarding user to BofA:

Each button is a submit for a seperate form. The "proceed" button is for a form containing all data as hidden fields and method POST for BofA. The "Edit" button is basically a back button (or whatever you choose). That's the easiest way to process this without interupting the user's flow too much.

A final note on integrity - I have no idea how BofA talks back to you about the transaction's success etc but, however it's done, double check the data they processed against that which you sent - otherwise it's trivial for someone to amend the data in the hidden fields to change the nature of the transaction.

You're basically stuck with that unless they provide an API for you to talk to them direct to process the CC - but I'm assuming you can't based on the data you presented here.

.02

cLive ;-)


In reply to Re: How to send HTTP POST request? by cLive ;-)
in thread How to send HTTP POST request? by UncleRon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.