Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nigel Wilson 944 posts 2076 karma points
    May 10, 2017 @ 08:49
    Nigel Wilson
    0

    Custom Payment Provider Issue - Cancel and Save Not Working

    Hi there

    As per the image below, I am having issues with the cancel and save buttons - cancel returns you to the Content section, Save does nothing, no errors, nadda...

    enter image description here

    Having the next best thing to no experience with Angular and having gone round in circles checking for obvious issues with plugin names and ensuring correct capitalisation, etc I have reached "hair pulling out point".

    My code for the form is below.

    <div class="umb-panel merchello-side-panel" data-ng-controller="Merchello.Plugin.GatewayProviders.Payments.Dialogs.ewayProviderSettingsController">
        <div class="umb-modalcolumn-header">
            <h4><strong>eWay Payments Provider Configuration</strong></h4>
        </div>
    
        <div class="umb-panel-body with-header with-footer">
    
            <div class="control-group row-fluid">
                <div class="col-xs-12 span12">
                    <label for="mode">Mode</label>
                    <select name="mode" class="col-xs-12 span12" id="mode" data-ng-model="providerSettings.mode">
                        <option value="Sandbox">Sandbox</option>
                        <option value="Live">Live</option>
                    </select>
                </div>
            </div>
            <div class="control-group row-fluid">
                <div class="col-xs-12 span12">
                    <label for="apiUsername">API Username</label>
                    <input class="col-xs-8 span8" type="text" id="apiUsername" data-ng-model="providerSettings.apiUsername">
                </div>
            </div>
            <div class="control-group row-fluid">
                <div class="col-xs-12 span12">
                    <label for="apiPassword">API Password</label>
                    <input class="col-xs-8 span8" type="text" id="apiPassword" data-ng-model="providerSettings.apiPassword">
                </div>
            </div>        
            <div class="control-group row-fluid">
                <label class="checkbox col-xs-12 span12">
                    <input type="checkbox" data-ng-model="dialogData.provider.encryptExtendedData"> Encrypt Provider Configuration
                </label>
            </div>
        </div>
    </div>
    
    <div class="umb-panel-footer">
        <div class="umb-el-wrap umb-panel-buttons">
            <div class="btn-toolbar umb-btn-toolbar pull-right">
                <a href="#" data-ng-click="close()" class="btn btn-link">
                    Cancel
                </a>
                <button class="btn btn-primary" data-ng-click="submit(dialogData)">
                    Save
                </button>
            </div>
        </div>
    </div>
    

    Please, can anyone help ?

    Thanks

    Nigel

Please Sign in or register to post replies

Write your reply to:

Draft