Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing raw receipt data #665

Open
RohovDmytro opened this issue Jun 22, 2023 · 2 comments
Open

Accessing raw receipt data #665

RohovDmytro opened this issue Jun 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@RohovDmytro
Copy link

RohovDmytro commented Jun 22, 2023

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 :)

@RohovDmytro RohovDmytro added the enhancement New feature or request label Jun 22, 2023
@RCGitBot
Copy link
Contributor

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@HaleyRevcat
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants