bizz84 / SwiftyStoreKit

Lightweight In App Purchases Swift framework for iOS 8.0+, tvOS 9.0+ and macOS 10.10+ ⛺
MIT License
6.58k stars 795 forks source link

Transaction failed with SKErrorDomain Code=2 " #249

Open bhaveshbc opened 7 years ago

bhaveshbc commented 7 years ago

Platform

In app purchase type

Environment

Version

ℹ 0.10.4

Related issues

Report

Issue summary

ℹ my app's subset of users reciving error :

Transaction failed unknown reasonError Domain=SKErrorDomain Code=2 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}

is user is charged for this or this error occured when user cancelled transaction

What did you expect to happen

ℹ Transaction Should be completed Successfully

What happened instead

ℹ Transaction Failed with Unknown reason

bhaveshbc commented 7 years ago

Hi We have live app and reciving above error continuosly. i just want to know in which case storekit return this error.and also want to know if this error occure that time user payment is done or not. Thanks in advance

hernangonzalez commented 7 years ago

+1

bb-git commented 7 years ago

I get this error always when I cancel the purchase, not matter if I cancel directly or enter my password and press cancel then. I never get .paymentCancelled. This is in sandbox.

viniciusvieir commented 7 years ago

I'm also getting this message every time I try to buy a non-consumable in sandbox mode.

error(__C.SKError(_nsError: Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}))

ghost commented 7 years ago

but hear Payment is done as Our Users Told.and Product is not Delivered to Them.any Suggestion.how can i deliver product which payment is already done but product not Delivered due to Some Itunes Errror.

ghost commented 6 years ago

?

lianleven commented 4 years ago

I encountered the same error, screenshots of purchase records from users showing that the product is in processing