def verifyPassword(self, userOtpPassword): self.__merchant = self.__selectMerchant() self.__merchant_password = self.__merchant.merchant_password otpInterface = OTPInterface(phone=self.__clearPhoneNumber, merchant_id=self.__merchant_id, merchant_password=self.__merchant_password, sesssionInfo=self.sessionInfo) isSuccess = otpInterface.verifyPassword(userOtpPassword) self.errorTitle = otpInterface.getErrorTitle() self.errorText = otpInterface.getErrorText() return isSuccess
def sendPhone(self): self.__merchant = self.__selectMerchant() self.__merchant_password = self.__merchant.merchant_password self.__smsTextStart = self.__merchant.sms_text_start self.__inserts_params_to_sms_text_start() self.__smsTextEnd = self.__merchant.sms_text_end otpInterface = OTPInterface(phone=self.__clearPhoneNumber, merchant_id=self.__merchant_id, merchant_password=self.__merchant_password, smsTextStart=self.__smsTextStart, smsTextEnd=self.__smsTextEnd, sesssionInfo=self.sessionInfo) isSuccess = otpInterface.sendPassword() self.errorTitle = otpInterface.getErrorTitle() self.errorText = otpInterface.getErrorText() return isSuccess