Cannot upgrade android in-app subscription. Error: "Something went wrong on our end. Please try again."

Tej*_*tap 6 android in-app-billing play-billing-library

Issue:

  • Cannot upgrade current subscription to different subscription.
  • Showing Error: "Something went wrong on our end. Please try again."

Description:

  • Were using play billing library v3.0.3 and we handled subscription upgrade as code below.
BillingFlowParams purchaseParams = BillingFlowParams.newBuilder()
                    .setSkuDetails(skuDetails)
                    .setOldSku(oldSKU, oldPurchaseToken)
                    .setReplaceSkusProrationMode(IMMEDIATE_WITH_TIME_PRORATION)
                    .build();
Run Code Online (Sandbox Code Playgroud)
  • Things were as expected when we launched.
  • Some users reported that they cannot upgrade their subscription.
  • We tested upgrade and same error was encountered: "Something went wrong on our end. Please try again."
  • Then we upgraded to play billing library v4.0.0 thinking it would solve our issue.
BillingFlowParams billingFlowParams = BillingFlowParams.newBuilder()
        .setSubscriptionUpdateParams(SubscriptionUpdateParams.newBuilder()
            .setOldSkuPurchaseToken(oldPurchaseToken)
            .setOldSkuPurchaseId(oldSKU) // This method is not available in lib[4.0.0] but mentioned in docs
            .setReplaceSkusProrationMode(IMMEDIATE_WITH_TIME_PRORATION))
        .setSkuDetails(skuDetails)
        .build();
Run Code Online (Sandbox Code Playgroud)
  • Same error is reported again: "Something went wrong on our end. Please try again."
  • Also new play billing library v4.0.0 does not have method setOldSkuPurchaseId() in class SubscriptionUpdateParams.Builder but mentioned in developer docs

Error Screenshot Attached Below

截屏

Vis*_*ani 0

由于印度储备银行的新电子授权通知,您的某些订阅体验可能会发生变化。

欲了解更多详情,请查看此