PaymentSheetResult
@frozen
public enum PaymentSheetResult
The result of an attempt to confirm a PaymentIntent or SetupIntent
-
The customer completed the payment or setup
Note
The payment may still be processing at this point; don’t assume money has successfully moved.Your app should transition to a generic receipt view (e.g. a screen that displays “Your order is confirmed!”), and fulfill the order (e.g. ship the product to the customer) after receiving a successful payment event from Stripe - see https://stripe.com/docs/payments/handling-payment-events
Declaration
Swift
case completed
-
The customer canceled the payment or setup attempt
Declaration
Swift
case canceled
-
The attempt failed.
Declaration
Swift
case failed(error: Error)
Parameters
error
The error encountered by the customer. You can display its
localizedDescription
to the customer.