Some advice please on IAP - in-app-purchase/payment/billing

239 views
Skip to first unread message

Henrik R.

unread,
Mar 28, 2021, 7:39:49 AM3/28/21
to Kivy users support

I am trying to figure out how to do IAP (in app purchase/payment/billing) in Python-Kivy. I need it both on Android and iOS.

I presume that on Android I will have to write it in Java and then call it from Python via Pyjnius.

And likewise on iOS I will have to write it in Objective C and then call it from Python via PyObjus.

But are there any easier alternatives?

Regarding Android: On https://github.com/kivy/python-for-android/tree/master/pythonforandroid/recipes/android/src/android I found 3 ’billing’-source-files:

1. _android_billing.pyx

2. _android_billing_jni.c

3. billing.py

But 3. is empty, and the other 2 files do not contain any comments, so I am not sure how to use them in a Kivy app?

My app is a training app where the user achieves a ‘score’, like in a game. So I will charge an ‘exam fee’ each time the user has achieved a certain skill level.

alertforlinux alertforlinux

unread,
May 18, 2021, 1:25:28 PM5/18/21
to Kivy users support
Hi Henri,
I have the same problem, did you find an alternative solution?
Thanks

Henrik R.

unread,
May 18, 2021, 2:06:01 PM5/18/21
to Kivy users support
Not really.
I have had to work on other parts of the project.
But a guy who calls himself xPsycHoWasPx on the Discord Kivy iOS discussion - https://discord.com/channels/423249981340778496/713442856190083094 - has created an extraordinary 'kivy swift wrapper' - a system that should make it relatively easy to use swift modules in a Kivy iOS app! And supposedly run much faster than PyObjus.
You can find his system here: https://github.com/psychowasp/KivySwiftLink
But I don't know yet, if it will solve another iOS problem of mine, because suddenly he stopped helping me, because he became offended - on behalf of Apple - because I criticized Apple for being somewhat arrogant towards me... So maybe he is a bit difficult to work with?
Reply all
Reply to author
Forward
0 new messages