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:

JOANORSKY

Member
Licensed User
Longtime User
Hello Erel... after i've made the upgrade i started to have this error.. anything i did wrong?


upload_2013-10-23_13-57-32.png
 

shaxboz

Member
Licensed User
Longtime User
Erel when I use this library I have problem with it.
"Sub manager_purchasecompleted signature does not match expected signature"
I checked with real accaunt
I checked my key
But nothing changed...
 

shaxboz

Member
Licensed User
Longtime User
B4X:
Sub Manager_PurchaseCompleted()
    reklama=True
    ImageView12.Visible=False
End Sub
 

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Using this lib and this type of billing...
Do I need to use the licence lib? or this is enough to be sure you sell the in-app to only one device?

Draft apps are not allowed any more.
Does this lib adds the BILLING permission to the apk?

Thanks
 
Last edited:

MarcoRome

Expert
Licensed User
Longtime User
Using this lib and this type of billing...
Do I need to use the licence lib? or this is enough to be sure you sell the in-app to only one device?

Draft apps are not allowed any more.
Does this lib adds the BILLING permission to the apk?

Thanks
you do not need to add the lib license, in-app manages all.
You look also THIS
 

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Testing with a Android 2.2 emulator I got this error (see image) in line:

B4X:
        manager.Initialize("manager", key)
 

Attachments

  • badBilling.png
    badBilling.png
    27.8 KB · Views: 272

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Adding Billing to a new app it cant locate any SKU and I can find why!

My code is identical to my old app wich works ok, except the key...
B4X:
    Private key As String = "MIIBIjANBgkqhkiG9w0BA......"
    Dim Productid1, Productid2 As String
    Dim Producttype As String
    Dim DeveloperPayload As String
    DeveloperPayload="pac" 
    Producttype="inapp" 
    Productid1 = "profesional"

And this is what I get when I run it:

Billing service connected.
Checking for in-app billing 3 support.
In-app billing version 3 supported for armi.pac
Subscriptions AVAILABLE.
true, Setup successful. (response: 0:OK)
Info: Subscriptions supported: true
Starting async operation: refresh inventory
Querying owned items, item type: inapp
Package name: armi.pac
Calling getPurchases with continuation token: null
Owned items response: 0
Continuation token: null
Querying SKU details.
queryPrices: nothing to do because there are no SKUs.
Querying owned items, item type: subs
Package name: armi.pac
Calling getPurchases with continuation token: null
Owned items response: 0
Continuation token: null
Querying SKU details.
queryPrices: nothing to do because there are no SKUs.
Ending async operation: refresh inventory

But the app does has a SKU as you can see in the image.

What can be wrong?
Thanks
 

Attachments

  • 2015-10-06_1611.png
    2015-10-06_1611.png
    22.1 KB · Views: 300
Status
Not open for further replies.
Top