[Wed Oct 21 03:38:26.633000 2026] [Ecto.Adapters.SQL:debug] [pid 746004] [client -] QUERY ERROR source="global_table" db=0.0ms queue=1.2ms idle=48.8ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 03:38:26.644000 2026] [DaProductApp.GlobalSettings:error] [pid 746004] [client -] GlobalSettings load error: %MyXQL.Error{connection_id: 979962, message: "Table 'shukria_mms.global_table' doesn't exist", mysql: %{code: 1146, name: :ER_NO_SUCH_TABLE}, statement: "SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0"} - keeping last-known state [Wed Oct 21 03:38:26.857000 2026] [Bandit:error] [pid 746004] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at http failed, port 4001 already in use [Wed Oct 21 03:38:26.901000 2026] [application_controller:info] [pid 746004] [client -] Application da_product_app exited: DaProductApp.Application.start(:normal, []) returned an error: shutdown: failed to start child: DaProductAppWeb.Endpoint ** (EXIT) shutdown: failed to start child: {DaProductAppWeb.Endpoint, :http} ** (EXIT) shutdown: failed to start child: :listener ** (EXIT) :eaddrinuse [Wed Oct 21 03:38:26.910000 2026] [application_controller:info] [pid 746004] [client -] Application saas_kit exited: :stopped [Wed Oct 21 03:38:26.910000 2026] [application_controller:info] [pid 746004] [client -] Application httpoison exited: :stopped [Wed Oct 21 03:38:26.911000 2026] [application_controller:info] [pid 746004] [client -] Application cors_plug exited: :stopped [Wed Oct 21 03:38:26.911000 2026] [application_controller:info] [pid 746004] [client -] Application salad_ui exited: :stopped [Wed Oct 21 03:38:26.911000 2026] [application_controller:info] [pid 746004] [client -] Application tw_merge exited: :stopped [Wed Oct 21 03:38:26.911000 2026] [application_controller:info] [pid 746004] [client -] Application deep_merge exited: :stopped [Wed Oct 21 03:38:26.912000 2026] [application_controller:info] [pid 746004] [client -] Application nimble_parsec exited: :stopped [Wed Oct 21 03:38:26.912000 2026] [application_controller:info] [pid 746004] [client -] Application petal_components exited: :stopped [Wed Oct 21 03:38:26.912000 2026] [application_controller:info] [pid 746004] [client -] Application phoenix_html_helpers exited: :stopped [Wed Oct 21 03:38:26.914000 2026] [application_controller:info] [pid 746004] [client -] Application ranch exited: :stopped [Wed Oct 21 03:38:26.914000 2026] [application_controller:info] [pid 746004] [client -] Application dns_cluster exited: :stopped [Wed Oct 21 03:38:26.916000 2026] [application_controller:info] [pid 746004] [client -] Application tortoise exited: :stopped [Wed Oct 21 03:38:26.917000 2026] [application_controller:info] [pid 746004] [client -] Application gen_state_machine exited: :stopped [Wed Oct 21 03:38:26.917000 2026] [application_controller:info] [pid 746004] [client -] Application gettext exited: :stopped [Wed Oct 21 03:38:26.918000 2026] [application_controller:info] [pid 746004] [client -] Application expo exited: :stopped [Wed Oct 21 03:38:26.918000 2026] [application_controller:info] [pid 746004] [client -] Application telemetry_poller exited: :stopped [Wed Oct 21 03:38:26.919000 2026] [application_controller:info] [pid 746004] [client -] Application swoosh exited: :stopped [Wed Oct 21 03:38:26.920000 2026] [application_controller:info] [pid 746004] [client -] Application hackney exited: :stopped [Wed Oct 21 03:38:26.920000 2026] [application_controller:info] [pid 746004] [client -] Application metrics exited: :stopped [Wed Oct 21 03:38:26.920000 2026] [application_controller:info] [pid 746004] [client -] Application parse_trans exited: :stopped [Wed Oct 21 03:38:26.920000 2026] [application_controller:info] [pid 746004] [client -] Application syntax_tools exited: :stopped [Wed Oct 21 03:38:26.920000 2026] [application_controller:info] [pid 746004] [client -] Application mimerl exited: :stopped [Wed Oct 21 03:38:26.920000 2026] [application_controller:info] [pid 746004] [client -] Application idna exited: :stopped [Wed Oct 21 03:38:26.921000 2026] [application_controller:info] [pid 746004] [client -] Application unicode_util_compat exited: :stopped [Wed Oct 21 03:38:26.921000 2026] [application_controller:info] [pid 746004] [client -] Application xmerl exited: :stopped [Wed Oct 21 03:38:26.923000 2026] [application_controller:info] [pid 746004] [client -] Application tailwind exited: :stopped [Wed Oct 21 03:38:26.923000 2026] [application_controller:info] [pid 746004] [client -] Application esbuild exited: :stopped [Wed Oct 21 03:38:26.924000 2026] [application_controller:info] [pid 746004] [client -] Application phoenix_live_dashboard exited: :stopped [Wed Oct 21 03:38:26.924000 2026] [application_controller:info] [pid 746004] [client -] Application telemetry_metrics exited: :stopped [Wed Oct 21 03:38:26.925000 2026] [application_controller:info] [pid 746004] [client -] Application phoenix_live_view exited: :stopped [Wed Oct 21 03:38:26.925000 2026] [application_controller:info] [pid 746004] [client -] Application phoenix_live_reload exited: :stopped [Wed Oct 21 03:38:26.926000 2026] [application_controller:info] [pid 746004] [client -] Application file_system exited: :stopped [Wed Oct 21 03:38:26.926000 2026] [logger_backend:debug] [pid 746004] [client -] [logger: :removed_failing_handler, handler: {Phoenix.LiveReloader.WebConsoleLogger, Phoenix.LiveReloader.WebConsoleLogger}, log_event: %{meta: %{error_logger: %{tag: :info_report, type: :std_info, report_cb: &:application_controller.format_log/1}, line: 2142, pid: #PID<0.44.0>, time: 1792553906925896, file: ~c"application_controller.erl", gl: #PID<0.70.0>, domain: [:otp], mfa: {:application_controller, :info_exited, 3}, report_cb: &:application_controller.format_log/2}, msg: {:string, ["Application ", "phoenix_live_reload", " exited: " | ":stopped"]}, level: :notice}, config: %{id: Phoenix.LiveReloader.WebConsoleLogger, module: Phoenix.LiveReloader.WebConsoleLogger, formatter: {Logger.Formatter, %Logger.Formatter{template: {DaProductApp.LogFormatter, :format}, truncate: 8096, metadata: [:request_id, :module, :peer, :remote_ip], colors: %{error: :red, enabled: false, info: :normal, warning: :yellow, debug: :cyan, notice: :normal, alert: :red, critical: :red, emergency: :red}, utc_log?: false}}}, reason: {:error, %ArgumentError{message: "unknown registry: Phoenix.LiveReloader.WebConsoleLoggerRegistry"}, [{Registry, :key_info!, 1, [file: ~c"lib/registry.ex", line: 1400]}, {Registry, :dispatch, 4, [file: ~c"lib/registry.ex", line: 478]}]}] [Wed Oct 21 03:38:26.927000 2026] [application_controller:info] [pid 746004] [client -] Application phoenix_ecto exited: :stopped [Wed Oct 21 03:38:26.928000 2026] [application_controller:info] [pid 746004] [client -] Application phoenix exited: :stopped [Wed Oct 21 03:38:26.928000 2026] [application_controller:info] [pid 746004] [client -] Application websock_adapter exited: :stopped [Wed Oct 21 03:38:26.929000 2026] [application_controller:info] [pid 746004] [client -] Application bandit exited: :stopped [Wed Oct 21 03:38:26.929000 2026] [application_controller:info] [pid 746004] [client -] Application thousand_island exited: :stopped [Wed Oct 21 03:38:26.929000 2026] [application_controller:info] [pid 746004] [client -] Application websock exited: :stopped [Wed Oct 21 03:38:26.929000 2026] [application_controller:info] [pid 746004] [client -] Application phoenix_template exited: :stopped [Wed Oct 21 03:38:26.929000 2026] [application_controller:info] [pid 746004] [client -] Application phoenix_html exited: :stopped [Wed Oct 21 03:38:26.930000 2026] [application_controller:info] [pid 746004] [client -] Application phoenix_pubsub exited: :stopped [Wed Oct 21 03:38:26.931000 2026] [application_controller:info] [pid 746004] [client -] Application oban exited: :stopped [Wed Oct 21 03:38:26.931000 2026] [application_controller:info] [pid 746004] [client -] Application ecto_sql exited: :stopped [Wed Oct 21 03:38:26.932000 2026] [application_controller:info] [pid 746004] [client -] Application myxql exited: :stopped [Wed Oct 21 03:38:26.933000 2026] [application_controller:info] [pid 746004] [client -] Application db_connection exited: :stopped [Wed Oct 21 03:38:26.933000 2026] [application_controller:info] [pid 746004] [client -] Application ecto exited: :stopped [Wed Oct 21 03:38:26.933000 2026] [application_controller:info] [pid 746004] [client -] Application req exited: :stopped [Wed Oct 21 03:38:26.934000 2026] [application_controller:info] [pid 746004] [client -] Application plug exited: :stopped [Wed Oct 21 03:38:26.935000 2026] [application_controller:info] [pid 746004] [client -] Application plug_crypto exited: :stopped [Wed Oct 21 03:38:26.935000 2026] [application_controller:info] [pid 746004] [client -] Application eex exited: :stopped [Wed Oct 21 03:38:26.935000 2026] [application_controller:info] [pid 746004] [client -] Application jason exited: :stopped [Wed Oct 21 03:38:26.935000 2026] [application_controller:info] [pid 746004] [client -] Application decimal exited: :stopped [Wed Oct 21 03:38:26.935000 2026] [application_controller:info] [pid 746004] [client -] Application finch exited: :stopped [Wed Oct 21 03:38:26.936000 2026] [application_controller:info] [pid 746004] [client -] Application mime exited: :stopped [Wed Oct 21 03:38:26.937000 2026] [application_controller:info] [pid 746004] [client -] Application telemetry exited: :stopped [Wed Oct 21 03:38:26.937000 2026] [application_controller:info] [pid 746004] [client -] Application nimble_options exited: :stopped [Wed Oct 21 03:38:26.937000 2026] [application_controller:info] [pid 746004] [client -] Application nimble_pool exited: :stopped [Wed Oct 21 03:38:26.938000 2026] [application_controller:info] [pid 746004] [client -] Application mint exited: :stopped [Wed Oct 21 03:38:26.938000 2026] [application_controller:info] [pid 746004] [client -] Application hpax exited: :stopped [Wed Oct 21 03:38:26.938000 2026] [application_controller:info] [pid 746004] [client -] Application castore exited: :stopped [Wed Oct 21 03:38:26.938000 2026] [application_controller:info] [pid 746004] [client -] Application premailex exited: :stopped [Wed Oct 21 03:38:26.938000 2026] [application_controller:info] [pid 746004] [client -] Application ssl_verify_fun exited: :stopped [Wed Oct 21 03:38:26.938000 2026] [application_controller:info] [pid 746004] [client -] Application certifi exited: :stopped [Wed Oct 21 03:38:26.938000 2026] [application_controller:info] [pid 746004] [client -] Application floki exited: :stopped [Wed Oct 21 03:38:26.939000 2026] [application_controller:info] [pid 746004] [client -] Application cachex exited: :stopped [Wed Oct 21 03:38:26.939000 2026] [application_controller:info] [pid 746004] [client -] Application sleeplocks exited: :stopped [Wed Oct 21 03:38:26.940000 2026] [application_controller:info] [pid 746004] [client -] Application jumper exited: :stopped [Wed Oct 21 03:38:26.940000 2026] [application_controller:info] [pid 746004] [client -] Application ex_hash_ring exited: :stopped [Wed Oct 21 03:38:26.940000 2026] [application_controller:info] [pid 746004] [client -] Application eternal exited: :stopped [Wed Oct 21 03:38:26.940000 2026] [application_controller:info] [pid 746004] [client -] Application unsafe exited: :stopped [Wed Oct 21 03:38:26.940000 2026] [application_controller:info] [pid 746004] [client -] Application bcrypt_elixir exited: :stopped [Wed Oct 21 03:38:26.940000 2026] [application_controller:info] [pid 746004] [client -] Application comeonin exited: :stopped [Wed Oct 21 03:38:26.941000 2026] [application_controller:info] [pid 746004] [client -] Application runtime_tools exited: :stopped [Wed Oct 21 03:40:42.297000 2026] [Ecto.Adapters.SQL:debug] [pid 749263] [client -] QUERY ERROR source="global_table" db=0.0ms queue=1.5ms idle=57.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 03:40:42.311000 2026] [DaProductApp.GlobalSettings:error] [pid 749263] [client -] GlobalSettings load error: %MyXQL.Error{connection_id: 980058, message: "Table 'shukria_mms.global_table' doesn't exist", mysql: %{code: 1146, name: :ER_NO_SUCH_TABLE}, statement: "SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0"} - keeping last-known state [Wed Oct 21 03:40:42.429000 2026] [Bandit:info] [pid 749263] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Wed Oct 21 03:40:42.436000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 749263] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Wed Oct 21 03:40:42.918000 2026] [Phoenix.Logger:info] [pid 749263] [client -] CONNECTED TO Phoenix.LiveView.Socket in 38µs Transport: :longpoll Serializer: Phoenix.Socket.V2.JSONSerializer Parameters: %{"_csrf_token" => "PzQiMn9WL1toAwIjWjQUAkBJIgkHdi8KScLv6edhEZJm5bcDqxVJk4md", "_live_referer" => "undefined", "_mount_attempts" => "0", "_mounts" => "0", "_track_static" => %{"0" => "http://demo.ctrmv.com:4059/assets/app.css", "1" => "http://demo.ctrmv.com:4059/assets/app.js"}, "vsn" => "2.0.0"} [Wed Oct 21 03:40:44.124000 2026] [Bandit.Pipeline:error] [pid 749263] [client -] ** (Phoenix.Ecto.PendingMigrationError) there are pending migrations for repo: DaProductApp.Repo. Try running `mix ecto.migrate` in the command line to migrate it (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:74: Phoenix.Ecto.CheckRepoStatus.check_pending_migrations!/2 (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:32: anonymous fn/3 in Phoenix.Ecto.CheckRepoStatus.call/2 (elixir 1.17.3) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3 (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:31: Phoenix.Ecto.CheckRepoStatus.call/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.plug_builder_call/2 (da_product_app 0.1.0) /home/prem/canarabank/saaskit/da_product_app_changed/deps/plug/lib/plug/debugger.ex:136: DaProductAppWeb.Endpoint."call (overridable 3)"/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.call/2 (phoenix 1.7.19) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4 (bandit 1.6.7) lib/bandit/pipeline.ex:129: Bandit.Pipeline.call_plug!/2 (bandit 1.6.7) lib/bandit/pipeline.ex:40: Bandit.Pipeline.run/4 (bandit 1.6.7) lib/bandit/http1/handler.ex:12: Bandit.HTTP1.Handler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_info/2 (stdlib 5.2.3.2) gen_server.erl:1095: :gen_server.try_handle_info/3 (stdlib 5.2.3.2) gen_server.erl:1183: :gen_server.handle_msg/6 (stdlib 5.2.3.2) proc_lib.erl:241: :proc_lib.init_p_do_apply/3 [Wed Oct 21 03:40:44.706000 2026] [Phoenix.Logger:info] [pid 749263] [client -] CONNECTED TO Phoenix.LiveView.Socket in 28µs Transport: :longpoll Serializer: Phoenix.Socket.V2.JSONSerializer Parameters: %{"_csrf_token" => "OQAILwdcLHxfbCQ6GS9FDAB8EwgaMwAxUWfkNogOr5ltvy2J1MgKvqB_", "_live_referer" => "undefined", "_mount_attempts" => "0", "_mounts" => "0", "_track_static" => %{"0" => "http://demo.ctrmv.com:4059/assets/app.css", "1" => "http://demo.ctrmv.com:4059/assets/app.js"}, "vsn" => "2.0.0"} [Wed Oct 21 03:40:45.825000 2026] [Bandit.Pipeline:error] [pid 749263] [client -] ** (Phoenix.Ecto.PendingMigrationError) there are pending migrations for repo: DaProductApp.Repo. Try running `mix ecto.migrate` in the command line to migrate it (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:74: Phoenix.Ecto.CheckRepoStatus.check_pending_migrations!/2 (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:32: anonymous fn/3 in Phoenix.Ecto.CheckRepoStatus.call/2 (elixir 1.17.3) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3 (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:31: Phoenix.Ecto.CheckRepoStatus.call/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.plug_builder_call/2 (da_product_app 0.1.0) /home/prem/canarabank/saaskit/da_product_app_changed/deps/plug/lib/plug/debugger.ex:136: DaProductAppWeb.Endpoint."call (overridable 3)"/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.call/2 (phoenix 1.7.19) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4 (bandit 1.6.7) lib/bandit/pipeline.ex:129: Bandit.Pipeline.call_plug!/2 (bandit 1.6.7) lib/bandit/pipeline.ex:40: Bandit.Pipeline.run/4 (bandit 1.6.7) lib/bandit/http1/handler.ex:12: Bandit.HTTP1.Handler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_info/2 (stdlib 5.2.3.2) gen_server.erl:1095: :gen_server.try_handle_info/3 (stdlib 5.2.3.2) gen_server.erl:1183: :gen_server.handle_msg/6 (stdlib 5.2.3.2) proc_lib.erl:241: :proc_lib.init_p_do_apply/3 [Wed Oct 21 03:41:13.763000 2026] [Bandit.Pipeline:error] [pid 749263] [client -] ** (Phoenix.Ecto.PendingMigrationError) there are pending migrations for repo: DaProductApp.Repo. Try running `mix ecto.migrate` in the command line to migrate it (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:74: Phoenix.Ecto.CheckRepoStatus.check_pending_migrations!/2 (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:32: anonymous fn/3 in Phoenix.Ecto.CheckRepoStatus.call/2 (elixir 1.17.3) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3 (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:31: Phoenix.Ecto.CheckRepoStatus.call/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.plug_builder_call/2 (da_product_app 0.1.0) /home/prem/canarabank/saaskit/da_product_app_changed/deps/plug/lib/plug/debugger.ex:136: DaProductAppWeb.Endpoint."call (overridable 3)"/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.call/2 (phoenix 1.7.19) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4 (bandit 1.6.7) lib/bandit/pipeline.ex:129: Bandit.Pipeline.call_plug!/2 (bandit 1.6.7) lib/bandit/pipeline.ex:40: Bandit.Pipeline.run/4 (bandit 1.6.7) lib/bandit/http1/handler.ex:12: Bandit.HTTP1.Handler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_continue/2 (stdlib 5.2.3.2) gen_server.erl:1085: :gen_server.try_handle_continue/3 (stdlib 5.2.3.2) gen_server.erl:995: :gen_server.loop/7 (stdlib 5.2.3.2) proc_lib.erl:241: :proc_lib.init_p_do_apply/3 [Wed Oct 21 03:42:46.714000 2026] [Bandit.Logger:error] [pid 749263] [client -] ** (Bandit.TransportError) Unrecoverable error: timeout [Wed Oct 21 03:54:27.521000 2026] [Ecto.Adapters.SQL:debug] [pid 760210] [client -] QUERY OK source="global_table" db=0.5ms queue=6.3ms idle=39.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 03:54:27.633000 2026] [Bandit:info] [pid 760210] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Wed Oct 21 03:54:27.637000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 760210] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Wed Oct 21 03:54:32.639000 2026] [Bandit.Pipeline:error] [pid 760210] [client -] ** (Phoenix.Ecto.PendingMigrationError) there are pending migrations for repo: DaProductApp.Repo. Try running `mix ecto.migrate` in the command line to migrate it (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:74: Phoenix.Ecto.CheckRepoStatus.check_pending_migrations!/2 (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:32: anonymous fn/3 in Phoenix.Ecto.CheckRepoStatus.call/2 (elixir 1.17.3) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3 (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:31: Phoenix.Ecto.CheckRepoStatus.call/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.plug_builder_call/2 (da_product_app 0.1.0) /home/prem/canarabank/saaskit/da_product_app_changed/deps/plug/lib/plug/debugger.ex:136: DaProductAppWeb.Endpoint."call (overridable 3)"/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.call/2 (phoenix 1.7.19) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4 (bandit 1.6.7) lib/bandit/pipeline.ex:129: Bandit.Pipeline.call_plug!/2 (bandit 1.6.7) lib/bandit/pipeline.ex:40: Bandit.Pipeline.run/4 (bandit 1.6.7) lib/bandit/http1/handler.ex:12: Bandit.HTTP1.Handler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_continue/2 (stdlib 5.2.3.2) gen_server.erl:1085: :gen_server.try_handle_continue/3 (stdlib 5.2.3.2) gen_server.erl:995: :gen_server.loop/7 (stdlib 5.2.3.2) proc_lib.erl:241: :proc_lib.init_p_do_apply/3 [Wed Oct 21 03:54:55.677000 2026] [Bandit.Pipeline:error] [pid 760210] [client -] ** (Phoenix.Ecto.PendingMigrationError) there are pending migrations for repo: DaProductApp.Repo. Try running `mix ecto.migrate` in the command line to migrate it (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:74: Phoenix.Ecto.CheckRepoStatus.check_pending_migrations!/2 (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:32: anonymous fn/3 in Phoenix.Ecto.CheckRepoStatus.call/2 (elixir 1.17.3) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3 (phoenix_ecto 4.6.3) lib/phoenix_ecto/check_repo_status.ex:31: Phoenix.Ecto.CheckRepoStatus.call/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.plug_builder_call/2 (da_product_app 0.1.0) /home/prem/canarabank/saaskit/da_product_app_changed/deps/plug/lib/plug/debugger.ex:136: DaProductAppWeb.Endpoint."call (overridable 3)"/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.call/2 (phoenix 1.7.19) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4 (bandit 1.6.7) lib/bandit/pipeline.ex:129: Bandit.Pipeline.call_plug!/2 (bandit 1.6.7) lib/bandit/pipeline.ex:40: Bandit.Pipeline.run/4 (bandit 1.6.7) lib/bandit/http1/handler.ex:12: Bandit.HTTP1.Handler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_continue/2 (stdlib 5.2.3.2) gen_server.erl:1085: :gen_server.try_handle_continue/3 (stdlib 5.2.3.2) gen_server.erl:995: :gen_server.loop/7 (stdlib 5.2.3.2) proc_lib.erl:241: :proc_lib.init_p_do_apply/3 [Wed Oct 21 03:56:30.352000 2026] [Ecto.Adapters.SQL:debug] [pid 762253] [client -] QUERY OK source="global_table" db=0.6ms queue=8.1ms idle=105.2ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 03:56:30.478000 2026] [Bandit:info] [pid 762253] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Wed Oct 21 03:56:30.495000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 762253] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Wed Oct 21 03:56:34.642000 2026] [Phoenix.Logger:info] [pid 762253] [client 127.0.0.1:40734] GET / [Wed Oct 21 03:56:34.702000 2026] [Phoenix.Logger:debug] [pid 762253] [client 127.0.0.1:40734] Processing with DaProductAppWeb.PageController.home/2 Parameters: %{} Pipelines: [:browser] [Wed Oct 21 03:56:34.892000 2026] [Phoenix.Logger:info] [pid 762253] [client 127.0.0.1:40734] Sent 200 in 249ms [Wed Oct 21 03:56:44.023000 2026] [Phoenix.Logger:info] [pid 762253] [client 127.0.0.1:40734] GET / [Wed Oct 21 03:56:44.023000 2026] [Phoenix.Logger:debug] [pid 762253] [client 127.0.0.1:40734] Processing with DaProductAppWeb.PageController.home/2 Parameters: %{} Pipelines: [:browser] [Wed Oct 21 03:56:44.024000 2026] [Phoenix.Logger:info] [pid 762253] [client 127.0.0.1:40734] Sent 200 in 1ms [Wed Oct 21 03:56:52.171000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] POST /api/reprint_last [Wed Oct 21 03:56:52.171000 2026] [Phoenix.Logger:debug] [pid 762253] [client 103.206.9.228:40059] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 03:56:52.174000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Header Present: true [Wed Oct 21 03:56:52.174000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:56:52.174000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:56:52.174000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 762253] [client 103.206.9.228:40059] API request authenticated successfully [Wed Oct 21 03:56:52.179000 2026] [Ecto.Adapters.SQL:debug] [pid 762253] [client 103.206.9.228:40059] QUERY ERROR db=0.0ms queue=0.6ms idle=783.1ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 03:56:52.184000 2026] [DaProductAppWeb.ReprintController:error] [pid 762253] [client 103.206.9.228:40059] Reprint fetch failed: %MyXQL.Error{connection_id: 980608, message: "Unknown column 't.total_amount' in 'field list'", mysql: %{code: 1054, name: nil}, statement: " SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan,\n t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno,\n t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message,\n t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data,\n t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time\nFROM pos_transaction t\n WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1"} [Wed Oct 21 03:56:52.184000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] Sent 500 in 13ms [Wed Oct 21 03:57:14.483000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] POST /api/reprint_last [Wed Oct 21 03:57:14.483000 2026] [Phoenix.Logger:debug] [pid 762253] [client 103.206.9.228:40059] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 03:57:14.483000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Header Present: true [Wed Oct 21 03:57:14.484000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:57:14.484000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:57:14.484000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 762253] [client 103.206.9.228:40059] API request authenticated successfully [Wed Oct 21 03:57:14.485000 2026] [Ecto.Adapters.SQL:debug] [pid 762253] [client 103.206.9.228:40059] QUERY ERROR db=0.0ms queue=0.6ms idle=1032.3ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 03:57:14.485000 2026] [DaProductAppWeb.ReprintController:error] [pid 762253] [client 103.206.9.228:40059] Reprint fetch failed: %MyXQL.Error{connection_id: 980600, message: "Unknown column 't.total_amount' in 'field list'", mysql: %{code: 1054, name: nil}, statement: " SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan,\n t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno,\n t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message,\n t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data,\n t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time\nFROM pos_transaction t\n WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1"} [Wed Oct 21 03:57:14.485000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] Sent 500 in 2ms [Wed Oct 21 03:57:16.121000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] POST /api/reprint_last [Wed Oct 21 03:57:16.121000 2026] [Phoenix.Logger:debug] [pid 762253] [client 103.206.9.228:40059] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 03:57:16.121000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Header Present: true [Wed Oct 21 03:57:16.122000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:57:16.122000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:57:16.122000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 762253] [client 103.206.9.228:40059] API request authenticated successfully [Wed Oct 21 03:57:16.123000 2026] [Ecto.Adapters.SQL:debug] [pid 762253] [client 103.206.9.228:40059] QUERY ERROR db=0.0ms queue=0.9ms idle=1966.4ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 03:57:16.123000 2026] [DaProductAppWeb.ReprintController:error] [pid 762253] [client 103.206.9.228:40059] Reprint fetch failed: %MyXQL.Error{connection_id: 980611, message: "Unknown column 't.total_amount' in 'field list'", mysql: %{code: 1054, name: nil}, statement: " SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan,\n t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno,\n t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message,\n t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data,\n t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time\nFROM pos_transaction t\n WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1"} [Wed Oct 21 03:57:16.123000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] Sent 500 in 2ms [Wed Oct 21 03:57:57.066000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] POST /api/reprint_last [Wed Oct 21 03:57:57.067000 2026] [Phoenix.Logger:debug] [pid 762253] [client 103.206.9.228:40059] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 03:57:57.067000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Header Present: true [Wed Oct 21 03:57:57.067000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:57:57.068000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:57:57.068000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 762253] [client 103.206.9.228:40059] API request authenticated successfully [Wed Oct 21 03:57:57.069000 2026] [Ecto.Adapters.SQL:debug] [pid 762253] [client 103.206.9.228:40059] QUERY ERROR db=0.0ms queue=0.6ms idle=912.4ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 03:57:57.069000 2026] [DaProductAppWeb.ReprintController:error] [pid 762253] [client 103.206.9.228:40059] Reprint fetch failed: %MyXQL.Error{connection_id: 980604, message: "Unknown column 't.total_amount' in 'field list'", mysql: %{code: 1054, name: nil}, statement: " SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan,\n t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno,\n t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message,\n t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data,\n t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time\nFROM pos_transaction t\n WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1"} [Wed Oct 21 03:57:57.069000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] Sent 500 in 2ms [Wed Oct 21 03:57:59.244000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] POST /api/reprint_last [Wed Oct 21 03:57:59.244000 2026] [Phoenix.Logger:debug] [pid 762253] [client 103.206.9.228:40059] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 03:57:59.244000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Header Present: true [Wed Oct 21 03:57:59.244000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:57:59.245000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:57:59.245000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 762253] [client 103.206.9.228:40059] API request authenticated successfully [Wed Oct 21 03:57:59.245000 2026] [Ecto.Adapters.SQL:debug] [pid 762253] [client 103.206.9.228:40059] QUERY ERROR db=0.0ms queue=0.7ms idle=1089.2ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 03:57:59.246000 2026] [DaProductAppWeb.ReprintController:error] [pid 762253] [client 103.206.9.228:40059] Reprint fetch failed: %MyXQL.Error{connection_id: 980600, message: "Unknown column 't.total_amount' in 'field list'", mysql: %{code: 1054, name: nil}, statement: " SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan,\n t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno,\n t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message,\n t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data,\n t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time\nFROM pos_transaction t\n WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1"} [Wed Oct 21 03:57:59.246000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] Sent 500 in 2ms [Wed Oct 21 03:58:10.901000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] POST /api/reprint_last [Wed Oct 21 03:58:10.901000 2026] [Phoenix.Logger:debug] [pid 762253] [client 103.206.9.228:40059] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 03:58:10.902000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Header Present: true [Wed Oct 21 03:58:10.902000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:58:10.903000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 762253] [client 103.206.9.228:40059] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 03:58:10.903000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 762253] [client 103.206.9.228:40059] API request authenticated successfully [Wed Oct 21 03:58:10.904000 2026] [Ecto.Adapters.SQL:debug] [pid 762253] [client 103.206.9.228:40059] QUERY ERROR db=0.0ms queue=0.8ms idle=1318.2ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 03:58:10.904000 2026] [DaProductAppWeb.ReprintController:error] [pid 762253] [client 103.206.9.228:40059] Reprint fetch failed: %MyXQL.Error{connection_id: 980609, message: "Unknown column 't.total_amount' in 'field list'", mysql: %{code: 1054, name: nil}, statement: " SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan,\n t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno,\n t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message,\n t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data,\n t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time\nFROM pos_transaction t\n WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1"} [Wed Oct 21 03:58:10.904000 2026] [Phoenix.Logger:info] [pid 762253] [client 103.206.9.228:40059] Sent 500 in 3ms [Wed Oct 21 03:58:59.824000 2026] [Bandit.Logger:error] [pid 762253] [client -] ** (Bandit.TransportError) Unrecoverable error: timeout [Wed Oct 21 04:00:01.017000 2026] [Ecto.Adapters.SQL:debug] [pid 762253] [client -] QUERY ERROR source="report_requests" db=0.0ms queue=2.6ms idle=845.8ms SELECT r0.`id`, r0.`report_id`, r0.`report_type`, r0.`requester_ref`, r0.`filters`, r0.`status`, r0.`progress_percentage`, r0.`row_count`, r0.`file_path`, r0.`file_size`, r0.`download_token`, r0.`download_count`, r0.`last_downloaded_at`, r0.`error_message`, r0.`expires_at`, r0.`completed_at`, r0.`inserted_at`, r0.`updated_at` FROM `report_requests` AS r0 WHERE (NOT (r0.`expires_at` IS NULL) AND (r0.`expires_at` < ?)) [~U[2026-10-21 04:00:01Z]] ↳ DaProductApp.Workers.ReportRetentionWorker.perform/1, at: lib/da_product_app/workers/report_retention_worker.ex:18 [Wed Oct 21 04:00:01.018000 2026] [DaProductApp.Workers.ReportRetentionWorker:error] [pid 762253] [client -] ReportRetentionWorker failed: (1146) (ER_NO_SUCH_TABLE) Table 'lic_project_devteam.report_requests' doesn't exist query: SELECT r0.`id`, r0.`report_id`, r0.`report_type`, r0.`requester_ref`, r0.`filters`, r0.`status`, r0.`progress_percentage`, r0.`row_count`, r0.`file_path`, r0.`file_size`, r0.`download_token`, r0.`download_count`, r0.`last_downloaded_at`, r0.`error_message`, r0.`expires_at`, r0.`completed_at`, r0.`inserted_at`, r0.`updated_at` FROM `report_requests` AS r0 WHERE (NOT (r0.`expires_at` IS NULL) AND (r0.`expires_at` < ?)) [Wed Oct 21 04:00:33.758000 2026] [Ecto.Adapters.SQL:debug] [pid 766035] [client -] QUERY OK source="global_table" db=0.9ms queue=8.9ms idle=37.9ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 04:00:33.931000 2026] [Bandit:info] [pid 766035] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Wed Oct 21 04:00:33.939000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 766035] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Wed Oct 21 04:00:40.042000 2026] [Phoenix.Logger:info] [pid 766035] [client 103.206.9.228:44312] POST /api/reprint_last [Wed Oct 21 04:00:40.054000 2026] [Phoenix.Logger:debug] [pid 766035] [client 103.206.9.228:44312] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 04:00:40.055000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 766035] [client 103.206.9.228:44312] API Auth Check - Header Present: true [Wed Oct 21 04:00:40.055000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 766035] [client 103.206.9.228:44312] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 04:00:40.055000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 766035] [client 103.206.9.228:44312] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 04:00:40.057000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 766035] [client 103.206.9.228:44312] API request authenticated successfully [Wed Oct 21 04:00:40.061000 2026] [Ecto.Adapters.SQL:debug] [pid 766035] [client 103.206.9.228:44312] QUERY OK db=2.7ms queue=0.8ms idle=413.7ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 04:00:40.064000 2026] [DaProductApp.TransactionRules:info] [pid 766035] [client 103.206.9.228:44312] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Wed Oct 21 04:00:40.068000 2026] [Ecto.Adapters.SQL:debug] [pid 766035] [client 103.206.9.228:44312] QUERY OK source="pos_terminals" db=1.2ms queue=2.7ms idle=420.7ms SELECT p0.`store_id`, s1.`name`, a2.`line1` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Wed Oct 21 04:00:40.068000 2026] [DaProductApp.TransactionRules:info] [pid 766035] [client 103.206.9.228:44312] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", store_id: 254, address_line1: "cl ej jerbv nj"} [Wed Oct 21 04:00:40.068000 2026] [DaProductApp.TransactionRules:info] [pid 766035] [client 103.206.9.228:44312] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Wed Oct 21 04:00:40.070000 2026] [Ecto.Adapters.SQL:debug] [pid 766035] [client 103.206.9.228:44312] QUERY OK source="user_metadata" db=0.3ms queue=1.5ms idle=424.7ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:330 [Wed Oct 21 04:00:40.071000 2026] [DaProductApp.TransactionRules:info] [pid 766035] [client 103.206.9.228:44312] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Wed Oct 21 04:00:40.071000 2026] [DaProductApp.TransactionRules:info] [pid 766035] [client 103.206.9.228:44312] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Wed Oct 21 04:00:40.073000 2026] [Ecto.Adapters.SQL:debug] [pid 766035] [client 103.206.9.228:44312] QUERY OK source="merchant_configuration" db=0.4ms queue=1.1ms idle=427.2ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:345 [Wed Oct 21 04:00:40.073000 2026] [DaProductApp.TransactionRules:info] [pid 766035] [client 103.206.9.228:44312] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Wed Oct 21 04:00:40.073000 2026] [DaProductApp.TransactionRules:info] [pid 766035] [client 103.206.9.228:44312] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Wed Oct 21 04:00:40.073000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.074000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.074000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.074000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.074000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.074000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.074000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.074000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.074000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.074000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.075000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.075000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.075000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.075000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.075000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.075000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.076000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.076000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.076000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.076000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.076000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.076000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.077000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.077000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.077000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.077000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.077000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.078000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.078000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.078000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.078000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.078000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.078000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.078000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.078000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.078000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.078000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.079000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.079000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.079000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.079000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.079000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.079000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.079000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.079000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.079000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.079000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.080000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.080000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.080000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.080000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.080000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.080000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.080000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.080000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.080000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.080000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.081000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.081000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.081000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.081000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.081000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.081000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.081000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.081000 2026] [DaProductApp.TransactionRules:debug] [pid 766035] [client 103.206.9.228:44312] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:00:40.087000 2026] [Phoenix.Logger:info] [pid 766035] [client 103.206.9.228:44312] Sent 200 in 45ms [Wed Oct 21 04:10:33.774000 2026] [Ecto.Adapters.SQL:debug] [pid 766035] [client -] QUERY OK source="global_table" db=1.0ms idle=126.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 04:14:06.584000 2026] [Ecto.Adapters.SQL:debug] [pid 774962] [client -] QUERY OK source="global_table" db=0.5ms queue=9.2ms idle=96.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 04:14:06.874000 2026] [Bandit:info] [pid 774962] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Wed Oct 21 04:14:06.892000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 774962] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Wed Oct 21 04:15:11.779000 2026] [Phoenix.Logger:info] [pid 774962] [client 103.206.9.228:37304] POST /api/reprint_last [Wed Oct 21 04:15:11.797000 2026] [Phoenix.Logger:debug] [pid 774962] [client 103.206.9.228:37304] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 04:15:11.802000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 774962] [client 103.206.9.228:37304] API Auth Check - Header Present: true [Wed Oct 21 04:15:11.802000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 774962] [client 103.206.9.228:37304] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 04:15:11.802000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 774962] [client 103.206.9.228:37304] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 04:15:11.804000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 774962] [client 103.206.9.228:37304] API request authenticated successfully [Wed Oct 21 04:15:11.813000 2026] [Ecto.Adapters.SQL:debug] [pid 774962] [client 103.206.9.228:37304] QUERY OK db=7.0ms queue=0.7ms idle=1454.7ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 04:15:11.829000 2026] [DaProductApp.TransactionRules:info] [pid 774962] [client 103.206.9.228:37304] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Wed Oct 21 04:15:11.834000 2026] [Ecto.Adapters.SQL:debug] [pid 774962] [client 103.206.9.228:37304] QUERY OK source="pos_terminals" db=1.1ms queue=0.4ms idle=1482.1ms SELECT p0.`store_id`, s1.`name`, a2.`line1` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Wed Oct 21 04:15:11.837000 2026] [DaProductApp.TransactionRules:info] [pid 774962] [client 103.206.9.228:37304] fetch_merchant_info_from_terminal - query result: %{store_id: 254, merchant_name: "Frog8 Cafe", address_line1: "cl ej jerbv nj"} [Wed Oct 21 04:15:11.837000 2026] [DaProductApp.TransactionRules:info] [pid 774962] [client 103.206.9.228:37304] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Wed Oct 21 04:15:11.839000 2026] [Ecto.Adapters.SQL:debug] [pid 774962] [client 103.206.9.228:37304] QUERY OK source="user_metadata" db=0.4ms queue=0.5ms idle=1482.9ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:330 [Wed Oct 21 04:15:11.839000 2026] [DaProductApp.TransactionRules:info] [pid 774962] [client 103.206.9.228:37304] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Wed Oct 21 04:15:11.839000 2026] [DaProductApp.TransactionRules:info] [pid 774962] [client 103.206.9.228:37304] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Wed Oct 21 04:15:11.840000 2026] [Ecto.Adapters.SQL:debug] [pid 774962] [client 103.206.9.228:37304] QUERY OK source="merchant_configuration" db=0.4ms queue=0.4ms idle=1484.6ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:345 [Wed Oct 21 04:15:11.841000 2026] [DaProductApp.TransactionRules:info] [pid 774962] [client 103.206.9.228:37304] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, logo: nil, model_name: 1, show_cardholder_name: 0, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}} [Wed Oct 21 04:15:11.842000 2026] [DaProductApp.TransactionRules:info] [pid 774962] [client 103.206.9.228:37304] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Wed Oct 21 04:15:11.842000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.842000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.842000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.842000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.842000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.843000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.843000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.843000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.843000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.844000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.844000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.844000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.844000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.844000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.844000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.845000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.845000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.845000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.845000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.845000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.845000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.845000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.846000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.846000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.846000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.846000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.846000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.846000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.846000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.846000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.847000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.847000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.847000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.847000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.847000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.847000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.847000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.848000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.848000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.848000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.849000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.849000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.849000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.850000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.850000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.850000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.850000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.850000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.850000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.851000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.851000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.851000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.851000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.851000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.851000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.851000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.852000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.852000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.852000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.852000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.852000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.852000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.852000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.852000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.855000 2026] [DaProductApp.TransactionRules:debug] [pid 774962] [client 103.206.9.228:37304] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:15:11.860000 2026] [Phoenix.Logger:info] [pid 774962] [client 103.206.9.228:37304] Sent 200 in 80ms [Wed Oct 21 04:24:06.605000 2026] [Ecto.Adapters.SQL:debug] [pid 774962] [client -] QUERY OK source="global_table" db=0.6ms idle=1243.4ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 04:30:13.237000 2026] [Ecto.Adapters.SQL:debug] [pid 784672] [client -] QUERY OK source="global_table" db=0.4ms queue=3.4ms idle=60.3ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 04:30:13.334000 2026] [Bandit:info] [pid 784672] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Wed Oct 21 04:30:13.341000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 784672] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Wed Oct 21 04:30:27.428000 2026] [Phoenix.Logger:info] [pid 784672] [client 103.206.9.228:50727] POST /api/reprint_last [Wed Oct 21 04:30:27.455000 2026] [Phoenix.Logger:debug] [pid 784672] [client 103.206.9.228:50727] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 04:30:27.461000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 784672] [client 103.206.9.228:50727] API Auth Check - Header Present: true [Wed Oct 21 04:30:27.461000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 784672] [client 103.206.9.228:50727] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 04:30:27.461000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 784672] [client 103.206.9.228:50727] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 04:30:27.464000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 784672] [client 103.206.9.228:50727] API request authenticated successfully [Wed Oct 21 04:30:27.474000 2026] [Ecto.Adapters.SQL:debug] [pid 784672] [client 103.206.9.228:50727] QUERY OK db=6.4ms queue=0.6ms idle=333.8ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 04:30:27.493000 2026] [DaProductApp.TransactionRules:info] [pid 784672] [client 103.206.9.228:50727] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Wed Oct 21 04:30:27.499000 2026] [Ecto.Adapters.SQL:debug] [pid 784672] [client 103.206.9.228:50727] QUERY OK source="pos_terminals" db=0.9ms queue=0.6ms idle=364.2ms SELECT p0.`store_id`, s1.`name`, a2.`line1` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Wed Oct 21 04:30:27.502000 2026] [DaProductApp.TransactionRules:info] [pid 784672] [client 103.206.9.228:50727] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_line1: "cl ej jerbv nj", store_id: 254} [Wed Oct 21 04:30:27.502000 2026] [DaProductApp.TransactionRules:info] [pid 784672] [client 103.206.9.228:50727] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Wed Oct 21 04:30:27.504000 2026] [Ecto.Adapters.SQL:debug] [pid 784672] [client 103.206.9.228:50727] QUERY OK source="user_metadata" db=0.6ms queue=1.0ms idle=1368.0ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:330 [Wed Oct 21 04:30:27.504000 2026] [DaProductApp.TransactionRules:info] [pid 784672] [client 103.206.9.228:50727] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Wed Oct 21 04:30:27.505000 2026] [DaProductApp.TransactionRules:info] [pid 784672] [client 103.206.9.228:50727] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Wed Oct 21 04:30:27.507000 2026] [Ecto.Adapters.SQL:debug] [pid 784672] [client 103.206.9.228:50727] QUERY OK source="merchant_configuration" db=0.8ms queue=0.7ms idle=370.6ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:345 [Wed Oct 21 04:30:27.507000 2026] [DaProductApp.TransactionRules:info] [pid 784672] [client 103.206.9.228:50727] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Wed Oct 21 04:30:27.508000 2026] [DaProductApp.TransactionRules:info] [pid 784672] [client 103.206.9.228:50727] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Wed Oct 21 04:30:27.508000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.508000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.508000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.509000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.509000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.509000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.509000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.509000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.510000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.510000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.510000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.510000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.511000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.511000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.511000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.511000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.511000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.512000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.512000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.512000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.512000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.512000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.512000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.512000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.513000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.513000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.513000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.513000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.513000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.513000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.513000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.514000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.514000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.514000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.514000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.514000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.514000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.514000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.514000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.514000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.515000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.515000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.515000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.515000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.516000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.516000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.516000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.516000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.517000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.517000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.517000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.517000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.517000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.518000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.518000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.518000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.518000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.518000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.519000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.519000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.519000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.519000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.519000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.519000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.520000 2026] [DaProductApp.TransactionRules:debug] [pid 784672] [client 103.206.9.228:50727] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:30:27.524000 2026] [Phoenix.Logger:info] [pid 784672] [client 103.206.9.228:50727] Sent 200 in 95ms [Wed Oct 21 04:45:27.184000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client -] QUERY OK source="global_table" db=0.4ms queue=2.8ms idle=52.0ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 04:45:27.282000 2026] [Bandit:info] [pid 795331] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Wed Oct 21 04:45:27.288000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 795331] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Wed Oct 21 04:45:53.756000 2026] [Phoenix.Logger:info] [pid 795331] [client 103.206.9.228:64092] POST /api/reprint_last [Wed Oct 21 04:45:53.780000 2026] [Phoenix.Logger:debug] [pid 795331] [client 103.206.9.228:64092] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 04:45:53.785000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 795331] [client 103.206.9.228:64092] API Auth Check - Header Present: true [Wed Oct 21 04:45:53.785000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 795331] [client 103.206.9.228:64092] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 04:45:53.785000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 795331] [client 103.206.9.228:64092] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 04:45:53.788000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 795331] [client 103.206.9.228:64092] API request authenticated successfully [Wed Oct 21 04:45:53.804000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client 103.206.9.228:64092] QUERY OK db=10.0ms queue=1.4ms idle=709.9ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 04:45:53.826000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:64092] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Wed Oct 21 04:45:53.838000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client 103.206.9.228:64092] QUERY OK source="pos_terminals" db=2.1ms queue=1.1ms idle=751.3ms SELECT p0.`store_id`, s1.`name`, a2.`line1` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Wed Oct 21 04:45:53.841000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:64092] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_line1: "cl ej jerbv nj", store_id: 254} [Wed Oct 21 04:45:53.841000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:64092] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Wed Oct 21 04:45:53.843000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client 103.206.9.228:64092] QUERY OK source="user_metadata" db=0.6ms queue=1.0ms idle=758.7ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:330 [Wed Oct 21 04:45:53.843000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:64092] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Wed Oct 21 04:45:53.844000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:64092] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Wed Oct 21 04:45:53.845000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client 103.206.9.228:64092] QUERY OK source="merchant_configuration" db=1.0ms queue=0.5ms idle=761.0ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:345 [Wed Oct 21 04:45:53.846000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:64092] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Wed Oct 21 04:45:53.847000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:64092] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Wed Oct 21 04:45:53.847000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.847000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.848000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.849000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.850000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.850000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.850000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.850000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.851000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.851000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.852000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.853000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.853000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.853000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.854000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.854000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.854000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.854000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.854000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.854000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.854000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.854000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.855000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.855000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.855000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.855000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.855000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.855000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.855000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.855000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.855000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.855000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.856000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.856000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.856000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.856000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.856000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.856000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.856000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.856000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.859000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.859000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.859000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.859000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.860000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.860000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.860000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.860000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.860000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.860000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.860000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.860000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.860000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.860000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.861000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.861000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.861000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.861000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.861000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.861000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.861000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.861000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.862000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.862000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.862000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:64092] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 04:45:53.867000 2026] [Phoenix.Logger:info] [pid 795331] [client 103.206.9.228:64092] Sent 200 in 110ms [Wed Oct 21 04:55:27.206000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client -] QUERY OK source="global_table" db=1.1ms idle=1119.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 05:00:23.980000 2026] [Phoenix.Logger:info] [pid 795331] [client 103.206.9.228:16273] POST /api/reprint_last [Wed Oct 21 05:00:23.980000 2026] [Phoenix.Logger:debug] [pid 795331] [client 103.206.9.228:16273] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 05:00:23.980000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 795331] [client 103.206.9.228:16273] API Auth Check - Header Present: true [Wed Oct 21 05:00:23.981000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 795331] [client 103.206.9.228:16273] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:00:23.981000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 795331] [client 103.206.9.228:16273] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:00:23.981000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 795331] [client 103.206.9.228:16273] API request authenticated successfully [Wed Oct 21 05:00:23.984000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client 103.206.9.228:16273] QUERY OK db=2.6ms queue=0.6ms idle=1893.0ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 05:00:23.985000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:16273] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Wed Oct 21 05:00:23.987000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client 103.206.9.228:16273] QUERY OK source="pos_terminals" db=1.2ms idle=1897.1ms SELECT p0.`store_id`, s1.`name`, a2.`line1` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Wed Oct 21 05:00:23.987000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:16273] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_line1: "cl ej jerbv nj", store_id: 254} [Wed Oct 21 05:00:23.987000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:16273] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Wed Oct 21 05:00:23.988000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client 103.206.9.228:16273] QUERY OK source="user_metadata" db=0.7ms idle=902.4ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:330 [Wed Oct 21 05:00:23.989000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:16273] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Wed Oct 21 05:00:23.989000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:16273] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Wed Oct 21 05:00:23.990000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client 103.206.9.228:16273] QUERY OK source="merchant_configuration" db=0.9ms idle=903.9ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:345 [Wed Oct 21 05:00:23.991000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:16273] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Wed Oct 21 05:00:23.991000 2026] [DaProductApp.TransactionRules:info] [pid 795331] [client 103.206.9.228:16273] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Wed Oct 21 05:00:23.991000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.991000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.991000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.991000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.992000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.992000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.992000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.992000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.992000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.992000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.992000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.992000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.993000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.993000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.993000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.993000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.993000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.993000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.993000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.994000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.994000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.994000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.994000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.994000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.995000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.995000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.995000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.995000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.995000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.995000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.995000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.995000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.996000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.996000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.996000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.996000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.996000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.996000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.997000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.997000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.997000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.997000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.998000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.998000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.998000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.998000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.998000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.998000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.998000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.998000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.998000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.999000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.999000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.999000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.999000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.999000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.999000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.999000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.999000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.999000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:23.999000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:24.000000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:24.000000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:24.000000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:24.000000 2026] [DaProductApp.TransactionRules:debug] [pid 795331] [client 103.206.9.228:16273] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:00:24.000000 2026] [Phoenix.Logger:info] [pid 795331] [client 103.206.9.228:16273] Sent 200 in 20ms [Wed Oct 21 05:05:27.206000 2026] [Ecto.Adapters.SQL:debug] [pid 795331] [client -] QUERY OK source="global_table" db=1.0ms idle=1119.8ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 05:09:25.559000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client -] QUERY OK source="global_table" db=0.4ms queue=3.3ms idle=55.2ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 05:09:25.659000 2026] [Bandit:info] [pid 809075] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Wed Oct 21 05:09:25.665000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 809075] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Wed Oct 21 05:09:33.669000 2026] [Phoenix.Logger:info] [pid 809075] [client 103.206.9.228:29937] POST /api/reprint_last [Wed Oct 21 05:09:33.694000 2026] [Phoenix.Logger:debug] [pid 809075] [client 103.206.9.228:29937] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 05:09:33.699000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:29937] API Auth Check - Header Present: true [Wed Oct 21 05:09:33.699000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:29937] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:09:33.699000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:29937] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:09:33.701000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 809075] [client 103.206.9.228:29937] API request authenticated successfully [Wed Oct 21 05:09:33.712000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:29937] QUERY OK db=7.4ms queue=0.5ms idle=1105.6ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 05:09:33.730000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:29937] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Wed Oct 21 05:09:33.737000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:29937] QUERY OK source="pos_terminals" db=0.9ms queue=0.5ms idle=267.3ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Wed Oct 21 05:09:33.739000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:29937] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Wed Oct 21 05:09:33.739000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:29937] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Wed Oct 21 05:09:33.741000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:29937] QUERY OK source="user_metadata" db=0.3ms queue=0.7ms idle=1161.1ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Wed Oct 21 05:09:33.741000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:29937] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Wed Oct 21 05:09:33.741000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:29937] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Wed Oct 21 05:09:33.743000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:29937] QUERY OK source="merchant_configuration" db=0.6ms queue=0.5ms idle=165.0ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Wed Oct 21 05:09:33.743000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:29937] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Wed Oct 21 05:09:33.744000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:29937] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Wed Oct 21 05:09:33.744000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.745000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.745000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.745000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.745000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.745000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.745000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.746000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.746000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.746000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.746000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.746000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.747000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.747000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.747000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.747000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.747000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.747000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.747000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.748000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.748000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.748000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.751000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.751000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.752000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.753000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.755000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.755000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.755000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.755000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.756000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.758000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.758000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.758000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.758000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.759000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.759000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.759000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.759000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.760000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.760000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.760000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.761000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.761000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.761000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.761000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.761000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.762000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.762000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:29937] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:09:33.769000 2026] [Phoenix.Logger:info] [pid 809075] [client 103.206.9.228:29937] Sent 200 in 100ms [Wed Oct 21 05:11:41.022000 2026] [Phoenix.Logger:info] [pid 809075] [client 103.206.9.228:45041] POST /api/reprint_last [Wed Oct 21 05:11:41.023000 2026] [Phoenix.Logger:debug] [pid 809075] [client 103.206.9.228:45041] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 05:11:41.023000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:45041] API Auth Check - Header Present: true [Wed Oct 21 05:11:41.023000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:45041] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:11:41.023000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:45041] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:11:41.023000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 809075] [client 103.206.9.228:45041] API request authenticated successfully [Wed Oct 21 05:11:41.027000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:45041] QUERY OK db=2.7ms queue=0.9ms idle=1441.8ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 05:11:41.027000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:45041] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Wed Oct 21 05:11:41.029000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:45041] QUERY OK source="pos_terminals" db=1.0ms idle=1445.8ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Wed Oct 21 05:11:41.029000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:45041] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Wed Oct 21 05:11:41.029000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:45041] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Wed Oct 21 05:11:41.030000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:45041] QUERY OK source="user_metadata" db=0.6ms idle=1450.3ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Wed Oct 21 05:11:41.030000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:45041] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Wed Oct 21 05:11:41.031000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:45041] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Wed Oct 21 05:11:41.032000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:45041] QUERY OK source="merchant_configuration" db=0.8ms idle=1452.0ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Wed Oct 21 05:11:41.032000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:45041] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Wed Oct 21 05:11:41.033000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:45041] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Wed Oct 21 05:11:41.033000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.033000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.033000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.033000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.033000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.034000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.034000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.034000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.034000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.034000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.034000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.034000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.034000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.035000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.035000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.035000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.035000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.035000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.035000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.035000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.035000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.035000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.036000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.036000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.036000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.036000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.036000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.036000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.037000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.037000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.038000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.038000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.038000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.039000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.040000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.040000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.040000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.040000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.040000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.040000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.040000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.040000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.041000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.041000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.041000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.041000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.041000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.042000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.042000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.042000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.042000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.042000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.043000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.043000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.043000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.043000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.043000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.043000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.043000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.044000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.044000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.044000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.044000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.044000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.045000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:45041] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:11:41.045000 2026] [Phoenix.Logger:info] [pid 809075] [client 103.206.9.228:45041] Sent 200 in 22ms [Wed Oct 21 05:17:43.734000 2026] [Phoenix.Logger:info] [pid 809075] [client 103.206.9.228:65535] POST /api/reprint_last [Wed Oct 21 05:17:43.734000 2026] [Phoenix.Logger:debug] [pid 809075] [client 103.206.9.228:65535] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 05:17:43.734000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:65535] API Auth Check - Header Present: true [Wed Oct 21 05:17:43.734000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:65535] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:17:43.735000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:65535] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:17:43.736000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 809075] [client 103.206.9.228:65535] API request authenticated successfully [Wed Oct 21 05:17:43.742000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:65535] QUERY OK db=4.1ms queue=1.8ms idle=1151.4ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 05:17:43.742000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:65535] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Wed Oct 21 05:17:43.745000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:65535] QUERY OK source="pos_terminals" db=1.7ms idle=546.1ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Wed Oct 21 05:17:43.745000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:65535] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Wed Oct 21 05:17:43.745000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:65535] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Wed Oct 21 05:17:43.746000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:65535] QUERY OK source="user_metadata" db=0.8ms idle=1162.9ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Wed Oct 21 05:17:43.746000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:65535] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Wed Oct 21 05:17:43.747000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:65535] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Wed Oct 21 05:17:43.748000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:65535] QUERY OK source="merchant_configuration" db=0.9ms idle=1164.1ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Wed Oct 21 05:17:43.748000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:65535] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Wed Oct 21 05:17:43.748000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:65535] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Wed Oct 21 05:17:43.748000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.749000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.750000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.751000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.751000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.752000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.752000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.752000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.753000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.753000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.753000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.754000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.755000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.755000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.755000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.755000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.756000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.756000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.756000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.756000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.757000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.757000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.757000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.757000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.757000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.757000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.758000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.758000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.758000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.758000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.759000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.759000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.759000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.759000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.760000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.760000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.760000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.761000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.761000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.762000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.762000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.762000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.762000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.762000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.762000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:65535] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:17:43.763000 2026] [Phoenix.Logger:info] [pid 809075] [client 103.206.9.228:65535] Sent 200 in 29ms [Wed Oct 21 05:18:00.575000 2026] [Phoenix.Logger:info] [pid 809075] [client 103.206.9.228:24129] POST /api/reprint_last [Wed Oct 21 05:18:00.576000 2026] [Phoenix.Logger:debug] [pid 809075] [client 103.206.9.228:24129] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 05:18:00.576000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:24129] API Auth Check - Header Present: true [Wed Oct 21 05:18:00.576000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:24129] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:18:00.577000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 809075] [client 103.206.9.228:24129] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:18:00.577000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 809075] [client 103.206.9.228:24129] API request authenticated successfully [Wed Oct 21 05:18:00.580000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:24129] QUERY OK db=2.5ms queue=0.5ms idle=992.3ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 05:18:00.580000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:24129] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Wed Oct 21 05:18:00.582000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:24129] QUERY OK source="pos_terminals" db=1.1ms idle=995.7ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Wed Oct 21 05:18:00.582000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:24129] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Wed Oct 21 05:18:00.582000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:24129] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Wed Oct 21 05:18:00.583000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:24129] QUERY OK source="user_metadata" db=1.0ms idle=999.3ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Wed Oct 21 05:18:00.583000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:24129] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Wed Oct 21 05:18:00.583000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:24129] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Wed Oct 21 05:18:00.584000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client 103.206.9.228:24129] QUERY OK source="merchant_configuration" db=0.6ms idle=1000.8ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Wed Oct 21 05:18:00.585000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:24129] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Wed Oct 21 05:18:00.585000 2026] [DaProductApp.TransactionRules:info] [pid 809075] [client 103.206.9.228:24129] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Wed Oct 21 05:18:00.585000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.585000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.586000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.586000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.586000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.586000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.586000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.587000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.587000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.587000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.587000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.587000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.587000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.587000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.588000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.588000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.588000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.588000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.588000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.589000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.589000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.589000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.589000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.589000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.589000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.590000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.590000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.590000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.590000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.590000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.590000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.591000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.591000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.591000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.591000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.591000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.592000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.592000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.592000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.592000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.592000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.592000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.592000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.592000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.593000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.593000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.593000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.593000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.594000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.594000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.594000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.595000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.595000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.595000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.595000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.595000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.595000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.596000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.596000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.596000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.596000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.596000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.596000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.597000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.597000 2026] [DaProductApp.TransactionRules:debug] [pid 809075] [client 103.206.9.228:24129] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:18:00.597000 2026] [Phoenix.Logger:info] [pid 809075] [client 103.206.9.228:24129] Sent 200 in 21ms [Wed Oct 21 05:19:25.582000 2026] [Ecto.Adapters.SQL:debug] [pid 809075] [client -] QUERY OK source="global_table" db=0.9ms idle=1996.9ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 05:23:06.226000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client -] QUERY OK source="global_table" db=0.6ms queue=4.0ms idle=67.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 05:23:06.356000 2026] [Bandit:info] [pid 817242] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Wed Oct 21 05:23:06.365000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 817242] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Wed Oct 21 05:23:13.098000 2026] [Phoenix.Logger:info] [pid 817242] [client 103.206.9.228:29664] POST /api/reprint_last [Wed Oct 21 05:23:13.123000 2026] [Phoenix.Logger:debug] [pid 817242] [client 103.206.9.228:29664] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Wed Oct 21 05:23:13.128000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 817242] [client 103.206.9.228:29664] API Auth Check - Header Present: true [Wed Oct 21 05:23:13.128000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 817242] [client 103.206.9.228:29664] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:23:13.129000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 817242] [client 103.206.9.228:29664] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Wed Oct 21 05:23:13.130000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 817242] [client 103.206.9.228:29664] API request authenticated successfully [Wed Oct 21 05:23:13.141000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client 103.206.9.228:29664] QUERY OK db=7.1ms queue=0.6ms idle=1030.9ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Wed Oct 21 05:23:13.157000 2026] [DaProductApp.TransactionRules:info] [pid 817242] [client 103.206.9.228:29664] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Wed Oct 21 05:23:13.164000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client 103.206.9.228:29664] QUERY OK source="pos_terminals" db=0.9ms queue=1.0ms idle=1059.7ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Wed Oct 21 05:23:13.166000 2026] [DaProductApp.TransactionRules:info] [pid 817242] [client 103.206.9.228:29664] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Wed Oct 21 05:23:13.167000 2026] [DaProductApp.TransactionRules:info] [pid 817242] [client 103.206.9.228:29664] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Wed Oct 21 05:23:13.169000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client 103.206.9.228:29664] QUERY OK source="user_metadata" db=0.6ms queue=0.6ms idle=1064.7ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Wed Oct 21 05:23:13.169000 2026] [DaProductApp.TransactionRules:info] [pid 817242] [client 103.206.9.228:29664] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Wed Oct 21 05:23:13.169000 2026] [DaProductApp.TransactionRules:info] [pid 817242] [client 103.206.9.228:29664] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Wed Oct 21 05:23:13.171000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client 103.206.9.228:29664] QUERY OK source="merchant_configuration" db=0.6ms queue=0.4ms idle=1067.0ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Wed Oct 21 05:23:13.171000 2026] [DaProductApp.TransactionRules:info] [pid 817242] [client 103.206.9.228:29664] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Wed Oct 21 05:23:13.172000 2026] [DaProductApp.TransactionRules:info] [pid 817242] [client 103.206.9.228:29664] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Wed Oct 21 05:23:13.172000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.172000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.172000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.172000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.172000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.172000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.172000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.172000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.173000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.173000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.173000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.173000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.173000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.173000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.173000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.173000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.174000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.174000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.174000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.174000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.174000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.174000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.174000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.174000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.175000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.175000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.175000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.175000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.175000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.175000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.175000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.175000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.175000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.176000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.176000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.176000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.176000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.176000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.176000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.176000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.177000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.177000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.178000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.178000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.178000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.178000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.178000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.179000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.179000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.181000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.181000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.181000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.183000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.183000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.183000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.184000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.184000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.184000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.184000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.184000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.184000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.185000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.185000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.186000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.186000 2026] [DaProductApp.TransactionRules:debug] [pid 817242] [client 103.206.9.228:29664] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Wed Oct 21 05:23:13.191000 2026] [Phoenix.Logger:info] [pid 817242] [client 103.206.9.228:29664] Sent 200 in 92ms [Wed Oct 21 05:30:00.954000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client -] QUERY OK source="report_requests" db=1.6ms queue=0.4ms idle=842.0ms SELECT r0.`id`, r0.`report_id`, r0.`report_type`, r0.`requester_ref`, r0.`filters`, r0.`status`, r0.`progress_percentage`, r0.`row_count`, r0.`file_path`, r0.`file_size`, r0.`download_token`, r0.`download_count`, r0.`last_downloaded_at`, r0.`error_message`, r0.`expires_at`, r0.`completed_at`, r0.`inserted_at`, r0.`updated_at` FROM `report_requests` AS r0 WHERE (NOT (r0.`expires_at` IS NULL) AND (r0.`expires_at` < ?)) [~U[2026-10-21 05:30:00Z]] ↳ DaProductApp.Workers.ReportRetentionWorker.perform/1, at: lib/da_product_app/workers/report_retention_worker.ex:18 [Wed Oct 21 05:30:01.080000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client -] QUERY OK source="report_requests" db=0.8ms idle=970.2ms SELECT r0.`id`, r0.`report_id`, r0.`report_type`, r0.`requester_ref`, r0.`filters`, r0.`status`, r0.`progress_percentage`, r0.`row_count`, r0.`file_path`, r0.`file_size`, r0.`download_token`, r0.`download_count`, r0.`last_downloaded_at`, r0.`error_message`, r0.`expires_at`, r0.`completed_at`, r0.`inserted_at`, r0.`updated_at` FROM `report_requests` AS r0 WHERE (NOT (r0.`expires_at` IS NULL) AND (r0.`expires_at` < ?)) [~U[2026-10-21 05:30:01Z]] ↳ DaProductApp.Workers.ReportRetentionWorker.perform/1, at: lib/da_product_app/workers/report_retention_worker.ex:18 [Wed Oct 21 05:33:06.256000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client -] QUERY OK source="global_table" db=0.4ms idle=1145.1ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 05:43:06.257000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client -] QUERY OK source="global_table" db=0.8ms idle=1140.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 05:53:06.257000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client -] QUERY OK source="global_table" db=0.7ms idle=1136.8ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 06:03:06.258000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client -] QUERY OK source="global_table" db=2.0ms idle=1128.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 06:13:06.257000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client -] QUERY OK source="global_table" db=1.2ms idle=1112.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Wed Oct 21 06:23:06.257000 2026] [Ecto.Adapters.SQL:debug] [pid 817242] [client -] QUERY OK source="global_table" db=1.5ms idle=1108.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Thu Oct 22 07:35:03.211000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client -] QUERY OK source="global_table" db=1.2ms queue=8.1ms idle=137.8ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Thu Oct 22 07:35:03.437000 2026] [Bandit:info] [pid 2346949] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Thu Oct 22 07:35:03.455000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 2346949] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Thu Oct 22 07:35:09.536000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:56040] POST /api/reprint_last [Thu Oct 22 07:35:09.564000 2026] [Phoenix.Logger:debug] [pid 2346949] [client 122.166.253.95:56040] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Thu Oct 22 07:35:09.590000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:56040] API Auth Check - Header Present: true [Thu Oct 22 07:35:09.590000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:56040] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:35:09.591000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:56040] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:35:09.596000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 2346949] [client 122.166.253.95:56040] API request authenticated successfully [Thu Oct 22 07:35:09.632000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:56040] QUERY OK db=9.8ms queue=3.5ms idle=695.7ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Thu Oct 22 07:35:09.661000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:56040] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Thu Oct 22 07:35:09.674000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:56040] QUERY OK source="pos_terminals" db=0.6ms queue=0.7ms idle=748.8ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Thu Oct 22 07:35:09.675000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:56040] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Thu Oct 22 07:35:09.676000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:56040] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Thu Oct 22 07:35:09.677000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:56040] QUERY OK source="user_metadata" db=0.3ms queue=0.6ms idle=750.4ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Thu Oct 22 07:35:09.677000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:56040] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Thu Oct 22 07:35:09.677000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:56040] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Thu Oct 22 07:35:09.678000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:56040] QUERY OK source="merchant_configuration" db=0.3ms queue=0.7ms idle=751.7ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Thu Oct 22 07:35:09.679000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:56040] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Thu Oct 22 07:35:09.679000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:56040] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Thu Oct 22 07:35:09.679000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.679000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.680000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.680000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.680000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.680000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.680000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.680000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.681000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.681000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.681000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.681000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.682000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.682000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.682000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.682000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.683000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.683000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.683000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.683000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.684000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.684000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.684000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.684000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.684000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.684000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.685000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.685000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.685000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.685000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.685000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.685000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.685000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.685000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.685000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.686000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.686000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.686000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.686000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.686000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.686000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.686000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.686000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.686000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.687000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.687000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.687000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.687000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.687000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.688000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.688000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.688000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.688000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.689000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.689000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.689000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.690000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.690000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.690000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.690000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.690000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.690000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.691000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.691000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.692000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:56040] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:35:09.697000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:56040] Sent 200 in 161ms [Thu Oct 22 07:39:01.646000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:42836] POST /api/reprint_last [Thu Oct 22 07:39:01.648000 2026] [Phoenix.Logger:debug] [pid 2346949] [client 122.166.253.95:42836] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Thu Oct 22 07:39:01.648000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:42836] API Auth Check - Header Present: true [Thu Oct 22 07:39:01.648000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:42836] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:39:01.648000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:42836] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:39:01.648000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 2346949] [client 122.166.253.95:42836] API request authenticated successfully [Thu Oct 22 07:39:01.659000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42836] QUERY OK db=7.1ms queue=2.9ms idle=788.8ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Thu Oct 22 07:39:01.660000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42836] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Thu Oct 22 07:39:01.667000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42836] QUERY OK source="pos_terminals" db=4.0ms queue=0.1ms idle=736.7ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Thu Oct 22 07:39:01.668000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42836] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Thu Oct 22 07:39:01.668000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42836] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Thu Oct 22 07:39:01.672000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42836] QUERY OK source="user_metadata" db=3.9ms idle=739.6ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Thu Oct 22 07:39:01.673000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42836] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Thu Oct 22 07:39:01.673000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42836] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Thu Oct 22 07:39:01.677000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42836] QUERY OK source="merchant_configuration" db=3.3ms queue=0.1ms idle=744.6ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Thu Oct 22 07:39:01.679000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42836] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Thu Oct 22 07:39:01.681000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42836] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Thu Oct 22 07:39:01.682000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.683000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.683000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.683000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.684000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.684000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.688000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.689000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.689000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.690000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.690000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.690000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.690000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.691000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.692000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.692000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.692000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.695000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.695000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.695000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.696000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.696000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.696000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.696000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.696000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.697000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.697000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.697000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.697000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.697000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.697000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.702000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.702000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.702000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.703000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.703000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.703000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.703000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.703000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.703000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.706000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.707000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.707000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.707000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.707000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.707000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.707000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.708000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.718000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.719000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.719000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.721000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.721000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.723000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.724000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.724000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.724000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.724000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.724000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.725000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.725000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.725000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.725000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.725000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.726000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42836] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:39:01.732000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:42836] Sent 200 in 86ms [Thu Oct 22 07:40:21.635000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:65043] POST /api/reprint_last [Thu Oct 22 07:40:21.636000 2026] [Phoenix.Logger:debug] [pid 2346949] [client 122.166.253.95:65043] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Thu Oct 22 07:40:21.636000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:65043] API Auth Check - Header Present: true [Thu Oct 22 07:40:21.637000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:65043] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:40:21.637000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:65043] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:40:21.637000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 2346949] [client 122.166.253.95:65043] API request authenticated successfully [Thu Oct 22 07:40:21.642000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:65043] QUERY OK db=4.0ms queue=0.8ms idle=707.5ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Thu Oct 22 07:40:21.642000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:65043] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Thu Oct 22 07:40:21.644000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:65043] QUERY OK source="pos_terminals" db=0.9ms idle=713.0ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Thu Oct 22 07:40:21.644000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:65043] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Thu Oct 22 07:40:21.644000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:65043] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Thu Oct 22 07:40:21.645000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:65043] QUERY OK source="user_metadata" db=0.5ms idle=715.5ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Thu Oct 22 07:40:21.645000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:65043] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Thu Oct 22 07:40:21.645000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:65043] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Thu Oct 22 07:40:21.646000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:65043] QUERY OK source="merchant_configuration" db=0.9ms idle=716.7ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Thu Oct 22 07:40:21.647000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:65043] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Thu Oct 22 07:40:21.647000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:65043] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Thu Oct 22 07:40:21.648000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.648000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.648000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.648000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.648000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.648000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.649000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.649000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.649000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.649000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.650000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.650000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.650000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.650000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.651000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.651000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.651000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.651000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.651000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.652000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.652000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.652000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.652000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.652000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.653000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.653000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.653000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.653000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.653000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.653000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.654000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.654000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.655000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.655000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.655000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.656000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.656000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.656000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.656000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.656000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.657000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.657000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.657000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.658000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.658000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.658000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.658000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.658000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.658000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.659000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.659000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.659000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.659000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.659000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.660000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.660000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.660000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.660000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.660000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.660000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.661000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.661000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.661000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.661000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.662000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:65043] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:40:21.662000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:65043] Sent 200 in 26ms [Thu Oct 22 07:44:42.147000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:42872] POST /api/reprint_last [Thu Oct 22 07:44:42.147000 2026] [Phoenix.Logger:debug] [pid 2346949] [client 122.166.253.95:42872] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Thu Oct 22 07:44:42.148000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:42872] API Auth Check - Header Present: true [Thu Oct 22 07:44:42.148000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:42872] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:44:42.148000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:42872] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:44:42.148000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 2346949] [client 122.166.253.95:42872] API request authenticated successfully [Thu Oct 22 07:44:42.152000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42872] QUERY OK db=2.4ms queue=0.6ms idle=219.0ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Thu Oct 22 07:44:42.152000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42872] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Thu Oct 22 07:44:42.154000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42872] QUERY OK source="pos_terminals" db=1.3ms idle=222.4ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Thu Oct 22 07:44:42.154000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42872] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Thu Oct 22 07:44:42.154000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42872] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Thu Oct 22 07:44:42.155000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42872] QUERY OK source="user_metadata" db=0.8ms idle=1225.4ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Thu Oct 22 07:44:42.155000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42872] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Thu Oct 22 07:44:42.155000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42872] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Thu Oct 22 07:44:42.156000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42872] QUERY OK source="merchant_configuration" db=0.8ms idle=1226.7ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Thu Oct 22 07:44:42.157000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42872] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Thu Oct 22 07:44:42.157000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42872] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Thu Oct 22 07:44:42.157000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.157000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.158000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.158000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.158000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.158000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.158000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.158000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.158000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.159000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.159000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.159000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.159000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.159000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.159000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.159000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.160000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.160000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.160000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.160000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.160000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.161000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.161000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.161000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.161000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.161000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.162000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.162000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.162000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.162000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.162000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.162000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.162000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.163000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.163000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.163000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.163000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.163000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.163000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.163000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.163000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.163000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.164000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.164000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.164000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.164000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.164000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.164000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.164000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.164000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.164000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.165000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.165000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.165000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.165000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.165000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.165000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.165000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.166000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.166000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.166000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.166000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.166000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.166000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.166000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42872] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:44:42.167000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:42872] Sent 200 in 19ms [Thu Oct 22 07:45:03.246000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client -] QUERY OK source="global_table" db=1.3ms idle=1315.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Thu Oct 22 07:45:15.831000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:64606] POST /api/reprint_last [Thu Oct 22 07:45:15.831000 2026] [Phoenix.Logger:debug] [pid 2346949] [client 122.166.253.95:64606] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Thu Oct 22 07:45:15.831000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:64606] API Auth Check - Header Present: true [Thu Oct 22 07:45:15.831000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:64606] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:45:15.831000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:64606] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:45:15.832000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 2346949] [client 122.166.253.95:64606] API request authenticated successfully [Thu Oct 22 07:45:15.835000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:64606] QUERY OK db=2.4ms queue=1.1ms idle=1902.1ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Thu Oct 22 07:45:15.835000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:64606] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Thu Oct 22 07:45:15.837000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:64606] QUERY OK source="pos_terminals" db=1.3ms idle=1906.0ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Thu Oct 22 07:45:15.837000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:64606] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Thu Oct 22 07:45:15.837000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:64606] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Thu Oct 22 07:45:15.838000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:64606] QUERY OK source="user_metadata" db=0.7ms idle=1909.1ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Thu Oct 22 07:45:15.839000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:64606] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Thu Oct 22 07:45:15.839000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:64606] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Thu Oct 22 07:45:15.840000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:64606] QUERY OK source="merchant_configuration" db=0.9ms queue=0.1ms idle=910.2ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Thu Oct 22 07:45:15.840000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:64606] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Thu Oct 22 07:45:15.841000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:64606] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Thu Oct 22 07:45:15.841000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.841000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.841000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.841000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.842000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.842000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.842000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.842000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.842000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.842000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.842000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.842000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.842000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.843000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.843000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.843000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.843000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.843000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.843000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.843000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.843000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.844000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.844000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.844000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.844000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.844000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.844000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.844000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.844000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.844000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.845000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.845000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.845000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.845000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.845000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.845000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.845000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.846000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.848000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.848000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.848000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.848000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.848000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.848000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.848000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.848000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.849000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.849000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.849000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.849000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.849000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.849000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.849000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.849000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.849000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.849000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.850000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.850000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.850000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.850000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.850000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.850000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.850000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.850000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.850000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:64606] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:15.851000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:64606] Sent 200 in 20ms [Thu Oct 22 07:45:21.508000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:42878] POST /api/reprint_last [Thu Oct 22 07:45:21.508000 2026] [Phoenix.Logger:debug] [pid 2346949] [client 122.166.253.95:42878] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Thu Oct 22 07:45:21.508000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:42878] API Auth Check - Header Present: true [Thu Oct 22 07:45:21.508000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:42878] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:45:21.508000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 122.166.253.95:42878] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:45:21.509000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 2346949] [client 122.166.253.95:42878] API request authenticated successfully [Thu Oct 22 07:45:21.511000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42878] QUERY OK db=2.2ms queue=0.4ms idle=1579.0ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Thu Oct 22 07:45:21.512000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42878] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Thu Oct 22 07:45:21.513000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42878] QUERY OK source="pos_terminals" db=1.2ms idle=1582.0ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Thu Oct 22 07:45:21.513000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42878] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Thu Oct 22 07:45:21.513000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42878] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Thu Oct 22 07:45:21.514000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42878] QUERY OK source="user_metadata" db=0.8ms idle=584.7ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Thu Oct 22 07:45:21.514000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42878] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Thu Oct 22 07:45:21.515000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42878] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Thu Oct 22 07:45:21.516000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 122.166.253.95:42878] QUERY OK source="merchant_configuration" db=0.6ms idle=586.2ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Thu Oct 22 07:45:21.516000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42878] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Thu Oct 22 07:45:21.516000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 122.166.253.95:42878] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Thu Oct 22 07:45:21.517000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.517000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.517000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.517000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.517000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.517000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.517000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.518000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.518000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.518000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.518000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.518000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.518000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.518000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.518000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.519000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.519000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.519000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.519000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.519000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.519000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.519000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.519000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.519000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.519000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.520000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.520000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.520000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.520000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.520000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.521000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.521000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.521000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.521000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.521000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.521000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.521000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.521000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.521000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.522000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.522000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.522000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.522000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.522000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.522000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.522000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.522000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.522000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.522000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.523000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.523000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.523000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.523000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.523000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.523000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.523000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.523000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.524000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.524000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.524000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.524000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.524000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.524000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.525000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.525000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 122.166.253.95:42878] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:45:21.526000 2026] [Phoenix.Logger:info] [pid 2346949] [client 122.166.253.95:42878] Sent 200 in 18ms [Thu Oct 22 07:48:28.084000 2026] [Phoenix.Logger:info] [pid 2346949] [client 115.99.167.137:45078] POST /api/reprint_last [Thu Oct 22 07:48:28.084000 2026] [Phoenix.Logger:debug] [pid 2346949] [client 115.99.167.137:45078] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Thu Oct 22 07:48:28.084000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 115.99.167.137:45078] API Auth Check - Header Present: true [Thu Oct 22 07:48:28.084000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 115.99.167.137:45078] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:48:28.084000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2346949] [client 115.99.167.137:45078] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Thu Oct 22 07:48:28.084000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 2346949] [client 115.99.167.137:45078] API request authenticated successfully [Thu Oct 22 07:48:28.088000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 115.99.167.137:45078] QUERY OK db=2.3ms queue=0.6ms idle=524.7ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Thu Oct 22 07:48:28.088000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 115.99.167.137:45078] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Thu Oct 22 07:48:28.089000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 115.99.167.137:45078] QUERY OK source="pos_terminals" db=0.9ms queue=0.1ms idle=199.9ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Thu Oct 22 07:48:28.090000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 115.99.167.137:45078] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Thu Oct 22 07:48:28.090000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 115.99.167.137:45078] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Thu Oct 22 07:48:28.091000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 115.99.167.137:45078] QUERY OK source="user_metadata" db=1.1ms idle=1155.7ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Thu Oct 22 07:48:28.091000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 115.99.167.137:45078] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Thu Oct 22 07:48:28.091000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 115.99.167.137:45078] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Thu Oct 22 07:48:28.093000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client 115.99.167.137:45078] QUERY OK source="merchant_configuration" db=1.1ms idle=1157.5ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Thu Oct 22 07:48:28.093000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 115.99.167.137:45078] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Thu Oct 22 07:48:28.093000 2026] [DaProductApp.TransactionRules:info] [pid 2346949] [client 115.99.167.137:45078] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Thu Oct 22 07:48:28.094000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.094000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.094000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.094000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.094000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.094000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.094000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.095000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.095000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.095000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.095000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.095000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.095000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.095000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.095000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.095000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.096000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.096000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.096000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.096000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.096000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.096000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.096000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.096000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.097000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.098000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.098000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.099000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.099000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.099000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.099000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.099000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.099000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.099000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.099000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.100000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.100000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.100000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.100000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.100000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.100000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.100000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.100000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.100000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.101000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.101000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.101000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.102000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.102000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.102000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.102000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.102000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.104000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.105000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.105000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.105000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.105000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.105000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.106000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.106000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.106000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.106000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.106000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.107000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.107000 2026] [DaProductApp.TransactionRules:debug] [pid 2346949] [client 115.99.167.137:45078] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Thu Oct 22 07:48:28.107000 2026] [Phoenix.Logger:info] [pid 2346949] [client 115.99.167.137:45078] Sent 200 in 23ms [Thu Oct 22 07:55:03.247000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client -] QUERY OK source="global_table" db=0.9ms idle=1306.9ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Thu Oct 22 08:05:03.246000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client -] QUERY OK source="global_table" db=1.9ms idle=1304.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Thu Oct 22 08:15:03.245000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client -] QUERY OK source="global_table" db=1.0ms idle=1297.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Thu Oct 22 08:25:03.246000 2026] [Ecto.Adapters.SQL:debug] [pid 2346949] [client -] QUERY OK source="global_table" db=1.3ms idle=1295.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 06:37:05.708000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=1.0ms queue=3.5ms idle=70.0ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 06:37:05.828000 2026] [Bandit:info] [pid 2298562] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Fri Oct 23 06:37:05.838000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 2298562] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Fri Oct 23 06:37:10.597000 2026] [Phoenix.Logger:info] [pid 2298562] [client 127.0.0.1:51520] GET / [Fri Oct 23 06:37:10.632000 2026] [Phoenix.Logger:debug] [pid 2298562] [client 127.0.0.1:51520] Processing with DaProductAppWeb.PageController.home/2 Parameters: %{} Pipelines: [:browser] [Fri Oct 23 06:37:10.709000 2026] [Phoenix.Logger:info] [pid 2298562] [client 127.0.0.1:51520] Sent 200 in 112ms [Fri Oct 23 06:44:19.278000 2026] [Phoenix.Logger:info] [pid 2298562] [client 115.99.167.137:52292] POST /api/reprint_last [Fri Oct 23 06:44:19.279000 2026] [Phoenix.Logger:debug] [pid 2298562] [client 115.99.167.137:52292] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Fri Oct 23 06:44:19.282000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2298562] [client 115.99.167.137:52292] API Auth Check - Header Present: true [Fri Oct 23 06:44:19.282000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2298562] [client 115.99.167.137:52292] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Fri Oct 23 06:44:19.283000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 2298562] [client 115.99.167.137:52292] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Fri Oct 23 06:44:19.283000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 2298562] [client 115.99.167.137:52292] API request authenticated successfully [Fri Oct 23 06:44:19.296000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client 115.99.167.137:52292] QUERY OK db=8.2ms queue=0.5ms idle=1709.9ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Fri Oct 23 06:44:19.315000 2026] [DaProductApp.TransactionRules:info] [pid 2298562] [client 115.99.167.137:52292] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Fri Oct 23 06:44:19.324000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client 115.99.167.137:52292] QUERY OK source="pos_terminals" db=1.3ms queue=1.0ms idle=1744.5ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Fri Oct 23 06:44:19.326000 2026] [DaProductApp.TransactionRules:info] [pid 2298562] [client 115.99.167.137:52292] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Fri Oct 23 06:44:19.326000 2026] [DaProductApp.TransactionRules:info] [pid 2298562] [client 115.99.167.137:52292] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Fri Oct 23 06:44:19.327000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client 115.99.167.137:52292] QUERY OK source="user_metadata" db=0.4ms queue=0.5ms idle=1752.2ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Fri Oct 23 06:44:19.327000 2026] [DaProductApp.TransactionRules:info] [pid 2298562] [client 115.99.167.137:52292] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Fri Oct 23 06:44:19.328000 2026] [DaProductApp.TransactionRules:info] [pid 2298562] [client 115.99.167.137:52292] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Fri Oct 23 06:44:19.329000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client 115.99.167.137:52292] QUERY OK source="merchant_configuration" db=0.4ms queue=0.4ms idle=1753.6ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Fri Oct 23 06:44:19.329000 2026] [DaProductApp.TransactionRules:info] [pid 2298562] [client 115.99.167.137:52292] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Fri Oct 23 06:44:19.329000 2026] [DaProductApp.TransactionRules:info] [pid 2298562] [client 115.99.167.137:52292] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Fri Oct 23 06:44:19.330000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.330000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.330000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.330000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.330000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.330000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.330000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.330000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.330000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.331000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.331000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.331000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.331000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.331000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.331000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.331000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.332000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.332000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.332000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.332000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.332000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.332000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.332000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.332000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.332000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.333000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.333000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.333000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.333000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.333000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.333000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.333000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.333000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.333000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.334000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.334000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.334000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.336000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.336000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.336000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.336000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.336000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.336000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.336000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.337000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.337000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.337000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.337000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.337000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.337000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.337000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.337000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.337000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.337000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.338000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.338000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.338000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.338000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.338000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.338000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.338000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.338000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.340000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.340000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.342000 2026] [DaProductApp.TransactionRules:debug] [pid 2298562] [client 115.99.167.137:52292] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Fri Oct 23 06:44:19.344000 2026] [Phoenix.Logger:info] [pid 2298562] [client 115.99.167.137:52292] Sent 200 in 65ms [Fri Oct 23 06:47:05.733000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.9ms idle=1154.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 06:57:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.6ms idle=1153.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 07:00:00.883000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="report_requests" db=0.4ms queue=0.5ms idle=294.4ms SELECT r0.`id`, r0.`report_id`, r0.`report_type`, r0.`requester_ref`, r0.`filters`, r0.`status`, r0.`progress_percentage`, r0.`row_count`, r0.`file_path`, r0.`file_size`, r0.`download_token`, r0.`download_count`, r0.`last_downloaded_at`, r0.`error_message`, r0.`expires_at`, r0.`completed_at`, r0.`inserted_at`, r0.`updated_at` FROM `report_requests` AS r0 WHERE (NOT (r0.`expires_at` IS NULL) AND (r0.`expires_at` < ?)) [~U[2026-10-23 07:00:00Z]] ↳ DaProductApp.Workers.ReportRetentionWorker.perform/1, at: lib/da_product_app/workers/report_retention_worker.ex:18 [Fri Oct 23 07:07:05.733000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=1.2ms idle=1133.8ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 07:17:05.734000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=1.8ms idle=1106.5ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 07:26:13.551000 2026] [Phoenix.Logger:info] [pid 2298562] [client 115.99.167.137:52496] GET /ota/l3/6/l3config.zip [Fri Oct 23 07:26:13.614000 2026] [Plug.Debugger:debug] [pid 2298562] [client 115.99.167.137:52496] ** (Phoenix.Router.NoRouteError) no route found for GET /ota/l3/6/l3config.zip (DaProductAppWeb.Router) (da_product_app 0.1.0) /home/prem/canarabank/saaskit/da_product_app_changed/deps/phoenix/lib/phoenix/router.ex:541: DaProductAppWeb.Router.call/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.plug_builder_call/2 (da_product_app 0.1.0) /home/prem/canarabank/saaskit/da_product_app_changed/deps/plug/lib/plug/debugger.ex:136: DaProductAppWeb.Endpoint."call (overridable 3)"/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.call/2 (phoenix 1.7.19) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4 (bandit 1.6.7) lib/bandit/pipeline.ex:129: Bandit.Pipeline.call_plug!/2 (bandit 1.6.7) lib/bandit/pipeline.ex:40: Bandit.Pipeline.run/4 (bandit 1.6.7) lib/bandit/http1/handler.ex:12: Bandit.HTTP1.Handler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_continue/2 (stdlib 5.2.3.2) gen_server.erl:1085: :gen_server.try_handle_continue/3 (stdlib 5.2.3.2) gen_server.erl:995: :gen_server.loop/7 (stdlib 5.2.3.2) proc_lib.erl:241: :proc_lib.init_p_do_apply/3 [Fri Oct 23 07:27:05.734000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=1.9ms idle=1102.5ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 07:30:00.975000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="report_requests" db=1.0ms queue=0.1ms idle=1335.8ms SELECT r0.`id`, r0.`report_id`, r0.`report_type`, r0.`requester_ref`, r0.`filters`, r0.`status`, r0.`progress_percentage`, r0.`row_count`, r0.`file_path`, r0.`file_size`, r0.`download_token`, r0.`download_count`, r0.`last_downloaded_at`, r0.`error_message`, r0.`expires_at`, r0.`completed_at`, r0.`inserted_at`, r0.`updated_at` FROM `report_requests` AS r0 WHERE (NOT (r0.`expires_at` IS NULL) AND (r0.`expires_at` < ?)) [~U[2026-10-23 07:30:00Z]] ↳ DaProductApp.Workers.ReportRetentionWorker.perform/1, at: lib/da_product_app/workers/report_retention_worker.ex:18 [Fri Oct 23 07:30:01.192000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="report_requests" db=1.0ms idle=1552.7ms SELECT r0.`id`, r0.`report_id`, r0.`report_type`, r0.`requester_ref`, r0.`filters`, r0.`status`, r0.`progress_percentage`, r0.`row_count`, r0.`file_path`, r0.`file_size`, r0.`download_token`, r0.`download_count`, r0.`last_downloaded_at`, r0.`error_message`, r0.`expires_at`, r0.`completed_at`, r0.`inserted_at`, r0.`updated_at` FROM `report_requests` AS r0 WHERE (NOT (r0.`expires_at` IS NULL) AND (r0.`expires_at` < ?)) [~U[2026-10-23 07:30:01Z]] ↳ DaProductApp.Workers.ReportRetentionWorker.perform/1, at: lib/da_product_app/workers/report_retention_worker.ex:18 [Fri Oct 23 07:31:19.704000 2026] [Phoenix.Logger:info] [pid 2298562] [client 115.99.167.137:52522] GET /ota/l3/6/l3config.zip [Fri Oct 23 07:31:19.725000 2026] [Plug.Debugger:debug] [pid 2298562] [client 115.99.167.137:52522] ** (Phoenix.Router.NoRouteError) no route found for GET /ota/l3/6/l3config.zip (DaProductAppWeb.Router) (da_product_app 0.1.0) /home/prem/canarabank/saaskit/da_product_app_changed/deps/phoenix/lib/phoenix/router.ex:541: DaProductAppWeb.Router.call/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.plug_builder_call/2 (da_product_app 0.1.0) /home/prem/canarabank/saaskit/da_product_app_changed/deps/plug/lib/plug/debugger.ex:136: DaProductAppWeb.Endpoint."call (overridable 3)"/2 (da_product_app 0.1.0) lib/da_product_app_web/endpoint.ex:1: DaProductAppWeb.Endpoint.call/2 (phoenix 1.7.19) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4 (bandit 1.6.7) lib/bandit/pipeline.ex:129: Bandit.Pipeline.call_plug!/2 (bandit 1.6.7) lib/bandit/pipeline.ex:40: Bandit.Pipeline.run/4 (bandit 1.6.7) lib/bandit/http1/handler.ex:12: Bandit.HTTP1.Handler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3 (bandit 1.6.7) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_continue/2 (stdlib 5.2.3.2) gen_server.erl:1085: :gen_server.try_handle_continue/3 (stdlib 5.2.3.2) gen_server.erl:995: :gen_server.loop/7 (stdlib 5.2.3.2) proc_lib.erl:241: :proc_lib.init_p_do_apply/3 [Fri Oct 23 07:37:05.737000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=5.7ms idle=1082.8ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 07:47:05.733000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=1.0ms queue=0.1ms idle=1080.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 07:57:05.733000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.9ms idle=1077.8ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 08:07:05.733000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.6ms idle=1063.8ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 08:17:05.733000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.8ms idle=1047.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 08:27:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.7ms idle=1045.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 08:37:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.4ms idle=40.3ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 08:47:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.6ms idle=1036.0ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 08:57:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.6ms idle=27.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 09:07:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.4ms idle=26.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 09:17:05.733000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=1.7ms idle=25.4ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 09:27:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.5ms idle=1020.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 09:37:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.6ms idle=1014.8ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 09:47:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.8ms idle=9.6ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 09:57:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.5ms idle=4.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 10:00:43.224000 2026] [Oban.Peer:warn] [pid 2298562] [client -] [message: "Oban.Peer.leader?/2 check failed due to {:timeout, {GenServer, :call, [#PID<0.647.0>, :leader?, 5000]}}", source: :oban, module: Oban.Peer] [Fri Oct 23 10:07:05.733000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.9ms idle=1527.0ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Fri Oct 23 10:17:05.732000 2026] [Ecto.Adapters.SQL:debug] [pid 2298562] [client -] QUERY OK source="global_table" db=0.6ms idle=1507.7ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Mon Oct 26 06:45:10.952000 2026] [Ecto.Adapters.SQL:debug] [pid 3362634] [client -] QUERY OK source="global_table" db=7.6ms queue=34.3ms idle=358.1ms SELECT g0.`config_key`, g0.`config_value` FROM `global_table` AS g0 [] ↳ DaProductApp.GlobalSettings.load_once/1, at: lib/da_product_app/global_settings.ex:92 [Mon Oct 26 06:45:11.592000 2026] [Bandit:info] [pid 3362634] [client -] Running DaProductAppWeb.Endpoint with Bandit 1.6.7 at 0.0.0.0:4059 (http) [Mon Oct 26 06:45:11.607000 2026] [Phoenix.Endpoint.Supervisor:info] [pid 3362634] [client -] Access DaProductAppWeb.Endpoint at http://localhost:4059 [Mon Oct 26 06:45:30.987000 2026] [Oban.Peer:warn] [pid 3362634] [client -] [message: "Oban.Peer.leader?/2 check failed due to {:timeout, {GenServer, :call, [#PID<0.647.0>, :leader?, 5000]}}", source: :oban, module: Oban.Peer] [Mon Oct 26 06:45:43.280000 2026] [Phoenix.Logger:info] [pid 3362634] [client 122.166.253.95:37608] POST /api/reprint_last [Mon Oct 26 06:45:43.317000 2026] [Phoenix.Logger:debug] [pid 3362634] [client 122.166.253.95:37608] Processing with DaProductAppWeb.ReprintController.last/2 Parameters: %{"merchantId" => "123451234512345", "terminalId" => "81748887"} Pipelines: [:api_auth] [Mon Oct 26 06:45:43.325000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 3362634] [client 122.166.253.95:37608] API Auth Check - Header Present: true [Mon Oct 26 06:45:43.325000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 3362634] [client 122.166.253.95:37608] API Auth Check - Expected Key: "9lBhDRezUjLvZ9L" [Mon Oct 26 06:45:43.325000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:debug] [pid 3362634] [client 122.166.253.95:37608] API Auth Check - Authorization Header: "9lBhDRezUjLvZ9L" [Mon Oct 26 06:45:43.328000 2026] [DaProductAppWeb.Plugs.ApiKeyAuth:info] [pid 3362634] [client 122.166.253.95:37608] API request authenticated successfully [Mon Oct 26 06:45:43.346000 2026] [Ecto.Adapters.SQL:debug] [pid 3362634] [client 122.166.253.95:37608] QUERY OK db=10.8ms queue=1.3ms idle=1225.4ms SELECT t.total_amount, t.currency_code, t.masked_card_no, t.encrypted_pan, t.acquirer_reference_no, t.reference_no, t.approval_code, t.s_tid_stan, t.s_tid_invoiceno, t.s_mid, t.s_tid, t.created_dateTime, t.response_code, t.response_message, t.s_tid_batchno, t.s_txn_type, t.proc_code, t.entry_mode, t.emv_data, t.b_mid, t.b_tid, t.b_tid_stan, t.b_tid_batchno, t.b_tid_date, t.b_tid_time FROM pos_transaction t WHERE t.s_mid = ? AND t.s_tid = ? ORDER BY t.created_dateTime DESC LIMIT 1 ["123451234512345", "81748887"] [Mon Oct 26 06:45:43.402000 2026] [DaProductApp.TransactionRules:info] [pid 3362634] [client 122.166.253.95:37608] fetch_merchant_info_from_terminal - terminal_id: 81748887, merchant_id: 123451234512345 [Mon Oct 26 06:45:43.418000 2026] [Ecto.Adapters.SQL:debug] [pid 3362634] [client 122.166.253.95:37608] QUERY OK source="pos_terminals" db=3.3ms queue=5.3ms idle=1301.1ms SELECT p0.`store_id`, s1.`name`, a2.`line1`, a2.`line2`, a2.`line3`, a2.`line4`, a2.`city`, a2.`country` FROM `pos_terminals` AS p0 LEFT OUTER JOIN `stores` AS s1 ON s1.`id` = p0.`store_id` LEFT OUTER JOIN `addresses` AS a2 ON a2.`id` = s1.`address_id` WHERE (p0.`terminalid` = ?) LIMIT 1 ["81748887"] ↳ DaProductApp.TransactionRules.fetch_merchant_info_from_terminal/2, at: lib/da_product_app/transaction_rules.ex:238 [Mon Oct 26 06:45:43.418000 2026] [DaProductApp.TransactionRules:info] [pid 3362634] [client 122.166.253.95:37608] fetch_merchant_info_from_terminal - query result: %{merchant_name: "Frog8 Cafe", address_parts: ["cl ej jerbv nj", nil, nil, nil, "bengaluru", "United Arab Emirates"], store_id: 254} [Mon Oct 26 06:45:43.419000 2026] [DaProductApp.TransactionRules:info] [pid 3362634] [client 122.166.253.95:37608] fetch_merchant_config_by_merchant_id - merchant_id: 123451234512345 [Mon Oct 26 06:45:43.420000 2026] [Ecto.Adapters.SQL:debug] [pid 3362634] [client 122.166.253.95:37608] QUERY OK source="user_metadata" db=0.6ms queue=0.4ms idle=615.9ms SELECT u0.`user_id` FROM `user_metadata` AS u0 WHERE (u0.`merchant_refrence_number` = ?) LIMIT 1 ["123451234512345"] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:337 [Mon Oct 26 06:45:43.420000 2026] [DaProductApp.TransactionRules:info] [pid 3362634] [client 122.166.253.95:37608] fetch_merchant_config_by_merchant_id - user_metadata: %{user_id: 1362} [Mon Oct 26 06:45:43.421000 2026] [DaProductApp.TransactionRules:info] [pid 3362634] [client 122.166.253.95:37608] fetch_merchant_config_by_merchant_id - found user_id: 1362 [Mon Oct 26 06:45:43.422000 2026] [Ecto.Adapters.SQL:debug] [pid 3362634] [client 122.166.253.95:37608] QUERY OK source="merchant_configuration" db=0.5ms queue=0.4ms idle=617.9ms SELECT m0.`logo`, m0.`description`, m0.`message`, m0.`model_name`, m0.`settings`, m0.`show_cardholder_name` FROM `merchant_configuration` AS m0 WHERE (m0.`user_id` = ?) LIMIT 1 [1362] ↳ DaProductApp.TransactionRules.fetch_merchant_config_by_merchant_id/1, at: lib/da_product_app/transaction_rules.ex:352 [Mon Oct 26 06:45:43.422000 2026] [DaProductApp.TransactionRules:info] [pid 3362634] [client 122.166.253.95:37608] fetch_merchant_config_by_merchant_id - merchant_config: %{message: "CACHE-MSG", description: nil, settings: %{"BASE_MERCHANT_NAME" => "Frog8 Cafe", "CLOUD_RECEIPT_BUTTON_LABEL" => "Cloud", "DEVICES" => [%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}], "EXTERNAL_PINPAD_CONNECT_MODE" => nil, "MQTT_BROKER_ADDRESS" => "mqtt.secure.shukria.ae", "MQTT_BROKER_PORT" => "1883", "NFC_RECEIPT" => "1", "OTHER_THIRD_BILL_SHOW" => "0", "OTHER_TIP_INPUT" => "0", "OTHER_VOID_CARD" => "0", "OTHER_VOID_PIN" => "0", "PASSWORD_ADMIN" => nil, "PASSWORD_SECURITY" => nil, "PASSWORD_SYSTEM_ADMIN" => nil, "QR_API_ENDPOINT" => "/qrMf", "QR_SERVER_ADDRESS" => "posqr.secure.shukria.ae", "QR_SERVER_PORT" => "4043", "QR_USE_SSL" => "1", "TOMS_FLY_PARAMETERS" => "1", "TOMS_FLY_RECEIPT" => "1", "TRANS_BALANCE" => "0", "TRANS_CONTACTLESS" => "1", "TRANS_INSTALLMENT" => "0", "TRANS_MAG_STRIPE" => "0", "TRANS_MANUAL_KEY" => "0", "TRANS_MOBILE_PAY" => "0", "TRANS_PREAUTH" => "0", "TRANS_REFUND" => "0", "TRANS_SALE" => "1", "TRANS_VOID" => "1", "TTQ_CTLS" => "1"}, logo: nil, model_name: 1, show_cardholder_name: 0} [Mon Oct 26 06:45:43.423000 2026] [DaProductApp.TransactionRules:info] [pid 3362634] [client 122.166.253.95:37608] Merged settings for merchant_id=123451234512345 user_id=1362 - total_keys=65 global_fallbacks=38 keys_from_global=["CHIP_MSR_FALLBACK", "EXTERNAL_PINPAD", "COMM_PORT", "PINPAD_MASTER_KEY_INDEX", "COMM_USE_SSL", "EXTERNAL_PINPAD_CONNECT_MODE", "PRINT_EXTERNAL", "COMM_TPDU", "PRINT_COUNT", "PRINT_REMARKS", "SCAN_EXTERN_SERIAL_BAUDRATE", "PINPAD_TIMEOUT", "BASE_MAX_REFUND_AMOUNT", "PRINT_EXTERNAL_SERIAL_BAUDRATE", "PIN_FOR_MANUAL", "BASE_TRACE_NO", "MCC_BLOCKED_LIST", "CHIP_MSR_TECH_FALLBACK", "TRANS_MANUAL", "SCAN_PRIORITY_SCANNER", "TRANS_REFUND_SAME_STORE", "CHIP_MSR_SCHEME_FALLBACK", "ELECSIGN_IS_SUPPORT", "PASSWORD_ADMIN", "PRINT_EXTERNAL_CONNECT_MODE", "COMM_SERVER_ADDRESS", "TRANS_REFUND_DIFF_STORE", "SCAN_EXTERN_CONNECT_MODE", "COMM_TIMEOUT", "POS_ENTRY_BLOCKED", "BASE_CURRENCY_CODE", "BASE_MAX_TRANS_COUNT", "PINPAD_ALGORITHM_TYPE", "PASSWORD_SYSTEM_ADMIN", "COMM_NII", "EXTERNAL_PINPAD_YSDK", "SCAN_EXTERN_USB_WAIT_TIME", "PASSWORD_SECURITY"] [Mon Oct 26 06:45:43.423000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=CHIP_MSR_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.423000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=BASE_MERCHANT_NAME value="Frog8 Cafe" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.423000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_SALE value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.423000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=OTHER_TIP_INPUT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.423000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=EXTERNAL_PINPAD value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.424000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=COMM_PORT value="9143" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.424000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PINPAD_MASTER_KEY_INDEX value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.424000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=COMM_USE_SSL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.424000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_PREAUTH value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.424000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=EXTERNAL_PINPAD_CONNECT_MODE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.424000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=CLOUD_RECEIPT_BUTTON_LABEL value="Cloud" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.424000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_MAG_STRIPE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.424000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PRINT_EXTERNAL value="0" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.424000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=COMM_TPDU value="6000782000" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.424000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PRINT_COUNT value="2" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.425000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=DEVICES value=[%{"mid" => "123451234512345", "serial_no" => "98250623730001", "status" => 1, "tid" => "81748887"}, %{"mid" => "123451234512345", "serial_no" => "61250415798001", "status" => 1, "tid" => "81748407"}] source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.425000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PRINT_REMARKS value="Thank You" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.425000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=SCAN_EXTERN_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.425000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PINPAD_TIMEOUT value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.425000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=BASE_MAX_REFUND_AMOUNT value="100" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.425000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_BALANCE value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.425000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=QR_SERVER_ADDRESS value="posqr.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.429000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TOMS_FLY_PARAMETERS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.429000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=OTHER_THIRD_BILL_SHOW value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.429000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=OTHER_VOID_CARD value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.429000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PRINT_EXTERNAL_SERIAL_BAUDRATE value="" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.430000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_MOBILE_PAY value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.430000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PIN_FOR_MANUAL value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.431000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=BASE_TRACE_NO value="000001" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.431000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=MCC_BLOCKED_LIST value="" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.431000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TTQ_CTLS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.431000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=CHIP_MSR_TECH_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.431000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_MANUAL value="1" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.432000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_REFUND value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.432000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=OTHER_VOID_PIN value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.432000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_CONTACTLESS value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.432000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=SCAN_PRIORITY_SCANNER value="0" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.434000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_REFUND_SAME_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.434000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=CHIP_MSR_SCHEME_FALLBACK value="1" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.434000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=ELECSIGN_IS_SUPPORT value="0" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.434000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PASSWORD_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.435000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PRINT_EXTERNAL_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.435000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=COMM_SERVER_ADDRESS value="pos.secure.shukria.ae" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.435000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=NFC_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.435000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_REFUND_DIFF_STORE value="1" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.436000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=SCAN_EXTERN_CONNECT_MODE value="" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.436000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=COMM_TIMEOUT value="60" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.437000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=QR_SERVER_PORT value="4043" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.437000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_INSTALLMENT value="0" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.437000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=MQTT_BROKER_ADDRESS value="mqtt.secure.shukria.ae" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.438000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=MQTT_BROKER_PORT value="1883" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.438000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_MANUAL_KEY value=(masked) source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.438000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=QR_API_ENDPOINT value="/qrMf" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.438000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=POS_ENTRY_BLOCKED value="801,901" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.438000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=BASE_CURRENCY_CODE value="784" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.439000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=BASE_MAX_TRANS_COUNT value="500" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.439000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=QR_USE_SSL value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.439000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PINPAD_ALGORITHM_TYPE value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.439000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PASSWORD_SYSTEM_ADMIN value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.439000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TRANS_VOID value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.440000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=COMM_NII value="782" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.440000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=EXTERNAL_PINPAD_YSDK value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.440000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=SCAN_EXTERN_USB_WAIT_TIME value="" source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.440000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=TOMS_FLY_RECEIPT value="1" source=:merchant merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.441000 2026] [DaProductApp.TransactionRules:debug] [pid 3362634] [client 122.166.253.95:37608] setting=PASSWORD_SECURITY value=(masked) source=:global merchant_id=123451234512345 user_id=1362 [Mon Oct 26 06:45:43.448000 2026] [Phoenix.Logger:info] [pid 3362634] [client 122.166.253.95:37608] Sent 200 in 168ms