<% if @payment.succeeded? %>
<%=t "successful.header" %>
<%=t "successful.description" %>
<% elsif @payment.canceled? %>
<%=t "cancelled.header" %>
<%=t "cancelled.description" %>
<% else %>
<%=t "requires_action.header", amount: number_to_currency(@payment.amount / 100.0) %>
<%=t "requires_action.description" %>
<% end %>
<%= link_to t("back"), root_path, class: "inline-block w-full px-4 py-3 bg-gray-200 hover:bg-gray-300 text-center text-gray-700 rounded-lg" %>
© <%= Date.current.year %> <%= Pay.business_name %> <%=t "all_rights_reserved" %>