Sha256: 80fd7ecc47b8683fff1e64fb7a33388577d6b5e72e0bdc133b880a8c65c6c02a
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
module Datatrans::Web module ViewHelper def datatrans_notification_request_hidden_fields(datatrans, transaction) warn "DEPRECATION WARNING: Support for the payment page is deprecated and will be removed in the next major version. Please use the JSON API instead." fields = [ hidden_field_tag(:merchantId, datatrans.merchant_id), hidden_field_tag(:hiddenMode, transaction.params[:hiddenMode]), hidden_field_tag(:reqtype, transaction.params[:reqtype]), hidden_field_tag(:amount, transaction.params[:amount]), hidden_field_tag(:currency, transaction.params[:currency]), hidden_field_tag(:useAlias, transaction.params[:useAlias]), hidden_field_tag(:sign, transaction.signature), hidden_field_tag(:refno, transaction.params[:refno]), hidden_field_tag(:uppCustomerDetails, transaction.params[:uppCustomerDetails]) ] [:uppCustomerName, :uppCustomerEmail].each do |field_name| if transaction.params[field_name].present? fields << hidden_field_tag(field_name, transaction.params[field_name]) end end fields.join.html_safe end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datatrans-5.2.0 | lib/datatrans/web/view_helper.rb |