Skip to content

Commit

Permalink
Updated to support NopCommerce 3.50
Browse files Browse the repository at this point in the history
  • Loading branch information
AButler committed Feb 22, 2015
1 parent 9ac34e7 commit f013eb4
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Payments.Nochex/Description.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Group: Payment methods
FriendlyName: Nochex
SystemName: Payments.Nochex
Version: 3.41
SupportedVersions: 3.40
Version: 3.50
SupportedVersions: 3.50
Author: webbutler
DisplayOrder: 1
FileName: Nop.Plugin.Payments.Nochex.dll
10 changes: 5 additions & 5 deletions Payments.Nochex/NochexPaymentProcessor.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.Routing;
using Nop.Core;
using Nop.Core.Domain.Orders;
Expand All @@ -28,15 +26,13 @@ public class NochexPaymentProcessor: BasePlugin, IPaymentMethod {
private readonly NochexPaymentSettings _settings;
private readonly ISettingService _settingService;
private readonly IWebHelper _webHelper;
private readonly HttpContextBase _httpContext;
private readonly IOrderTotalCalculationService _orderTotalCalculationService;
private readonly ITokenizer _tokenizer;

public NochexPaymentProcessor( NochexPaymentSettings settings, ISettingService settingService, IWebHelper webHelper, HttpContextBase httpContext, IOrderTotalCalculationService orderTotalCalculationService, ITokenizer tokenizer ) {
public NochexPaymentProcessor( NochexPaymentSettings settings, ISettingService settingService, IWebHelper webHelper, IOrderTotalCalculationService orderTotalCalculationService, ITokenizer tokenizer ) {
_settings = settings;
_settingService = settingService;
_webHelper = webHelper;
_httpContext = httpContext;
_orderTotalCalculationService = orderTotalCalculationService;
_tokenizer = tokenizer;
}
Expand Down Expand Up @@ -98,6 +94,10 @@ public void PostProcessPayment( PostProcessPaymentRequest postProcessPaymentRequ
post.Post();
}

public bool HidePaymentMethod( IList<ShoppingCartItem> cart ) {
return false;
}

public decimal GetAdditionalHandlingFee( IList<ShoppingCartItem> cart ) {
return this.CalculateAdditionalFee( _orderTotalCalculationService, cart, _settings.AdditionalFee, _settings.AdditionalFeePercentage );
}
Expand Down
14 changes: 7 additions & 7 deletions Payments.Nochex/Payments.Nochex.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,32 @@
<Reference Include="System.Web" />
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.0\lib\net45\System.Web.Helpers.dll</HintPath>
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.2\lib\net45\System.Web.Helpers.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Web.Mvc, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="System.Web.Mvc, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.0\lib\net45\System.Web.Mvc.dll</HintPath>
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.2\lib\net45\System.Web.Mvc.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.0\lib\net45\System.Web.Razor.dll</HintPath>
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.2\lib\net45\System.Web.Razor.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.0\lib\net45\System.Web.WebPages.dll</HintPath>
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.2\lib\net45\System.Web.WebPages.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.0\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.2\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.0\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.2\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
Expand Down
5 changes: 2 additions & 3 deletions Payments.Nochex/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down Expand Up @@ -32,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "3.4.1.0" )]
[assembly: AssemblyFileVersion( "3.4.1.0" )]
[assembly: AssemblyVersion( "3.5.0.0" )]
[assembly: AssemblyFileVersion( "3.5.0.0" )]
1 change: 1 addition & 0 deletions Payments.Nochex/Views/PaymentNochex/Configure.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
</script>

@using ( Html.BeginForm() ) {
@Html.AntiForgeryToken()
<table class="adminContent">
<tr>
<td colspan="2">
Expand Down
6 changes: 3 additions & 3 deletions Payments.Nochex/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.AspNet.Mvc" version="5.2.0" targetFramework="net451" />
<package id="Microsoft.AspNet.Razor" version="3.2.0" targetFramework="net451" />
<package id="Microsoft.AspNet.WebPages" version="3.2.0" targetFramework="net451" />
<package id="Microsoft.AspNet.Mvc" version="5.2.2" targetFramework="net451" />
<package id="Microsoft.AspNet.Razor" version="3.2.2" targetFramework="net451" />
<package id="Microsoft.AspNet.WebPages" version="3.2.2" targetFramework="net451" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net451" />
</packages>
Binary file modified References/NopCommerce/Nop.Core.dll
Binary file not shown.
Binary file modified References/NopCommerce/Nop.Services.dll
Binary file not shown.
Binary file modified References/NopCommerce/Nop.Web.Framework.dll
Binary file not shown.

0 comments on commit f013eb4

Please sign in to comment.