Closed dominic-simplan closed 7 months ago
Actually it is stange because the premium subscription monthly
contains the trial phase in the pricingPhases
While another, but very similar subscription (vsm4.0.subscription.monthly
) only has a single pricingPhase even though it also has a free trial:
Nevermind. Our first subscription has a free trial as an introductionary price, while the other subscription doesn't.
Not sure what happened in the AppStore as all were supposed to have a free trial, but it seems that the plugin works correctly and I cannot rely on CdvPurchase.Product.pricing
if your subscription has a free trial phase.
Observed behavior
Price for one of our subscriptions (premium.subscription.monthly) is returned as 0 and its paymentMode is set to "FreeTrial" when using CdvPurchase.Product.pricing to access the product price:
The raw data, however, contain the correct price:
Seems like the introPrice is returned as the price? I understand that our product probably has two pricing phases (FreeTrial and PayAsYouGo/Actual price) but shouldn't the convinience shortcut
CdvPurchase.Product.pricing
ignore free trials as they are free anyways?Logs:
Expected behavior
Price for the subscription should be $9.49.
System Info
Output of
cordova info
. Cordova Packages:Project Installed Platforms:
Project Installed Plugins:
Environment:
Same issue with cordova-ios@7