Accessing raw receipt data
It would be quite nice a re-assuring to have access to raw receipt data after making a purchase.
Perfectly reasonable place to find it:
const data = await Purchases.purchasePackage(item);
Having this data exposed via webhooks would also be nice.
I can only imagine the reason of not giving it away is making it harder to migrate. Vendor lock-in is understandable from the business side of things, but receipts is too important piece of the too important part of the software to leave it like that.
Am I missing something? Could not find anything in docs.
Part of the "feeling bad" feeling is that how close yet unreachable the receipt data is. The internals use it extensively, just do not exposing it.
Wish you nice profits, it's in my interest also, but gimme my receipts, thanks :)
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Hi, thanks for the feedback, I will pass this along to the team for consideration.
In the meantime, you could access the receipts via Apple and Google's APIs. In order to get this information, you will need to get this yourself from the customer's receipt or using the following from each store: Apple: https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/validating_receipts_with_the_app_store#3192731 Google: https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.products/get