Android Code Snippet [B4X] Online Payment with PayPal

MarcoRome

Expert
Licensed User
Hi all.
In Attached an example on how to use paypal for online payment in a simple way for B4X ( B4A - B4i - B4j )
In the example it is possible to enter any active paypal account, so you can also make payments on different paypal accounts.
For each transaction, it will return if the transaction was successful or failed.
If you improve the same, upload and share the same pls.

Have a nice day
Marco
 

Attachments

AKJammer

Member
Licensed User
How has this worked out? I'm looking to add a module into my B4J application that will accept credit card payments for event and contest registrations. We currently use both Paypal and Square on the side of my application but want to integrate something into the application itself.
 

MarcoRome

Expert
Licensed User
How has this worked out? I'm looking to add a module into my B4J application that will accept credit card payments for event and contest registrations. We currently use both Paypal and Square on the side of my application but want to integrate something into the application itself.
Try it yourself
 

AKJammer

Member
Licensed User
Yes, I did. Just wondering how it worked in practice. A quick question if you could answer. If I connected a credit card chip reader via USB (using B4J in Windows), does Paypal have an API that would allow the credit card information to be filled in from the application? I'm trying to find a way to just put the credit card in, hit a button and get a success or failure that it worked or not. All the users information is known and can be sent but I don't need to see web interaction with paypal site.
Thanks,
Jim
 

MarcoRome

Expert
Licensed User
Yes, I did. Just wondering how it worked in practice. A quick question if you could answer. If I connected a credit card chip reader via USB (using B4J in Windows), does Paypal have an API that would allow the credit card information to be filled in from the application? I'm trying to find a way to just put the credit card in, hit a button and get a success or failure that it worked or not. All the users information is known and can be sent but I don't need to see web interaction with paypal site.
Thanks,
Jim
 
Top