Hello,
We are currently utilizing a coin wallet system within our app. When a user makes a purchase from either Android or iOS, coins are added to their wallet. However, we have recently noticed some unauthorized or unexpected purchases. To address this, we aim to verify purchases directly from the backend.
We have explored the following APIs for this purpose:
-
Purchases List API:
https://api.revenuecat.com/v2/projects/{project_id}/customers/{user_id}/purchases
While this API provides a list of purchases, it lacks the option to sort the results to obtain the most recent purchase.
-
Single Purchase API:
https://api.revenuecat.com/v2/projects/{project_id}/purchases/{purchase_id}
The
purchase_id
required for this API can only be retrieved through the previous API, making it impractical to directly verify purchases from Android and iOS.
After thorough investigation, we found that there is no API available to directly verify a purchase using the transaction ID. Additionally, there is no direct way to obtain the purchase_id
immediately after a transaction through the SDKs on Android and iOS.
We kindly request the implementation of an API that allows verification by directly passing the transaction ID. Alternatively, it would be beneficial if the SDKs could return the purchase_id
immediately upon completing a transaction.
Your assistance in this matter would be greatly appreciated.
Thank you for your support.