B4A Library In-App Billing v3 library

Status
Not open for further replies.

Erel

Administrator
Staff member
Licensed User
Accept payments with Google In-app Billing (v3) service.

The tutorial is available here: http://www.basic4ppc.com/forum/basi...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

Last edited:

JOANORSKY

Member
Licensed 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
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...
 

Alberto Michelis

Well-Known Member
Licensed 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
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
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

Status
Not open for further replies.
Top