Subscription purchase with offer on iOS
Closed this issue · 1 comments
ManuelFEMartinho commented
Version of flutter_inapp_purchase
flutter_inapp_purchase: ^5.6.1
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
It is expected to present the discount/offer values
Actual behavior
The main subscription details is showed
Tested environment (Emulator? Real Device?)
Sandbox, real device
Steps to reproduce the behavior
I want to subscribe to a subscription that has a discount offer, that is a free trial
{
productId: xxx.xxx.xx.base.1.annual,
price: 299,
currency: EUR,
localizedPrice: 299,00 €,
title: Annual,
description: Annual Subscription,
introductoryPrice: ,
subscriptionPeriodNumberIOS: 1,
subscriptionPeriodUnitIOS: YEAR,
introductoryPricePaymentModeIOS: ,
introductoryPriceNumberOfPeriodsIOS: ,
introductoryPriceSubscriptionPeriodIOS: ,
subscriptionPeriodAndroid: null,
signatureAndroid: null,
iconUrl: null,
originalJson: null,
originalPrice: null,
discounts: [
identifier: xxx.xxx.xxx.base.1.trial,
type: SUBSCRIPTION,
numberOfPeriods: 14,
price: 0.0,
localizedPrice: 0,00 €,
paymentMode: FREETRIAL,
subscriptionPeriod: DAY,
]
}
I can I call the app store to show up this offer with a first time user
I am trying this,
await FlutterInappPurchase.instance.requestProductWithOfferIOS(
productDetails.productId!,
'xxx.xxx.xxx',
offer.toJson(),
);
but I'm getting allways the product details specifications, with the price and details
the offer in the code is the DiscountIOS on the list
Thank you in advance
github-actions commented
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.