## refactor this module PaiementCic::FormHelper def paiement_cic_hidden_fields(order, price, order_transaction, options = {}) oa = PaiementCic.config(price, order_transaction.reference) oMac = PaiementCic.new sDate = Time.now.strftime("%d/%m/%Y:%H:%M:%S") chaine = [oMac.tpe, sDate, oa["montant"], oa["reference"].to_s, oa["texte-libre"], oMac.version, "FR", oMac.societe, "", "", "", "", "", "", "", "", "", "", ""].join("*") chaineMAC = oMac.computeHMACSHA1(chaine) html = ' ' html.respond_to?(:html_safe) ? html.html_safe : html end end