@{
    Layout = "";
}
@model ConfigurationModel
@using Nop.Plugin.Payments.PayPalDirect.Models;
@using Nop.Web.Framework;
@using (Html.BeginForm())
{
    <table class="adminContent">
        <tr>
            <td colspan="2">
                <b>If you're using this gateway ensure that your primary store currency is supported
                    by Paypal.</b>
                <br />
                <br />
                1. Log into your PayPal account.
                <br />
                2. Click on Profile from the Home Menu.
                <br />
                3. Under Account Information >> Choose API Access.
                <br />
                4. Click on Request API Credentials.
                <br />
                5. Choose API Signature as the credential type.
                <br />
                6. Enable the checkbox and agree to the license Terms-I agree to the API Certificate
                Terms of Use and terms incorporated therein and press the Submit button
                <br />
                <br />
                Before being able to receive IPN messages (optional), you'll need to activate this
                service; follow these steps:
                <br />
                <br />
                1. Log in to your Premier or Business account.
                <br />
                2. Click the Profile subtab.
                <br />
                3. Click Instant Payment Notification in the Selling Preferences column.
                <br />
                4. Click the 'Edit IPN Settings' button to update your settings.
                <br />
                5. Select 'Receive IPN messages' (Enabled) and enter the URL of your IPN handler
                (http://www.yourStore.com/Plugins/PaymentPayPalDirect/IPNHandler).
                <br />
                6. Click Save, and you should get a message that you have successfully activated
                IPN.
            </td>
        </tr>
        <tr>
            <td colspan="2" width="100%">
                <hr />
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.TransactModeValues):
            </td>
            <td class="adminData">
                @Html.DropDownList("TransactModeId", Model.TransactModeValues)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.UseSandbox):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.UseSandbox)
                @Html.ValidationMessageFor(model => model.UseSandbox)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.ApiAccountName):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ApiAccountName)
                @Html.ValidationMessageFor(model => model.ApiAccountName)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.ApiAccountPassword):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ApiAccountPassword)
                @Html.ValidationMessageFor(model => model.ApiAccountPassword)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.Signature):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.Signature)
                @Html.ValidationMessageFor(model => model.Signature)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.AdditionalFee):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AdditionalFee)
                @Html.ValidationMessageFor(model => model.AdditionalFee)
            </td>
        </tr>
        <tr>
            <td colspan="2" width="100%">
                <button type="submit" name="save" value="save" class="t-button">
                    Save</button>
            </td>
        </tr>
    </table>
    
}