Skip to main content
Question

Is it possible to add a custom field to the package variable?

  • January 16, 2024
  • 1 reply
  • 107 views

Forum|alt.badge.img+4
try {
const {
purchaserInfo,
productIdentifier
} = await Purchases.purchasePackage(package);
if (typeof purchaserInfo.entitlements.active.pro !== "undefined") {
// Unlock that great "pro" content
}
} catch (e) {
/* No purchase */
}

 

Is it possible to add a custom field to the package variable?
I would like to access the field data through a webhook.

This post has been closed for comments

1 reply

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • January 18, 2024

Hey @bnocorp !

 

As of now, it is not possible to add custom fields to the package variables. I noticed that you are still using PurchaserInfo, I recommend updating to a more up-to-date version of the SDK as more information will be available in packages and the overall experience would likely be better and improved. 

 

More information on webhooks can be found here: https://www.revenuecat.com/docs/webhooks