|
|
@ -28,10 +28,12 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout { |
|
|
|
static let registerProcessText = "Kindly complete your registration process with us to start using GME services." |
|
|
|
static let registrationApprovalText = "Your registration request is in approval process. You will soon be able to use GME services" |
|
|
|
|
|
|
|
static let pennyTestText = "Please verify your primary bank account to complete the registration." |
|
|
|
static let pennyTestPrimaryBankText = "Please verify your primary bank account to complete the registration." |
|
|
|
static let verifyTitleText = "Verify your Account" |
|
|
|
static let continueRegistrationTitleText = "Continue the registration process" |
|
|
|
static let verificationInProcessTitleText = "Verification in Process" |
|
|
|
|
|
|
|
static let soonToUseGmeServicesTitle = "Your registration request is in approval process. You will soon be able to use GME services." |
|
|
|
} |
|
|
|
|
|
|
|
// MARK: IBOutlets |
|
|
@ -349,29 +351,29 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout { |
|
|
|
private func setVerificationText() { |
|
|
|
// && Utility.didPennyTestNotInitiated() |
|
|
|
if didNotSubmitKycAndNotVerified() { |
|
|
|
verificationTitleLabel.text = "Verify your Account" |
|
|
|
self.verificationText.text = "Kindly complete your registration process with us to start using GME services." |
|
|
|
verificationTitleLabel.text = StringConstants.verifyTitleText |
|
|
|
self.verificationText.text = StringConstants.registerProcessText |
|
|
|
self.verificationHeaderLeftImageview.image = UIImage.init(named: "ic_home_verified") |
|
|
|
let image = UIImage.init(named: "ic_home_payoutLocation") |
|
|
|
self.verificationHeaderRightButton.setImage(image, for: UIControlState.normal) |
|
|
|
}else if didSubmitKycAndNotVerified() && shouldShowPennyTestError() { |
|
|
|
verificationTitleLabel.text = "Continue the registration process" |
|
|
|
self.verificationText.text = AppConstants.primaryBankWArningMessage |
|
|
|
verificationTitleLabel.text = StringConstants.continueRegistrationTitleText |
|
|
|
self.verificationText.text = StringConstants.pennyTestPrimaryBankText |
|
|
|
self.verificationHeaderLeftImageview.image = #imageLiteral(resourceName: "shield.png") |
|
|
|
self.verificationNoticeHeightConstraint.constant = Constants.verificationNoticeHeight |
|
|
|
self.verificationNoticeView.alpha = 1 |
|
|
|
self.verificationHeaderRightButton.isHidden = true |
|
|
|
} |
|
|
|
else if didSubmitKycAndNotVerified() { |
|
|
|
verificationTitleLabel.text = "Verification in Process" |
|
|
|
self.verificationText.text = "Your registration request is in approval process. You will soon be able to use GME services." |
|
|
|
verificationTitleLabel.text = StringConstants.verificationInProcessTitleText |
|
|
|
self.verificationText.text = StringConstants.soonToUseGmeServicesTitle |
|
|
|
self.verificationHeaderLeftImageview.image = #imageLiteral(resourceName: "ic_home_verified") |
|
|
|
self.verificationHeaderRightButton.setImage(#imageLiteral(resourceName: "ic_home_payoutLocation"), for: UIControlState.normal) |
|
|
|
} |
|
|
|
|
|
|
|
if didSubmitKycAndVerified() && !Utility.pennyTestVerified() { |
|
|
|
verificationTitleLabel.text = "Continue the registration process" |
|
|
|
self.verificationText.text = AppConstants.primaryBankWArningMessage |
|
|
|
verificationTitleLabel.text = StringConstants.continueRegistrationTitleText |
|
|
|
self.verificationText.text = StringConstants.pennyTestPrimaryBankText |
|
|
|
self.verificationHeaderLeftImageview.image = #imageLiteral(resourceName: "shield.png") |
|
|
|
self.verificationNoticeHeightConstraint.constant = Constants.verificationNoticeHeight |
|
|
|
self.verificationNoticeView.alpha = 1 |
|
|
@ -446,7 +448,7 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout { |
|
|
|
let pennyTestComplete = Utility.pennyTestVerified() |
|
|
|
|
|
|
|
if kycSubmited == true && pennyTestComplete == false { |
|
|
|
self.show(error: AppConstants.primaryBankWArningMessage) |
|
|
|
self.show(error: StringConstants.pennyTestPrimaryBankText) |
|
|
|
return |
|
|
|
} |
|
|
|
if isUserVerified() { |
|
|
@ -464,7 +466,7 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout { |
|
|
|
let pennyTestComplete = Utility.pennyTestVerified() |
|
|
|
|
|
|
|
if kycSubmited == true && pennyTestComplete == false { |
|
|
|
self.show(error: AppConstants.primaryBankWArningMessage) |
|
|
|
self.show(error: StringConstants.pennyTestPrimaryBankText) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
@ -488,7 +490,7 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout { |
|
|
|
let pennyTestComplete = Utility.pennyTestVerified() |
|
|
|
|
|
|
|
if kycSubmited == true && pennyTestComplete == false { |
|
|
|
self.show(error: AppConstants.primaryBankWArningMessage) |
|
|
|
self.show(error: StringConstants.pennyTestPrimaryBankText) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
@ -501,7 +503,7 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout { |
|
|
|
let pennyTestComplete = Utility.pennyTestVerified() |
|
|
|
|
|
|
|
if kycSubmited == true && pennyTestComplete == false { |
|
|
|
self.show(error: AppConstants.primaryBankWArningMessage) |
|
|
|
self.show(error: StringConstants.pennyTestPrimaryBankText) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
@ -510,9 +512,9 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout { |
|
|
|
|
|
|
|
@objc private func showUnVerifiedMessage() { |
|
|
|
if didNotSubmitKycAndNotVerified() { |
|
|
|
self.alert(message: "Kindly complete your registration process with us to start using GME services.") |
|
|
|
self.alert(message: StringConstants.registerProcessText) |
|
|
|
} else if Utility.didSubmitKyc() && !Utility.pennyTestVerified() { |
|
|
|
self.alert(message: AppConstants.primaryBankWArningMessage) |
|
|
|
self.alert(message: StringConstants.pennyTestPrimaryBankText) |
|
|
|
} |
|
|
|
else |
|
|
|
if didSubmitKycAndNotVerified() { |
|
|
|