Your HTML forms will submit to your server, so they'll look like any other form (except that they'll be using HTTPS, of course).
The server will then use the API provided by the payment processing company to complete the transaction. Google for "payment processing" or similar to find such companies. There's no standard Java API for this, so each company has their own.
To do a great right, do a little wrong - shakepeare. twisted little ad: