Method: Effective::Order#transaction_id

Defined in:
app/models/effective/order.rb

#transaction_idObject

For moneris and moneris_checkout. Just a unique value. Must be 50 characters or fewer or will raise moneris error.



370
371
372
# File 'app/models/effective/order.rb', line 370

def transaction_id
  [to_param, billing_name.to_s.parameterize.first(20).presence, Time.zone.now.to_i, rand(1000..9999)].compact.join('-')
end