'How do I get he product info from the productIdentifier in RevenueCat

I am using RevenueCat for inline purchase and I would like to be able to show the data in the attached image. In particular, I need to show following subscription data:

subscription name: Was able to get entitlementInfo.identifier but I need entitlementInfo.description. I could not get that

purchase value: Can't get that from entitlementInfo.

subscription period: Can't get that from entitlement info.

expirationDate: was able to get it from entitlementInfo.expirationDate

In the entitlementInfo there is a property called productIdentifier which can help me get some of the data I want. But I will need to map productIdentifier to the correct package. Does anyone knows how to do that?

Thank for your help. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source