<%if save%> <%Links::Payment::save_config%> <%if payment_config_invalid_fee%> <%set message = "
You entered an invalid signup charge!"%> <%endif%> <%if payment_config_invalid_discount%> <%set message .= "
You entered an invalid discount!"%> <%endif%> <%if payment_config_invalid_term%> <%set message .= "
You entered an invalid signup term!"%> <%endif%> <%if renewal_warning_invalid%> <%set message .= "
You did not enter a valid renewal warning!"%> <%endif%> <%if config_saved_done%> <%set message = "Your payment configuration has been saved successfully"%> <%endif%> <%endif%> Gossamer Links - Payments - Payment Setup <%set header_title = "Payment Setup"%> <%set header_description = "This page allows you to enable and configure the Gossamer Links payment system."%> <%include payment_header.html%>
<%set font_tag = ''%> <%Links::Payment::load_config%>
<%if num_signup or num_renewal%> <%if num_renewal and renewal_differs%> <%else%> <%endif%> <%endif%> <%if num_recurring%> <%endif%> <%if payment_discounts%> <%endif%>
<%font_tag%>Payments Enabled:
<%font_tag%>
<%font_tag%>If enabled, you will be able to receive payment from users for adding new links.

<%if payment_config_enabled and not payment_enabled%>No payment methods have been configured; payments will not be enabled until a method is configured.<%endif%>
<%font_tag%>Expiry Notify:
<%font_tag%> days
<%font_tag%>A cron job will send a notification email to users X days before their links expire.

<%font_tag%>Payment global option:
<%font_tag%>
<%font_tag%> This option controls the default payment status of your directory. Note that individual categories have the same option that will override this global setting. If this option is set to "required", then users must pay to add their links. If set to "optional" payment categories will allow them to choose whether or not to pay to add their links. If they pay, their links show up at the top of the page with any other "paid" links, otherwise it shows at the bottom below any paid links, mixed in with the unpaid links. If set to "Not accepted", no payments will be allowed.

<%font_tag%>Link payment auto-validation:
<%font_tag%> CHECKED<%endif%>> Admin/Editors approves all links.
CHECKED<%endif%>> All paid links are automatically validated.
  <%font_tag%>Note that manual payments are automatically validated on payment approval.

<%font_tag%>Change expired links to free:
<%font_tag%> CHECKED<%endif%>> Changed expired links to free links.
CHECKED<%endif%>> Do not update expired links.
  <%font_tag%> This option allows you to define how Gossamer Links treats expired links in optional categories - the links can either automatically become free links, in which case they will still show up in the free listing of optional-payment categories, or they can be left as expired and consequently will not show up in optional payment categories.
Note: After changing this option, you must run the Repair Tables code (located in the Database admin menu)

<%font_tag%>Payment description:
<%font_tag%>
<%font_tag%> <%if num_renewal and renewal_differs%>Initial Terms: <%else%>Payment Terms: <%endif%> <%loop signup%> <%endloop%>
<%font_tag%>Delete <%font_tag%>Cost <%font_tag%>Term
<%font_tag%> <%font_tag%><%Links::Payment::currency($cost)%> <%font_tag%><%ifnot term_unit%>Lifetime<%else%><%term_num%> <%term_unit%><%endif%>
<%font_tag%>Renewal Terms: <%loop renewal%> <%endloop%>
<%font_tag%>Delete <%font_tag%>Cost <%font_tag%>Term
<%font_tag%> <%font_tag%><%Links::Payment::currency($cost)%> <%font_tag%><%ifnot term_unit%>Lifetime<%else%><%term_num%> <%term_unit%><%endif%>
<%font_tag%>Same as payment terms above.
<%font_tag%>Recurring Terms: <%loop recurring%> <%endloop%>
<%font_tag%>Delete <%font_tag%>Cost <%font_tag%>Term
<%font_tag%> <%font_tag%><%Links::Payment::currency($cost)%> <%font_tag%><%term_num%> <%term_unit%>
<%unless Links::Payment::recurring_enabled()%> <%font_tag%>Note that recurring payments require a supporting payment method. No appropriate payment method is currently enabled. <%endunless%>
<%font_tag%>New Term:
<%font_tag%> <%Links::Payment::currency('')%> checked="checked"<%endif%>> Single checked="checked"<%endif%>> Renewal checked="checked"<%endif%>> Recurring
<%font_tag%>Payment Discounts: <%loop payment_discounts%> <%endloop%>
<%font_tag%>Delete <%font_tag%>Num <%font_tag%>Discount <%font_tag%>Description
<%font_tag%> <%font_tag%> <%num%> <%font_tag%> <%percent%>% <%font_tag%> <%description%>
<%font_tag%>New Payment Discount:
<%font_tag%>Num of links: <%font_tag%>
<%font_tag%>Discount percentage: <%font_tag%> %
<%font_tag%>Discount description: <%font_tag%>
<%font_tag%>