Android In-App Billing: Purchase state stays “purchased” after order cancelation

前端 未结 9 2359
余生分开走
余生分开走 2020-12-23 19:36

I\'m currently testing my InApp billing mechanism (using the InApp Billing version 3 API, therefore taking the TrivialDrive example as reference).

I have one managed

相关标签:
9条回答
  • 2020-12-23 20:16

    What you can use is the autoRenewing field of the purchase data. According to the documentation:

    autoRenewing: Indicates whether the subscription renews automatically. If true, the subscription is active, and will automatically renew on the next billing date. If false, indicates that the user has canceled the subscription.

    And this field get updated immediately after the cancellation.

    0 讨论(0)
  • 2020-12-23 20:17

    Step 1. Wait approximately 10 minutes; Until you see the "cancelled order" was delivered. in your google wallet.

    Sep 15 11:28 AM Cancelled The order was delivered.

    Sep 15 11:18 AM Cancelled You cancelled this order. Reason: Customer request to cancel.

    Step 2. Logout your test google account on the device and then re-login.

    At least that solved my problem.

    0 讨论(0)
  • 2020-12-23 20:19

    After having waited for about 12 hours and having tried everything suggested here, I was still facing the same issue. What did the trick for me was the following adb command:

    adb shell pm clear com.android.vending

    0 讨论(0)
提交回复
热议问题