STPPaymentStatus
enum STPPaymentStatus {}
An enum representing the status of a payment requested from the user.
-
The payment succeeded.
Declaration
Objective-C
STPPaymentStatusSuccess
Swift
case success = 0
-
The payment failed due to an unforeseen error, such as the user’s Internet connection being offline.
Declaration
Objective-C
STPPaymentStatusError
Swift
case error = 1
-
The user cancelled the payment (for example, by hitting “cancel” in the Apple Pay dialog).
Declaration
Objective-C
STPPaymentStatusUserCancellation
Swift
case userCancellation = 2