Skip to main content
Question

How to add custom meta-data to webhook after success purchasing?

  • March 24, 2023
  • 1 reply
  • 438 views

Forum|alt.badge.img+4

After i do purchasing using function : 

final result = await Purchases.purchaseProduct(  "skuID",  type: PurchaseType.inapp,);

after successing do payment, revenueCat will trigger webhook and retrieve data just like : https://www.revenuecat.com/docs/webhooks#events-format

 

what if i want to adding new key-value such as meta-data into webhook response

just like : 

{

key1: value1

. . .

meta-data: {

   recipe_id: id_recipe_1

  }

}

do you have any idea with this case team?

This post has been closed for comments

1 reply

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • March 28, 2023

Hello,

In this case I would recommend setting the metadata using subscriber attributes before making the purchase. That way you will get the subscriber attributes in the webhook event.


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