I have been trying to implement in-app purchase, following guidelines in https://www.b4x.com/android/forum/threads/googleplaybilling-in-app-purchases.109945/#content
I have copied all the necessary class from the example project, and set my app with the ID and key (key shortened here to keep legibility).
The app has been added as in-app purchases in the Play Store:
When I do a test buy while logged with my developer account, I get the test buy dialog:
Now, when I use my buyer account, I get either "This version of the application is not configured for billing through Google Play", or "The item you requested is not available for purchase".
I have read and read again these:
support.google.com
developer.android.com
I don't know what to do. I am probably thick, and am sorry, but I am at a loss, here.
Any help will be most appreciated.
I have copied all the necessary class from the example project, and set my app with the ID and key (key shortened here to keep legibility).
B4X:
'--- Billing ---
Public billing As BillingClient
Public AdsRemoved As Boolean
Public const ADS_SDK_ID As String = "com.bujardet.checkprinter" '"android.test.purchased"
Public const BILLING_KEY As String = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlEHo5et/XIqI6r69unK8GAjl.../..."
Public billing As BillingClient
Public InAppSupported As Boolean
The app has been added as in-app purchases in the Play Store:
When I do a test buy while logged with my developer account, I get the test buy dialog:
Now, when I use my buyer account, I get either "This version of the application is not configured for billing through Google Play", or "The item you requested is not available for purchase".
I have read and read again these:
Create an in-app product - Play Console Help
You are viewing information about in-app products which are now referred to as one-time products. For the corresponding one-time product information, see
Integrate the Google Play Billing Library into your app | Android Developers
I don't know what to do. I am probably thick, and am sorry, but I am at a loss, here.
Any help will be most appreciated.