Hi, Team
We are facing the below issues when trying to set up an event after purchase.
Request is unsuccessful. https://api.adapty.io/api/v1/sdk/in-apps/transaction-variation-id/ Code: 400, Response: {"errors":[{"detail":"Transaction with this id does not exist","status":"400","source":{"pointer":"/data"},"code":"TRANSACTION_NOT_FOUND"}]}
Java
Adapty.setVariationId(purchase.getOrderId(), paywall.getVariationId(), new ErrorCallback() {
@Override
public void onResult(@Nullable AdaptyError error) {
if (error == null) {
ObLogger.i(TAG, "setVariationId onResult: EventSent --> ");
} else {
ObLogger.i(TAG, "setVariationId onResult: error --> " + error.toString());
}
}
});
Note:
Paywall: Comes from "Adapty.getPaywall()" function
Purchase: Comes from GooglePlayBilling "onPurchasesUpdated()" method.
SDK : implementation 'io.adapty:android-sdk:2.9.1'