Android Question Use BillingClient for subs

guenneguez_t

Member
Licensed User
Longtime User
He,
I try to use BillingClient for subs and I don't arrive to run it.
My sample is :
B4X:
Dim sf As Object = BillingClient.billing.QuerySkuDetails("subs", Array(BillingClient.ADS_SDK_ID))
Wait For (sf) Billing_SkuQueryCompleted (Result As BillingResult, SkuDetails As List)
Log("Billing_SkuQueryCompleted: " & Result.IsSuccess)
Log("Billing_SkuQueryCompleted: " & SkuDetails.Size)
The result is true, but skuDetails.Size is 0...

ADS_SDK_ID is "com.guenneguez.VoileChronoPro"

Thanks for help
Thomas
 
Last edited:

guenneguez_t

Member
Licensed User
Longtime User
Where can i found the sku code ?
For ADS_SDK_ID, I use the name of my application ?
Capture2.PNG

For BILLING_KEY, I use : product id like :
Capture subs.PNG


Thanks
Thomas
 
Last edited:
Upvote 0

guenneguez_t

Member
Licensed User
Longtime User
From my past history, I think sku code is belong to you, you should write it in 1st billing request! Then you can query about it.
From your example: "subs" sku code should be firstly added in your billing request.
He,

Have you got a sample of code ?

Thomas
 
Upvote 0
Top