<%Links::Payment::remove_method%>
<%if method_invalid%>
  <%set error_message = 'Invalid payment method: '%>
  <%set error_message_2 = $method%>
  <%include payment_methods_list.html%>
  <%endparse%>
<%elsif method_not_used%>
  <%set error_message = 'Invalid payment method: '%>
  <%set error_message_2 = $method%>
  <%set error_message_3 = ' has not been set up'%>
  <%include payment_methods_list.html%>
  <%endparse%>
<%elsif method_failed%>
  <%set error_message = "Unable to load payment method "%>
  <%set error_message_2 = $method%>
  <%set error_message_3 = ":<br><br>"%>
  <%set error_message_4 = $method_failed_reason%>
  <%include payment_methods_list.html%>
  <%endparse%>
<%elsif method_removed%>
  <%set success_message = "Payment method <b>"%>
  <%set success_message_2 = $method%>
  <%set success_message_3 = "</b> has been successfully removed"%>
  <%if no_methods_left%>
    <%set error_message = "<b>Warning:</b> Payments will be disabled until at least one payment method is configured"%>
  <%endif%>
  <%include payment_methods_list.html%>
  <%endparse%>
<%endif%>

<html>
<head>
  <title>Gossamer Links - Payments - Remove Method - <%payment_name%></title>
</head>

<body bgcolor="white">
<%set header_title = "Remove Payment Method"%>
<%set header_description = "This page removes the payment method listed below.<br><br>
If you are sure that you want to delete this payment method, click the Confirm button below."%>
<%include payment_header.html%>
<form action="admin.cgi" method="post">
<input type="hidden" name="do" value="page">
<input type="hidden" name="page" value="payment_methods_remove.html">
<input type="hidden" name="type" value="<%type%>">
<input type="hidden" name="method" value="<%payment_method%>">
<%set font_tag = '<font face="Tahoma,Arial,Helvetica" size="2">'%>
<br>
<%set no_configure_link = 1%>
<%include payment_methods_display_new.html%>
<br>

<table border="1" cellpadding="0" cellspacing="0">
  <tr>
    <td>
      <table bgcolor="white" border="0" cellpadding="3" cellspacing="3" width="500" valign="top">
        <tr>
          <td align="center">
            <%font_tag%>
              Are you sure you want to delete this payment method?<br>
              <input type="submit" name="confirm" value="Confirm Payment Method Deletion">
            </font>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</form>
</body>
</html>
