B4A Library Mobile Payments Library

Hello everyone,

This app lets you add in-app purchases from your Basic4Android application.
You are able to pay with Paypal, creditcard, etc.

The library is from ZooZ, not the one from PayPal!. It is a very to use library with a few functions.
All transactions, etc are done by ZooZ.


Integration is easy and can be completed in 4 easy steps:

Step 1
Download all 4 library files (2 .jars and 2 .xmls), place them in your additional library folder and check them in your Basic4Android library pane at the right side of the IDE.

Step 2
Register at zooz.CO - purchase this domain.

Step 3
Register your app - Your app needs to be registered via this link.
When registering the app you receive a unique "APP KEY", which need to be used in the integration code.

Step 4
Code integration - The attachments includes a working sample file with the functions included.
Fill in your AppKey received from step 3.

B4X:
Dim Payment as MobilePayment

Two events are raised when the transaction succeeds or fails:
B4X:
Sub Payment_Success (TransactionID As String)
   Msgbox("Transaction ID: " & TransactionID, "Transaction Successful.")

End Sub

Sub Payment_Error (ErrorCode As Int, ErrorMessage As String)
   Msgbox("Error in transaction." & CRLF & "Error code: " & ErrorCode & CRLF & ErrorMessage, "Transaction Error")
End Sub

Step 5
Edit your manifest file and add the following 2 functions in your application node.


In project - do not overwrite manifest.

Step 6
Go live - After Integration and testing are completed you can move to production and start accepting payments.
https://app.zooz.co/portal/PortalController?cmd=integration

And that's all.
I haven't been able to test it, as for the first time, you have to enter a creditcard number, and unfortunately, I don't have one.

Have fun!

Tomas

EDIT: I hope the forum max zip upload can be updated some time.




DOWNLOAD ATTACHMENTS HERE:
www.rootsoftllc.com/Basic4Android/MobilePaymentLibrary1.0.zip
 
Last edited:

Penko

Active Member
Licensed User
Longtime User
Here is the unfiltered Log:

Please note it doesn't crash immediately. The error is that the Activity is not responding. It crashes randomly(shows SorrY! Activity is not responding).


What I consider interesting and related:


 
Last edited:

bluedude

Well-Known Member
Licensed User
Longtime User
My feeling says for now it ends here :-( I was working on a very cool concept with a cloud programmable NFC tag that kicks in a payment with information from the tag.

Probably works in a clean project but not in my full project because of the anim folder.

Anyway, patience is probably what we need
 

bluedude

Well-Known Member
Licensed User
Longtime User
Either the payment library and drop all the UI components or...

So,

Basically I cannot create a full working piece of software with a combination of the Zooz stuff and all the UI stuff from corwin.

That is a shame but the anim folder seems to break the Zooz library.

I simply cannot create an attractive design without the UI stuff so that is bad luck for the Zooz payment library :-(
 

Sharon

Member
Licensed User
Longtime User
New ZooZ Library including PayPal

Hello all,

Just wanted to update that if you have updated Basic4Android to version 2.0, you can download the ZooZ library, that now also includes PayPal, from our website: www.ZooZ.com
All the previous incompatibilities with additional libraries that contain resources are now solved, thatnks to Erel's great work.

If you need any assistance, you are more than welcome to contact me at sharon@zooz.com

Sharon Ben-Rabi
Mobile Developer @ ZooZ
 

androh

Member
Licensed User
Longtime User
Hi,
I want to try zooz payment to my apps.
But after I added "mplzooz" library, a compile error has been shown.
When I unchecked "libGoogleAnalytics" library, zooz runs without error.

libGoogleAnalytics version: 1.00
MPLZooZ version: 1.10

B4X:
Convert byte code - optimized dex.      Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcom/google/android/apps/analytics/AdHitIdGenerator;
   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
   at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
   at com.android.dx.command.dexer.Main.processClass(Main.java:486)
   at com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
   at com.android.dx.command.dexer.Main.access$400(Main.java:67)
   at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
   at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
   at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
   at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
   at com.android.dx.command.dexer.Main.processOne(Main.java:418)
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
   at com.android.dx.command.dexer.Main.run(Main.java:206)
   at com.android.dx.command.dexer.Main.main(Main.java:174)
   at com.android.dx.command.Main.main(Main.java:91)
1 error; aborting
   Standard dexer.
 

Sharon

Member
Licensed User
Longtime User
Hi Hüseyin,

We've identified this issue, and we will release a new version of our library by the end of this week.

Thank you for the heads up,

Sharon Ben-Rabi
Mobile Developer @ ZooZ
 

Krammig

Member
Licensed User
Longtime User
Nice thanks for sharing.

However from what I can see Zooz is very expensive and the Payouts are withheld for 2+ weeks.

cheers
 

pesquera

Active Member
Licensed User
Longtime User
Hello, the download link is broken.. do somebody knows where can I download this library?
 

pesquera

Active Member
Licensed User
Longtime User
hi Rona, I'm reading your documentation right now and like it, is very complete.. will do a try on the nexts days and surely will back.. thank you so much
 

Shay

Well-Known Member
Licensed User
Longtime User
I talk to Zooz support today, they changed the API, and they are dropping support to all old API's (including B4A), in few months
(They said it will not work in few months)
and they provided Java SDK to compile new library from it
which you need to create your own GUI, you can put your logo, etc..
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…