B4A Library In-App Billing v3 library

Status
Not open for further replies.
Accept payments with Google In-app Billing (v3) service.

The tutorial is available here: http://www.b4x.com/forum/basic4andr...ls/29997-android-app-billing-v3-tutorial.html

V1.32 - Fixes a crash that can happen when the device doesn't support in app billing.
V1.31 - Allows accessing the store inventory information:
B4X:
manager.GetInventoryInformation(Array(<products ids here>))

Sub Manager_InventoryCompleted (Success As Boolean, Products As List)
If Success Then
   For Each sk As SkuDetails In Products
    Log(sk)
   Next
End If
End Sub
 

Attachments

  • InAppBilling3.zip
    43.5 KB · Views: 649
Last edited:

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Thanks, yes the app is published but its installed on the phone through the bridge...
This is the google developers response:

Hi Alberto,

Thanks for contacting Google Play Developer Support.

Did you install the app on your device directly with the APK instead of downloading from the Play Store?

If so, please remove the app, download and install through the Play Store, and try again.


If the problem persists, please let me know.

Regards,
Cathy
Google Play Developer Support

Unistalled and Installed through the Play Store solved the problem.
 

jazzzzzzz

Active Member
Licensed User
Longtime User
Calling this method gives the error below,Manger was initialised in service create ,the same code works good on main activity..!!
B4X:
manager.RequestPayment("recharge_points","inapp","rechargewallet")

B4X:
starter_sendpurchaserequest (java line: 398)
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.WeakReference.get()' on a null object reference
    at anywheresoftware.b4a.inappbilling3.BillingManager3.RequestPayment(BillingManager3.java:91)
    at com.snapnwin.starter._sendpurchaserequest(starter.java:398)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:897)
    at anywheresoftware.b4a.keywords.Common.CallSubNew(Common.java:831)
    at com.snapnwin.callsubutils._tmr_tick(callsubutils.java:165)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at anywheresoftware.b4a.objects.Timer$TickTack.run(Timer.java:105)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:224)
    at android.app.ActivityThread.main(ActivityThread.java:5526)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Cant we make manager request from starter module?
 

Ferdari

Active Member
Licensed User
Longtime User
im having an issue in the Developer Console with the InAppBilling3 1.11:

Security Alert
Your application uses an incorrect implementation of billing for purchases in applications. See this article the Google Help Center for more information.

vulnerable classes:

com.google.android.gms.internal.cs
com.google.android.gms.internal.cu
com.google.android.gms.internal.cw

I can still receive payments.
 

ilan

Expert
Licensed User
Longtime User
hi,

i have a question please, when i try to make a purchase i get a msg from google play that says:

Authentication is required. You need to sign into your Google Account.

but i am signed it. and i also get this msg in all devices i tried (also from other people with different google play account then mine).
what could be the reason for that?

thanx, ilan
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Are you sure that the products are active in the developer console:

SS-2016-10-19_09.11.20.png
 
Status
Not open for further replies.
Top