You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
kMKStoreKitProductPurchaseFailedNotification doesn't contain the error object. It's required to determine whether the user pressed Cancel (error.code == SKErrorPaymentCancelled)
#246
Open
funnel20 opened this issue
Sep 21, 2015
· 0 comments
On an error I'd like to show an Alert to the user.
However, when he presses cancel on one of the App Store Alerts (like entering App Store credentials), this kMKStoreKitProductPurchaseFailedNotification is also send.
If he presses Cancel I don't want to show an Alert.
In other words I need to now the error code.
The latter can be compared to SKErrorPaymentCancelled.
The text was updated successfully, but these errors were encountered:
funnel20
changed the title
kMKStoreKitProductPurchaseFailedNotification doesn't contain the error object. Is required to determine whether the user pressed Cancel (error.code == SKErrorPaymentCancelled)
kMKStoreKitProductPurchaseFailedNotification doesn't contain the error object. It's required to determine whether the user pressed Cancel (error.code == SKErrorPaymentCancelled)
Sep 21, 2015
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
On an error I'd like to show an Alert to the user.
However, when he presses cancel on one of the App Store Alerts (like entering App Store credentials), this kMKStoreKitProductPurchaseFailedNotification is also send.
If he presses Cancel I don't want to show an Alert.
In other words I need to now the error code.
To do so, I changed the following line:
in:
by using the complete SKPaymentTransaction as object.
When receiving the notification in a class, the transaction ID can be retrieved via:
And the error code via:
The latter can be compared to SKErrorPaymentCancelled.
The text was updated successfully, but these errors were encountered: