We are facing a issue of transaction mismatch between App Store server notification and subscription status api because of this we are not able to activate the expected subscription for user.
User has successfully purchased a subscription from application. On our server we got the notification with below transaction :
{
** "transactionId": "170001503839428",
"originalTransactionId": "170001503839428",**
"webOrderLineItemId": "170000681682289",
"bundleId": "com.*****",
"productId": "com.**.*",
"subscriptionGroupIdentifier": "21020104",
"purchaseDate": 1668398097000,
"originalPurchaseDate": 1668398098000,
"expiresDate": 1699934097000,
"quantity": 1,
"type": "Auto-Renewable Subscription",
"appAccountToken": "2d98c4f1-3af9-4965-89ca-0495940d1a58",
"inAppOwnershipType": "PURCHASED",
"signedDate": 1669031276395,
"environment": "Production"
}
We tried to validate the transaction using originalTransactionId (170001503839428) through subscription status api. We got below latest transaction from api having different originalTransactionId:
{
** "transactionId": "170001466326163",
"originalTransactionId": "170001466326163",**
"webOrderLineItemId": "170000661796452",
"bundleId": "com.*****",
"productId": "com.**.",
"subscriptionGroupIdentifier": "21020104",
"purchaseDate": 1665113844000,
"originalPurchaseDate": 1665113845000,
"expiresDate": 1665718644000,
"quantity": 1,
"type": "Auto-Renewable Subscription",
"inAppOwnershipType": "PURCHASED",
"signedDate": 1669036686044,
"offerType": 1,
"environment": "Production"
}
Because of this mismatch our validation is getting failed at our server.
How is it possible to get different transaction when we are providing different originalTransactionId as api parameter?
Dear team, please look into this.