@frozen public enum PaymentSheetResult
The result of an attempt to confirm a PaymentIntent or SetupIntent
The customer completed the payment or setup
NoteThe 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
The customer canceled the payment or setup attempt
The attempt failed.
case failed(error: Error)
The error encountered by the customer. You can display its
localizedDescriptionto the customer.