## 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)
url_retour = options[:url_retour] || bank_callback_order_transactions_url
url_retour_ok = options[:url_retour_ok] || bank_callback_order_transactions_url(order)
url_retour_err = options[:url_retour_err] || bank_err_order_transaction_url(order)
html = '
'
html.respond_to?(:html_safe) ? html.html_safe : html
end
end