Skip to main content
Question

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

  • January 16, 2024
  • 1 reply
  • 72 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
  • 382 replies
  • 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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings