public protocol PaymentComponentDelegate : AnyObject
Describes the methods a delegate of the payment component needs to implement.
Invoked when the payment component finishes, typically by a user submitting their payment details.
The data supplied by the payment component.
The payment component from which the payment details were submitted.
Invoked when the payment component fails.
func didFail(with error: Error, from component: PaymentComponent)
The error that occurred.
The payment component that failed.