lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
245 stars 17 forks source link

51303441: problem with subscription offer( discount offer) payment #21294

Open openradar-mirror opened 5 years ago

openradar-mirror commented 5 years ago

Description

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.

- Product Version: 12.2, 12.3.1 Created: 2019-06-03T08:47:47.788795 Originated: 2019-05-31T00:00:00 Open Radar Link: http://www.openradar.me/51303441