From 5b305066455a8458f2709381795e264986d74b1c Mon Sep 17 00:00:00 2001 From: the-wunmi Date: Fri, 24 Jan 2020 22:45:37 +0100 Subject: [PATCH] Fixed bug with rejection on ios --- ios/RNPaystack.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/RNPaystack.m b/ios/RNPaystack.m index 0cba805..02ea82f 100644 --- a/ios/RNPaystack.m +++ b/ios/RNPaystack.m @@ -130,7 +130,7 @@ - (BOOL)cardParamsAreValid:(NSString *)cardNumber withMonth:(NSString *)expMonth requestIsCompleted = NO; if (! [self cardParamsAreValid:params[@"cardNumber"] withMonth:params[@"expiryMonth"] withYear:params[@"expiryYear"] andWithCvc:params[@"cvc"]]) { - + requestIsCompleted = YES; // NSMutableDictionary *returnInfo = [self setErrorMsg:self.errorMsg withErrorCode:self.errorCode]; if (_reject) { _reject(self.errorCode, self.errorMsg, nil); @@ -224,7 +224,7 @@ - (BOOL)cardParamsAreValid:(NSString *)cardNumber withMonth:(NSString *)expMonth requestIsCompleted = NO; if (! [self cardParamsAreValid:params[@"cardNumber"] withMonth:params[@"expiryMonth"] withYear:params[@"expiryYear"] andWithCvc:params[@"cvc"]]) { - + requestIsCompleted = YES; // NSMutableDictionary *returnInfo = [self setErrorMsg:self.errorMsg withErrorCode:self.errorCode]; if (_reject) { _reject(self.errorCode, self.errorMsg, nil); @@ -280,4 +280,4 @@ - (BOOL)cardParamsAreValid:(NSString *)cardNumber withMonth:(NSString *)expMonth } @end - \ No newline at end of file +