SQRDStoreCustomerCardControllerDelegate
@protocol SQRDStoreCustomerCardControllerDelegate
The delegate of a SQRDStoreCustomerCardController object must adopt the SQRDStoreCustomerCardControllerDelegate protocol.
-
Indicates that the Store Customer Card flow succeeded.
Note
Remove the loading indicator from your UI when you receivestoreCustomerCardController:didFinishWithCard:.Declaration
Objective-C
- (void)storeCustomerCardController:(nonnull SQRDStoreCustomerCardController *) storeCustomerCardController didFinishWithCard:(nonnull SQRDCard *)card;Swift
func storeCustomerCardController(_ storeCustomerCardController: SQRDStoreCustomerCardController, didFinishWith card: SQRDCard)Parameters
storeCustomerCardControllerThe Store Customer Card controller instance that finished.
cardThe card stored by the controller.
-
Indicates that the Store Customer Card flow failed.
Note
Remove the loading indicator from your UI when you receivestoreCustomerCardController:didFailWithError:.Declaration
Objective-C
- (void)storeCustomerCardController:(nonnull SQRDStoreCustomerCardController *) storeCustomerCardController didFailWithError:(nonnull NSError *)error;Swift
func storeCustomerCardController(_ storeCustomerCardController: SQRDStoreCustomerCardController, didFailWith error: Error)Parameters
storeCustomerCardControllerThe Store Customer Card controller instance that failed with an error.
errorAn error in the
SQRDStoreCustomerCardControllerErrorDomain. SeeSQRDStoreCustomerCardControllerErrorfor possible error types. -
Indicates that the Store Customer Card flow was cancelled.
Note
Remove the loading indicator from your UI when you receivestoreCustomerCardControllerDidCancel:.Declaration
Objective-C
- (void)storeCustomerCardControllerDidCancel: (nonnull SQRDStoreCustomerCardController *)storeCustomerCardController;Swift
func storeCustomerCardControllerDidCancel(_ storeCustomerCardController: SQRDStoreCustomerCardController)Parameters
storeCustomerCardControllerThe Store Customer Card controller instance that was cancelled.
SQRDStoreCustomerCardControllerDelegate Protocol Reference