def _string_for_mac(self): macString = Constants.getOperationName() + "=" + str(self._operation) macString = Utils.appendField(macString, Constants.getTimestampName(), self._timestamp) macString = Utils.appendField(macString, Constants.getShopIdName(), self._shop_id) macString = Utils.appendField(macString, Constants.getOperatorIdName(), self._operator_id) macString = Utils.appendField(macString, Constants.getReqRefNumName(), self._reqRefNum) macString = Utils.appendField(macString, Constants.getThreeDSTransIdName(), self._three_DS_trans_id) return macString
def _string_for_mac(self): macString = str() macString = Constants.getOperationName() + "=" + str(self._operation) macString = Utils.appendField(macString, Constants.getTimestampName(), self._timestamp) macString = Utils.appendField(macString, Constants.getShopIdName(), self._shop_id) macString = Utils.appendField(macString, Constants.getOperatorIdName(), self._operator_id) macString = Utils.appendField(macString, Constants.getReqRefNumName(), self._reqRefNum) macString = Utils.appendField(macString, Constants.getOrderIdName(), self._order_id) macString = Utils.appendField(macString, Constants.getOptionsName(), self._options) macString = Utils.appendField(macString, Constants.getProductRefName(), self._product_ref) return macString
def _string_for_mac(self): macString = Constants.getOperationName() + "=" + str(self._operation) macString = Utils.appendField(macString, Constants.getTimestampName(), self._timestamp) macString = Utils.appendField(macString, Constants.getShopIdName(), self._shop_id) macString = Utils.appendField(macString, Constants.getOperatorIdName(), self._operator_id) macString = Utils.appendField(macString, Constants.getReqRefNumName(), self._reqRefNum) macString = Utils.appendField(macString, Constants.getTransactionIdName(), self._transaction_id) macString = Utils.appendField(macString, Constants.getOrderIdName(), self._order_id) macString = Utils.appendField(macString, Constants.getAmountName(), self._amount) macString = Utils.appendField(macString, Constants.getCurrencyName(), self._currency) macString = Utils.appendField(macString, Constants.getExponentName(), self._exponent) macString = Utils.appendField(macString, Constants.getOpDescrName(), self._op_descr) macString = Utils.appendField(macString, Constants.getOptionsName(), self._options) return macString
def _string_for_mac(self): macString = Constants.getOperationName() + "=" + str(self._operation) macString = Utils.appendField(macString, Constants.getTimestampName(), self._timestamp) macString = Utils.appendField(macString, Constants.getShopIdName(), self._shop_id) macString = Utils.appendField(macString, Constants.getOrderIdName(), self._order_id) macString = Utils.appendField(macString, Constants.getOperatorIdName(), self._operator_id) macString = Utils.appendField(macString, Constants.getReqRefNumName(), self._reqRefNum) macString = Utils.appendField(macString, Constants.getPanName(), self._pan) macString = Utils.appendField(macString, Constants.getCvv2Name(), self._cvv2) macString = Utils.appendField(macString, Constants.getExpDateName(), self._exp_date) macString = Utils.appendField(macString, Constants.getAmountName(), self._amount) macString = Utils.appendField(macString, Constants.getCurrencyName(), self._currency) macString = Utils.appendField(macString, Constants.getExponentName(), self._exponent) macString = Utils.appendField(macString, Constants.getAccountingModeName(), self._accounting_mode) macString = Utils.appendField(macString, Constants.getNetworkName(), self._network) macString = Utils.appendField(macString, Constants.getEmailChName(), self._email_ch) macString = Utils.appendField(macString, Constants.getUserIdName(), self._user_id) macString = Utils.appendField(macString, Constants.getAcquirerName(), self._acquirer) macString = Utils.appendField(macString, Constants.getIpAddressName(), self._ip_address) macString = Utils.appendField(macString, Constants.getOpDescrName(), self._op_descr) macString = Utils.appendField(macString, Constants.getUsrAuthFlagName(), self._usr_auth_flag) macString = Utils.appendField(macString, Constants.getOptionsName(), self._options) macString = Utils.appendField(macString, Constants.getAntiFraudName(), self._anti_fraud) macString = Utils.appendField(macString, Constants.getProductRefName(), self._product_ref) macString = Utils.appendField(macString, Constants.getNameName(), self._name) macString = Utils.appendField(macString, Constants.getSurnameName(), self._surname) macString = Utils.appendField(macString, Constants.getTaxIdName(), self._tax_id) macString = Utils.appendField(macString, Constants.getTrecurrName(), self._tRecurr) macString = Utils.appendField(macString, Constants.getCrecurrName(), self._cRecurr) macString = Utils.appendField(macString, Constants.getInstallmentsNumberName(), self._installments_number) return macString
def _string_for_mac(self, apiKey): macString = Constants.getUrlMsName() + "=" + self._url_ms macString = Utils.appendField(macString, Constants.getUrlDoneName(), self._url_done) macString = Utils.appendField(macString, Constants.getOrderIdName(), self._order_id) macString = Utils.appendField(macString, Constants.getShopIdName(), self._shop_id) macString = Utils.appendField(macString, Constants.getAmountName(), self._amount) macString = Utils.appendField(macString, Constants.getCurrencyName(), self._currency) macString = Utils.appendField(macString, Constants.getExponentName(), self._exponent) macString = Utils.appendField(macString, Constants.getAccountingModeName(), self._accounting_mode) macString = Utils.appendField(macString, Constants.getAuthorModeName(), self._author_mode) macString = Utils.appendField(macString, Constants.getOptionsName(), self._options) if self._options is not None and "B" in self._options: macString = Utils.appendField(macString, Constants.getNameName(), self._name) macString = Utils.appendField(macString, Constants.getSurnameName(), self._surname) macString = Utils.appendField(macString, Constants.getTaxIdName(), self._tax_id) macString = Utils.appendField(macString, Constants.getLockCardName(), self._lock_card) if self._options is not None and "F" in self._options: macString = Utils.appendField(macString, Constants.getCommisName(), self._commis) if self._options is not None and ("O" in self._options or "V" in self._options): macString = Utils.appendField(macString, Constants.getOrdDescrName(), self._ord_descr) macString = Utils.appendField(macString, Constants.getVSIDName(), self._VSID) macString = Utils.appendField(macString, Constants.getOpDescrName(), self._op_descr) if self._options is not None and "D" in self._options: macString = Utils.appendField(macString, Constants.getRemainingDurationName(), self._remaining_duration) macString = Utils.appendField(macString, Constants.getUserIdName(), self._userId) macString = Utils.appendField(macString, Constants.getBBPostepayName(), self._bb_poste_pay) macString = Utils.appendField(macString, Constants.getBPCardsName(), self._bp_cards) if self._network is not None and "91" in self._network: macString = Utils.appendField(macString, Constants.getPhoneNumberName(), self._phone_number) macString = Utils.appendField(macString, Constants.getCausationName(), self._causation) macString = Utils.appendField(macString, Constants.getUserName(), self._user) macString = Utils.appendField(macString, Constants.getProductRefName(), self._product_ref) macString = Utils.appendField(macString, Constants.getAntiFraudName(), self._anti_fraud) if self._data_3DS_json is not None: macString = Utils.appendField( macString, Constants.get3DSJsonDataName(), AES.AES_encrypt(self._data_3DS_json, apiKey)) macString = Utils.appendField(macString, Constants.getTrecurrName(), self._t_recurr) macString = Utils.appendField(macString, Constants.getCrecurrName(), self._c_recurr) macString = Utils.appendField(macString, Constants.getInstallmentsNumberName(), self._installments_number) macString = Utils.appendField(macString, Constants.getTokenName(), self._token) macString = Utils.appendField(macString, Constants.getExpDateName(), self._exp_date) macString = Utils.appendField(macString, Constants.getNetworkName(), self._network) macString = Utils.appendField(macString, Constants.getIBANName(), self._iban) return macString
def _string_for_mac(self, api_result_key): macString = Constants.getOperationName() + "=" + str(self._operation) macString = Utils.appendField(macString, Constants.getTimestampName(), self._timestamp) macString = Utils.appendField(macString, Constants.getShopIdName(), self._shop_id) macString = Utils.appendField(macString, Constants.getOrderIdName(), self._order_id) macString = Utils.appendField(macString, Constants.getOperatorIdName(), self._operator_id) macString = Utils.appendField(macString, Constants.getReqRefNumName(), self._reqRefNum) macString = Utils.appendField(macString, Constants.getPanName(), self._pan) macString = Utils.appendField(macString, Constants.getCvv2Name(), self._cvv2) macString = Utils.appendField(macString, Constants.getExpDateName(), self._exp_date) macString = Utils.appendField(macString, Constants.getAmountName(), self._amount) macString = Utils.appendField(macString, Constants.getCurrencyName(), self._currency) macString = Utils.appendField(macString, Constants.getExponentName(), self._exponent) macString = Utils.appendField(macString, Constants.getAccountingModeName(), self._accounting_mode) macString = Utils.appendField(macString, Constants.getNetworkName(), self._network) macString = Utils.appendField(macString, Constants.getEmailChName(), self._email_ch) macString = Utils.appendField(macString, Constants.getUserIdName(), self._user_id) macString = Utils.appendField(macString, Constants.getAcquirerName(), self._acquirer) macString = Utils.appendField(macString, Constants.getIpAddressName(), self._ip_address) macString = Utils.appendField(macString, Constants.getOpDescrName(), self._op_descr) macString = Utils.appendField(macString, Constants.getUsrAuthFlagName(), self._usr_auth_flag) macString = Utils.appendField(macString, Constants.getOptionsName(), self._options) macString = Utils.appendField(macString, Constants.getAntiFraudName(), self._anti_fraud) macString = Utils.appendField(macString, Constants.getProductRefName(), self._product_ref) macString = Utils.appendField(macString, Constants.getNameName(), self._name) macString = Utils.appendField(macString, Constants.getSurnameName(), self._surname) macString = Utils.appendField(macString, Constants.getTaxIdName(), self._tax_id) macString = Utils.appendField( macString, Constants.getThreeDSDataName(), AES.AES_encrypt(self._three_ds_data, api_result_key)) macString = Utils.appendField(macString, Constants.getNameCHName(), self._name_ch) macString = Utils.appendField(macString, Constants.getNotifUrl(), self._notify_url) macString = Utils.appendField(macString, Constants.getThreeDSMtdNotifUrlName(), self._three_ds_mtd_notify_url) macString = Utils.appendField(macString, Constants.getChallengeWinSizeName(), self._challenge_win_size) macString = Utils.appendField(macString, Constants.getTrecurrName(), self._tRecurr) macString = Utils.appendField(macString, Constants.getCrecurrName(), self._cRecurr) macString = Utils.appendField(macString, Constants.getInstallmentsNumberName(), self._installments_number) return macString