SQRDCheckoutControllerDelegate
@protocol SQRDCheckoutControllerDelegate <NSObject>
The delegate of a SQRDCheckoutController object must adopt the SQRDCheckoutControllerDelegate protocol.
-
Indicates that the checkout flow succeeded.
Declaration
Objective-C
- (void)checkoutController:(nonnull SQRDCheckoutController *)checkoutController didFinishCheckoutWithResult:(nonnull SQRDCheckoutResult *)result;Swift
func checkoutController(_ checkoutController: SQRDCheckoutController, didFinishCheckoutWith result: SQRDCheckoutResult)Parameters
checkoutControllerThe checkout controller instance that finished checkout.
resultThe result of the completed transaction.
-
Indicates that the checkout flow failed.
Declaration
Objective-C
- (void)checkoutController:(nonnull SQRDCheckoutController *)checkoutController didFailWithError:(nonnull NSError *)error;Swift
func checkoutController(_ checkoutController: SQRDCheckoutController, didFailWith error: Error)Parameters
checkoutControllerThe checkout controller instance that failed with an error.
errorAn error in the
SQRDCheckoutControllerErrorDomain. SeeSQRDCheckoutControllerErrorfor possible error types. -
Indicates that checkout was cancelled.
Declaration
Objective-C
- (void)checkoutControllerDidCancel: (nonnull SQRDCheckoutController *)checkoutController;Swift
func checkoutControllerDidCancel(_ checkoutController: SQRDCheckoutController)Parameters
checkoutControllerThe checkout controller instance that was cancelled.
SQRDCheckoutControllerDelegate Protocol Reference