B4J Question Credit Card Processing in B4J

AKJammer

Active Member
Licensed User
Hey All,
Another question, sorry, I've got a lot of them.
Basically what I'm trying to find is an interface where if I connected a credit card chip reader via USB I can process the card. Does anyone know if Paypal, Square, Venmo, etc have an API that would allow me to charge the credit card and return a Success/Failure? Obviously we'll have to register and have an account with that service, so that's not an issue. The user is registering for a convention, so all of their information is available to pass on to the cc processor. Currently we do all the registrations in my B4J application, then use an iPad connected with Square to have them pay. I'm trying to integrate payments into the program.

I've gone through the forums and found a zooz library that is no longer supported, and I've found a couple places where people have asked for a B4A specific method, but I'm just trying to do it in B4J. MarcoRoma has a B4A Paypal interface but it requires user input. https://www.b4x.com/android/forum/threads/b4x-online-payment-with-paypal.111261/#post-746970
The question has been asked before, but haven't seen any answers. https://www.b4x.com/android/forum/threads/any-paypal-or-credit-card-library.27670/#content

Thanks,
Jim
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Hi Jim.

short answer is, no there isn't

long answer is, if there are for java, then it may be possible to create a wrapper library for it on B4J. Unfortunately this isn't an easy process.

You should begin looking for Terminals and Java SDKs over the internet.
 
Upvote 0

AKJammer

Active Member
Licensed User
Last edited:
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Paypal (https://developer.paypal.com/docs/integration/direct/payments/) points to Braintree Direct (https://www.braintreepayments.com/products/braintree-direct)
Looks like Square has this: https://developer.squareup.com/us/en/online-payment-apis
Looks like Venmo (Paypal) discontinued their service (https://techcrunch.com/2018/06/15/venmo-is-discontinuing-web-support-for-payments-and-more/), but Braintree Direct may once more be a solution: https://developers.braintreepayments.com/guides/venmo/overview
Oh yeah, looks like Braintree is another Paypal Company
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
https://stripe.com/ might also work - they offer an API.

They also have an Android SDK, but you will probably need to create a wrapper for it, or maybe it might be simple enough to use Reflector/JavaObject.
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
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.
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.
 
Upvote 0

AKJammer

Active Member
Licensed User
Yeah. Well, due to Covid-19, all of the dance conventions for the year have pretty much been canceled, so I have an entire year to figure out how to make it happen. If I get anything working I'll be sure to share.

Jim
 
Upvote 0

AndrewF

Member
Licensed User
Longtime User
I've just integrated in the UK to Verifone PAYware Ocius. This offers ICC and contactlaess including applepay, google pay etc. To talk to the pin pad you just open a couple of sockets and send comma seperated commands to it.
 
Upvote 0

ChrisM

New Member
I've just integrated in the UK to Verifone PAYware Ocius. This offers ICC and contactlaess including applepay, google pay etc. To talk to the pin pad you just open a couple of sockets and send comma seperated commands to it.
Im having issues with Ocius and and strange connection issues they refuse to give sample code. Do you have any resources which would help out?
 
Upvote 0
Top