play-billing-samples
play-billing-samples copied to clipboard
Able to purchase monthly subscriptions but not able to purchase annual subscriptions
Hello, I am able to purchase monthly subscriptions but not able to purchase annual subscriptions. Both have different SKU crave.google.crave_total.1m and crave.google.crave_total.1y. I am able to query Product details but after launching the billing flow I get Error retrieving information from server DF-DFERH-01.
I am confused because it all worked fine for monthly subscriptions. I have 6 monthly and 6 annual subscriptions, it works fine for only monthly ones. I checked that the offer token is always correct in the case of yearly and monthly.
Here is my code to launch the billing flow-
val offerToken = productDetails.subscriptionOfferDetails?.get(0)?.offerToken val productDetailsParamsList = listOf(offerToken?.let { ProductDetailsParams.newBuilder() .setProductDetails(productDetails) .setOfferToken(it) .build() }) getObfuscatedAccountId()?.let { val billingFlowParams = BillingFlowParams.newBuilder() .setObfuscatedAccountId(it) .setProductDetailsParamsList(productDetailsParamsList) .build() return startBillingFlow(activity, billingFlowParams) }
This seems to be a general Play error so I would try with a different phone and account and see if it doesn't work there too. Also check that you are not already subscribed to the monthly.
See this also there is one poster who has a fix in there maybe it will work for you https://www.reddit.com/r/GooglePixel/comments/14ej3f2/how_do_i_fix_the_google_play_store_error_dfdferh01/
We have almost 10 licence tester accounts and none of them are able to make a purchase on annual subscriptions. We all are in different geo locations and trying on different devices.
It looks like the same issue is reproducible when we sent the wrong offer token while launching the billing flow. but I have to make sure to send the correct offer token for the subscriptions.