Play store in app purchase subscription: System.ArgumentException: subscription does not exist

Sreejith Sreenivasan 691 Reputation points
2022-09-26T14:53:45.523+00:00

I am trying to implement the in-app subscription on my xamarin forms android project. I have created a new subscription on the play store and added all the required details. Also, I make the subscription status on the play store to active. I am using InAppBilling for the in-app purchase implementation.

I have implemented the in-app purchase feature and when I start purchasing I am getting the below exception:

System.ArgumentException: monthly_subscription does not exist
at Plugin.InAppBilling.InAppBillingImplementation.PurchaseAsync (System.String productSku, System.String itemType, >Plugin.InAppBilling.IInAppBillingVerifyPurchase verifyPurchase) [0x000fe] in D:\a\1\s\src\Plugin.InAppBilling\InAppBilling.android.cs:241
at Plugin.InAppBilling.InAppBillingImplementation.PurchaseAsync (System.String productId, Plugin.InAppBilling.ItemType itemType, Plugin.InAppBilling.IInAppBillingVerifyPurchase verifyPurchase) [0x00127] in D:\a\1\s\src\Plugin.InAppBilling\InAppBilling.android.cs:221

There is no spelling mistake on the subscription product id. My app is not pushed to production, it is still under the draft stage. When I push the test build for creating the subscription I forget to add the "com.android.vending.BILLING" permission. Is my issue because of that?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
{count} votes