Skip to main content
Solved

Anyway to attach custom metadata to a user's payment


Forum|alt.badge.img+4

We need to add some metadata (key-values) to user’s payments. As an example, we’d like to send workspaceId and other key-value parameters along with a payment that user is creating.

I understand that there is a Subscriber attributes which offers capturing custom metadata on the user object, however what we need is to attach metadata to individual payments and not users.

Anyway to acheive this functionality with RevenueCat APIs?

Best answer by sundeep

This question was handled through our ticketing system, but posting the response here for visibility:

Unfortunately, passing metadata along with a purchase is not a use case currently supported by RevenueCat, but we’ve added this as a feature request. As a workaround, if you're keeping app user IDs in your own database, you could make a call to your backend to update a column for that particular user.

View original
Did this post help you find an answer to your question?

14 replies

sundeep
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 138 replies
  • Answer
  • January 21, 2022

This question was handled through our ticketing system, but posting the response here for visibility:

Unfortunately, passing metadata along with a purchase is not a use case currently supported by RevenueCat, but we’ve added this as a feature request. As a workaround, if you're keeping app user IDs in your own database, you could make a call to your backend to update a column for that particular user.


Forum|alt.badge.img+4
  • New Member
  • 1 reply
  • March 24, 2023

is there any update with this issue team? 

i also facing the same case, i need to send custom metadata when purchasing item, so i can receive the metadata on webhook


Forum|alt.badge.img+4
  • New Member
  • 3 replies
  • April 9, 2023

Any update on this? We also need to pass custom metadata attached to a payment we can retrieve in the webhook


Forum|alt.badge.img+2
  • New Member
  • 1 reply
  • June 1, 2023

I’m also wanting this. I honestly would have thought this would be a key feature for RevenueCat as it adds a layer on the purchases not possible with native implementations. 

A very real example is gifting another user. The gifter makes an IAP to buy a gift, and all it would need is some meta data of the giftee id or likewise  to have this all processed on the server safely via the web hook. Right now, my implementation looks like I have to setup an intent on our server, which then has to be looked up via some fingerprinting when the revenue cat event comes to the server (whilst the client can (and does) send info, handling drop outs, or app crashes etc could mean lose of finalisation if not done properly, so I’m left with relying on receipt data only which is unsuitable)


Given the apple server events go via rev cat, surely you can just add an optional meta property to the purchase option or a new purchase method, even if it’s limited to 256 characters, we could at least encrypt id’s and attach.

Be interested though if you have any docs on handling such a common payment feature in an app (gifting / tipping etc) using RevCat ;-)


Forum|alt.badge.img+5
  • New Member
  • 3 replies
  • November 3, 2023

We need that feature asap !!


Forum|alt.badge.img
  • New Member
  • 1 reply
  • November 23, 2023

When will this feature be available. It is a basic requirement to send metadata along with a Subscription purchase and get the information back in Webhook.

 

Can someone from RC team respond to this?


Forum|alt.badge.img+2
  • New Member
  • 1 reply
  • December 19, 2023

Any updates on this feature please, i need it asap, i need to attach a purchase to a particular post in my client app. 


Forum|alt.badge.img+3
  • New Member
  • 3 replies
  • January 6, 2024

Any update on this feature ? It would drastically simplify our payment flow


Forum|alt.badge.img+4
  • New Member
  • 3 replies
  • April 19, 2024

Any update on this @sundeep? I need to attach some metadata to a product purchase / recurring purchase and retrieve that in my webhook on my server side. Looks like many revenuecat users need this as well


Forum|alt.badge.img+6

Hi!
We are also looking for the exact same feature. We are decoupling purchases content from the SKU, and injecting some custom identifiers in a metadata field when a purchase starts would make our system robust.  


Forum|alt.badge.img+2

Same here. We have multiple teams where a user can buy “premium access” for the one he prefers. But my backend does not know what team the user selected when i handle the webhook coming vom rc.


Forum|alt.badge.img+1
  • New Member
  • 1 reply
  • August 20, 2024

Any update on this?


Forum|alt.badge.img+1
  • New Member
  • 1 reply
  • August 26, 2024

We'd also be very interested in this feature!

Sadly our use case isn’t possible without it. We’re selling upgrades to events that our users create. Without the ability to pass along the event id with the purchase we cannot really use RevenueCat :(


  • New Member
  • 1 reply
  • October 3, 2024

We also need this. Adding custom metadata for a single item purchase (or subscription) currently blocks us from using RevenueCat. We tried some workarounds using the app user ID but it’s a hack and breaks in edge cases.


Reply


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