In App Purchase latency in sandbox environment when doing upgrade/downgrade

Hi Team, We are developing a feature in one of our app to support in app purchase. For our validation, we are currently using sandbox environment. Sometimes when we are doing upgrade/downgrade , the receipt validation is taking 15mins to 1 hour on certain instances. As the monthly purchases are only 5mins and it is getting expired after certain renewal, we are not able to do much validation.

But during a new purchase it is reflected immediately. Is it something which you can help with us and will the same pattern follow in production as well.

Can you please help to resolve this queries or an alternate approaches which we can try.

Could you please provide more details about receipt validation taking such a large amount of time. Are you saying client receipt verification, server-server verification, or the transactions not appearing in the receipts take that amount of time?

Hello, Yes. When we do a fresh purchase and once it successful from the app, we get a receipt/purchase token and we push the details to our backend and using the sandbox api ('https://sandbox.itunes.apple.com/verifyReceipt'), our backend systems do a receipt validation (server side validation) and update in our database.

The same process we follow when doing upgrade/downgrade of the product using the app. We pass the receipt/purchase token to our backend but when they do a similar receipt validation, we are not getting a pending response. That usually takes 45 mins to 2 hours and only after that , it gets reflected in the latest_receipt_info block. Shared example below. 

{"environment": "Sandbox",
    "receipt": {},
"latest_receipt_info": [],
"pending_renewal_info": [
        {

            "auto_renew_product_id": "stage_product1_yearly",

            "product_id": "stage_product1_yearly",

            "original_transaction_id": "2000000197882635",

            "auto_renew_status": "1"

        }
    ]
}
In App Purchase latency in sandbox environment when doing upgrade/downgrade
 
 
Q