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
storeCustomerCardController
The Store Customer Card controller instance that finished.
card
The 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
storeCustomerCardController
The Store Customer Card controller instance that failed with an error.
error
An error in the
SQRDStoreCustomerCardControllerErrorDomain
. SeeSQRDStoreCustomerCardControllerError
for 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
storeCustomerCardController
The Store Customer Card controller instance that was cancelled.