Zooz Error

stu14t

Active Member
Licensed User
Longtime User
I'm currently trying to add in-app payment into my app so I chose Zooz as it looked fairly straight forward.

I'm having some issues that I've also asked Sharon from Zooz to look at

It appears all the code and manifest entries check out but when the sub calls
B4X:
Payment.Checkout

The app hangs the the error in the debugger: java.lang.NullPointerException

I thought i'd post here to see if anyone else is experiencing the same issue.

I'm running B4A V2.26
 

stu14t

Active Member
Licensed User
Longtime User
Hi Erel,

Attached is the full unfiltered logs.

Sharon from Zooz is also looking into the for me and I'll keep the forum updated

Regards

Stu
 

Attachments

  • log.txt
    11.1 KB · Views: 265
Upvote 0

stu14t

Active Member
Licensed User
Longtime User
There is GPS used in the app, however, when the app starts there is a licenses checking process and if no license is found it starts the in app payment routine, and this is immediate.

I've just noticed in my code the gps is initialised after the license check routine, the bit that falls over.

I'll move it and re-run

Edit: that made no difference. If I by-pass the in-app payment routine then the code works fine.

New error log attached
 

Attachments

  • log2.txt
    13.1 KB · Views: 235
Last edited:
Upvote 0

stu14t

Active Member
Licensed User
Longtime User
The GPS reinitialise is now before the license check and i've removed the If firsttime line.

The code still stops when the Payment.checkout routine is called

Erel, I can send you my code if required, I'm keen to bottom this out.
 

Attachments

  • log3.txt
    16.3 KB · Views: 256
Upvote 0

stu14t

Active Member
Licensed User
Longtime User
I had a reply from Sharon and it seems as though the Zooz payment library has an issue with the tabhost library.

I'm no expert on what goes on in the background so i'll post Sharon's reply:

I’m far from being an expert in Basic4Android, but I know that there is an issue returning a result from an activity that is nested inside the tabHost. Our Activity returns a result, and your code fails when the library wrapper builds the result code. It seems that the code does not fail when using regular activities.

I've managed to sort out my problem by running the payment routine before the tabhost is initialised.

Can I just add how great the support is with Zooz :sign0098:
 
Upvote 0
Top