Skip to main content

Are purchase receipts available through SDK?


Forum|alt.badge.img+6

Hello,

Currently we are trying to obtain purchase receipts (or any required data to do receipt validation) in order to forward the event and keep track of IAPs on Game Analytics (it’s not an anlaytics tool you are seamlessly supporting atm).

Is there any way we can obtain this receipts so we can send the IAP events to GA? We are using RevenueCat Unity SDK.

Thanks!

3 replies

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 492 replies
  • December 7, 2021

Hey @Manel Simon Martínez!

Our SDK doesn’t currently include a method to return receipt data, and we don’t provide exports of raw receipts, but you can fetch receipt data on iOS from StoreKit directly. I’m not sure about finding this data from Unity, but natively in Swift you can do something like:

let receiptUrl = Bundle.main.appStoreReceiptURL
let receiptData = try? Data(contentsOf: receiptUrl) 

Then you can do what you need with that data. Does that help?


Forum|alt.badge.img+6

Thank you @cody for your answer.

At the moment we do not plan to assembly this feature natively, so I guess we won’t be able to get that data into GA for the time being.

Thank you


Forum|alt.badge.img+1

Hi there @cody .
Any updates regarding receipts or transaction id?

 

 


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