<% if @gateway.nil? %>

Error: Gateway not found

<%= link_to "Back to Gateways", admin_gateways_path, class: "text-red-600 underline" %>
<% else %>
<%= link_to admin_gateway_path(@gateway), class: "inline-flex items-center gap-2 text-sm font-medium text-gray-600 hover:text-gray-900 transition-colors" do %> Back to Gateway Details <% end %>

Test Gateway: <%= @gateway.name %>

Test connection and send test SMS messages to verify gateway functionality.

Gateway Status

Connection Information

Device ID
<%= @gateway.device_id %>
Gateway Name
<%= @gateway.name %>
Priority
<%= @gateway.priority %>
Active
<% if @gateway.active %> Active <% else %> Inactive <% end %>

Send Test SMS

Send a test SMS message through this gateway to verify it's working correctly.

Enter phone number with country code (e.g., +959123456789)

160 characters remaining

Important Notes

  • Test SMS messages will be sent to real phone numbers
  • Ensure the gateway is online and connected before testing
  • Standard SMS charges may apply to the recipient
  • Test messages are marked with metadata for identification
<% end %>