I'm having a trouble with testing my in-app billing.
(using Google Play In-app Billing Version 3 API)
Problem:
Refunded in-app purchases are still present in the purchase list, which is provided by BillingClient.queryPurchases()
.
When I tried refunding purchases in January, refunded items were gone from the purchase list.
What I did:
- purchased some items as a tester.
(I'm pretty sure a dialog said it's a test purchase.) - refunded them in Google Play Console afterwards.
- wait until their payment statuses turned into "Refunded".
- cleared caches of Google Play Services & Google Play.
- checked my purchases
BillingClient.queryPurchases()
provides in my app. - waited for a few days. reinstalled my app. All of them didn't work.
Minimal check code:
private val client: BillingClient // provided
fun check() {
// client.startConnection() already completed here
client.queryPurchases(BillingClient.SkuType.INAPP)
.run {
purchasesList
.map { it.originalJson }
.forEach { Log.d("billing", "json = $it") }
}
}
What I want to do:
I want to cancel all my test purchases.
Does anyone have any suggestions? Thank you in advance.