Sha256: 2b4e331827fabca376e8967ee6ef9678db4c9822150a7fd0afb7320d100fc563

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

module Kaui
  module PaymentHelper

    def transaction_statuses
      Kaui::Payment::TRANSACTION_STATUSES
    end

    def colored_transaction_status(transaction_status)
      data = "<span class='alert-"
      if transaction_status != 'SUCCESS'
        data += "danger'>"
      else
        data += "success'>"
      end
      data += transaction_status
      data += '</span>'
      data.html_safe
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kaui-0.15.5 app/helpers/kaui/payment_helper.rb
kaui-0.15.4 app/helpers/kaui/payment_helper.rb
kaui-0.15.3 app/helpers/kaui/payment_helper.rb
kaui-0.15.2 app/helpers/kaui/payment_helper.rb