Hmmm, actually Square looks like it may not be that difficult using JServer.
All the payment processors will accept HTTP connections to do the billing, what i meant by not existing is to read of the chip or swipe the card and process the information in a JavaFx application.
All the hardware that is being created now days by financial companies is usually developed for Android or Ios. this is because they are safer enviroments and a bit harder to hack. That is not the case for Desktop, it is literaly hackable and pure chaos.
On the other side, you can always process payments with your own server:
Hmmm, actually Square looks like it may not be that difficult using JServer.
Learn how to set up an application that embeds the Square In-App Payments SDK.
This is exactly wht you found here. a server that will open a process a payment with secure connections between the customer, you and the payment gateway.
theoretically its possible to open a WebView on a B4J desktop app process the card with your http server and go back to the customer.
This will hold true for almost any payment gateway, This is not always the case there are already some POS desktop apps that surely works with java but you will have more luck finding them in the traditional financial system like a bank than with well known player like Stripe.
at the end, i would like to be wrong, that will be a huge opportunity for us in the forum.