<%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%> Links SQL - Payments - Payment Setup <%set header_title = "Payment Setup"%> <%set header_description = "This page allows you to enable and configure the Links SQL payment system."%>

<%Links::header($header_title,$header_description,$message)%>

<%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.

<%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%> If a payment is required, then users must pay to add their links.
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.
Not accepted means no payment is required or accepted to add a link.

<%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%>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%>