problem with subscription offer( discount offer) payment

Number:rdar://51303441 Date Originated:May 31 2019
Status:Open Resolved:NO
Product:iOS + SDK (StoreKit) Product Version:12.2, 12.3.1
Classification:Serious Bug Reproducible:Always

We currently have subscriptions integrated, and it works without any issues.
We are integrating new discount subscription ( and we have encountered the following error.
While trying to purchase subscription (in sandbox environment) with a discounted offer , we get success screen on the device but while debugging we get an error:
'Error Domain=SKErrorDomain Code=0 “Cannot connect to iTunes Store” UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}'.
While checking with the store api( we confirmed that the purchase was indeed successful ( new renewal with "promotional_offer_id" was present in the receipt).

Expected Results:
This should not throw an error when the purchase is successful.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!