problem with subscription offer( discount offer) payment

Originator:Arthur.Aghekyan
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
 
Area:
StoreKit

Summary:
We currently have subscriptions integrated, and it works without any issues.
We are integrating new discount subscription (https://developer.apple.com/documentation/storekit/in-app_purchase/implementing_subscription_offers_in_your_app?language=objc) 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(https://sandbox.itunes.apple.com/verifyReceipt) 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.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!