Android Question Use BillingClient for subs

guenneguez_t

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

HAH

Well-Known Member
Licensed User
Where can i found the sku code ?
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.
 

guenneguez_t

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

guenneguez_t

Member
Licensed User
Hi found the solution :
ADS_SDK_ID is :
Capture subs.PNG

BILLING_KEY could be find on the google play console => developpement tool => Services and API

Thanks
Thomas
 
Top