I created a subscription offer that the developer decides when to apply it. In the docs on how to use it there is this Kotlin example PurchaseWith(offer) and then you can do it like that. I am looking in the Flutter SDK and I can’t find a way to do it. purchaseDiscountedPackage() and other functions say “iOS only”.
My suggestion is not to build the subscription option on your own (and I’m not sure you can). The idea is that you can use one of the subscriptionOptions that are part of a given store product.
In our (beta) version of the SDK with Billing Client 5, we do have a google specific method called purchaseSubscriptionOption. You can pass the specific option (offer) that you want to buy.
Use purchaseStoreProduct and pass the corresponding store product and it will use the defaultOption (offer).
My suggestion is not to build the subscription option on your own (and I’m not sure you can). The idea is that you can use one of the subscriptionOptions that are part of a given store product.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.