Skip to content

Commit 7cc1b17

Browse files
Fix for onBuyerVerificationSuccess sometimes getting called instead of onCardNonceRequestSuccess
1 parent f82e58a commit 7cc1b17

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ios/Classes/FSQIPCardEntry.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ - (void)startCardEntryFlow:(FlutterResult)result collectPostalCode:(BOOL)collect
5858
cardEntryForm.collectPostalCode = collectPostalCode;
5959
cardEntryForm.delegate = self;
6060
self.cardEntryViewController = cardEntryForm;
61+
self.contact = nil;
6162

6263
UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
6364
if ([rootViewController isKindOfClass:[UINavigationController class]]) {
@@ -98,6 +99,7 @@ - (void)startGiftCardEntryFlow:(FlutterResult)result
9899
SQIPCardEntryViewController *cardEntryForm = [self _makeGiftCardEntryForm];
99100
cardEntryForm.delegate = self;
100101
self.cardEntryViewController = cardEntryForm;
102+
self.contact = nil;
101103

102104
UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
103105
if ([rootViewController isKindOfClass:[UINavigationController class]]) {
@@ -108,6 +110,9 @@ - (void)startGiftCardEntryFlow:(FlutterResult)result
108110
}
109111
result(nil);
110112
}
113+
114+
#pragma mark - SQIPCardEntryViewControllerDelegate
115+
111116
- (void)cardEntryViewController:(SQIPCardEntryViewController *)cardEntryViewController didObtainCardDetails:(SQIPCardDetails *)cardDetails completionHandler:(CompletionHandler)completionHandler
112117
{
113118
if (self.contact) {

0 commit comments

Comments
 (0)