Skip to content

Instantly share code, notes, and snippets.

Barry Fogarty BarryFogarty

Block or report user

Report or block BarryFogarty

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@BarryFogarty
BarryFogarty / payment.sagepay.providersettings.controller.js
Created Feb 20, 2015
Merchello.Plugin.Payments.SagePay: ng-Controller for provider settings
View payment.sagepay.providersettings.controller.js
angular.module('merchello.plugins.sagepay').controller('Merchello.Plugin.Payment.SagePayPaymentProviderController',
['$scope',
function ($scope) {
console.info($scope.dialogData);
if ($scope.dialogData.provider.extendedData.items.length > 0) {
var extendedDataKey = 'merchSagePayProviderSettings';
var settingsString = $scope.dialogData.provider.extendedData.getValue(extendedDataKey);
$scope.sagePayProviderSettings = angular.fromJson(settingsString);
You can’t perform that action at this time.