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
checkoutController
The checkout controller instance that finished checkout.
result
The 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
checkoutController
The checkout controller instance that failed with an error.
error
An error in the
SQRDCheckoutControllerErrorDomain
. SeeSQRDCheckoutControllerError
for possible error types. -
Indicates that checkout was cancelled.
Declaration
Objective-C
- (void)checkoutControllerDidCancel: (nonnull SQRDCheckoutController *)checkoutController;
Swift
func checkoutControllerDidCancel(_ checkoutController: SQRDCheckoutController)
Parameters
checkoutController
The checkout controller instance that was cancelled.