You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a confirmation modal, we'd like to display a summary of the purchase before confirmation.
Our yearly plan has an offer and we can display it on iOS like so :
if (selectedPlan.hasIntroductoryPrice) {
return `${selectedPlan.introPrice} pour ${selectedPlan.introDuration} puis ${selectedPlan.price}`;
}
selectedPlan is a PurchaselyPlan
On Android we'd like to do the same thing :
if (selectedPlan.hasOfferPrice) {
return `${selectedPlan.offerPrice} pour ${selectedPlan.offerDuration} puis ${selectedPlan.price}`;
}
but properties hasOfferPrice, offerPrice and offerDuration do not exist on PurchaselyPlan type.
Is this the right way to retrieve the promotional offer?
If so, can you modify the PurchaselyPlan type to add these properties ?
Thank you.
The text was updated successfully, but these errors were encountered:
Geoffrey63
changed the title
Expose offerPrice, offerDuration and hasOfferPrice fields
Expose offerPrice, offerDuration and hasOfferPrice properties
Oct 9, 2024
Hello,
In a confirmation modal, we'd like to display a summary of the purchase before confirmation.
Our yearly plan has an offer and we can display it on iOS like so :
selectedPlan
is aPurchaselyPlan
On Android we'd like to do the same thing :
but properties
hasOfferPrice
,offerPrice
andofferDuration
do not exist onPurchaselyPlan
type.Is this the right way to retrieve the promotional offer?
If so, can you modify the
PurchaselyPlan
type to add these properties ?Thank you.
The text was updated successfully, but these errors were encountered: