diff --git a/src/Modules/SimplCommerce.Module.Core/SimplCommerce.Module.Core.csproj b/src/Modules/SimplCommerce.Module.Core/SimplCommerce.Module.Core.csproj index d23ce155a..0cb0ffa05 100644 --- a/src/Modules/SimplCommerce.Module.Core/SimplCommerce.Module.Core.csproj +++ b/src/Modules/SimplCommerce.Module.Core/SimplCommerce.Module.Core.csproj @@ -9,9 +9,9 @@ - - - + + + diff --git a/src/Modules/SimplCommerce.Module.EmailSenderSmtp/SimplCommerce.Module.EmailSenderSmtp.csproj b/src/Modules/SimplCommerce.Module.EmailSenderSmtp/SimplCommerce.Module.EmailSenderSmtp.csproj index 4eaf81e8b..06869225a 100644 --- a/src/Modules/SimplCommerce.Module.EmailSenderSmtp/SimplCommerce.Module.EmailSenderSmtp.csproj +++ b/src/Modules/SimplCommerce.Module.EmailSenderSmtp/SimplCommerce.Module.EmailSenderSmtp.csproj @@ -2,7 +2,7 @@ - + diff --git a/src/Modules/SimplCommerce.Module.PaymentBraintree/SimplCommerce.Module.PaymentBraintree.csproj b/src/Modules/SimplCommerce.Module.PaymentBraintree/SimplCommerce.Module.PaymentBraintree.csproj index ea6c618da..6f7e6670f 100644 --- a/src/Modules/SimplCommerce.Module.PaymentBraintree/SimplCommerce.Module.PaymentBraintree.csproj +++ b/src/Modules/SimplCommerce.Module.PaymentBraintree/SimplCommerce.Module.PaymentBraintree.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/Modules/SimplCommerce.Module.PaymentStripe/Areas/PaymentStripe/Controllers/StripeController.cs b/src/Modules/SimplCommerce.Module.PaymentStripe/Areas/PaymentStripe/Controllers/StripeController.cs index 0a1a69c4b..4c13b255c 100644 --- a/src/Modules/SimplCommerce.Module.PaymentStripe/Areas/PaymentStripe/Controllers/StripeController.cs +++ b/src/Modules/SimplCommerce.Module.PaymentStripe/Areas/PaymentStripe/Controllers/StripeController.cs @@ -50,7 +50,10 @@ public async Task Charge(string stripeEmail, string stripeToken) { var stripeProvider = await _paymentProviderRepository.Query().FirstOrDefaultAsync(x => x.Id == PaymentProviderHelper.StripeProviderId); var stripeSetting = JsonConvert.DeserializeObject(stripeProvider.AdditionalSettings); - var stripeChargeService = new ChargeService(stripeSetting.PrivateKey); + + StripeConfiguration.ApiKey = stripeSetting.PrivateKey; + + var stripeChargeService = new ChargeService(); var currentUser = await _workContext.GetCurrentUser(); //TODO: pass checkout Id here var cart = await _checkoutService.GetCheckoutDetails(Guid.Empty); @@ -89,7 +92,7 @@ public async Task Charge(string stripeEmail, string stripeToken) Amount = (int)zeroDecimalOrderAmount, Description = "Sample Charge", Currency = regionInfo.ISOCurrencySymbol, - SourceId = stripeToken + Source = stripeToken }); payment.GatewayTransactionId = charge.Id; diff --git a/src/Modules/SimplCommerce.Module.PaymentStripe/SimplCommerce.Module.PaymentStripe.csproj b/src/Modules/SimplCommerce.Module.PaymentStripe/SimplCommerce.Module.PaymentStripe.csproj index cae0ebd69..c3cb927f9 100644 --- a/src/Modules/SimplCommerce.Module.PaymentStripe/SimplCommerce.Module.PaymentStripe.csproj +++ b/src/Modules/SimplCommerce.Module.PaymentStripe/SimplCommerce.Module.PaymentStripe.csproj @@ -13,7 +13,7 @@ - + \ No newline at end of file diff --git a/src/Modules/SimplCommerce.Module.StorageAmazonS3/SimplCommerce.Module.StorageAmazonS3.csproj b/src/Modules/SimplCommerce.Module.StorageAmazonS3/SimplCommerce.Module.StorageAmazonS3.csproj index 313c5014f..8b44d304d 100644 --- a/src/Modules/SimplCommerce.Module.StorageAmazonS3/SimplCommerce.Module.StorageAmazonS3.csproj +++ b/src/Modules/SimplCommerce.Module.StorageAmazonS3/SimplCommerce.Module.StorageAmazonS3.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Modules/SimplCommerce.Module.StorageAzureBlob/SimplCommerce.Module.StorageAzureBlob.csproj b/src/Modules/SimplCommerce.Module.StorageAzureBlob/SimplCommerce.Module.StorageAzureBlob.csproj index f43c13de9..066cbda26 100644 --- a/src/Modules/SimplCommerce.Module.StorageAzureBlob/SimplCommerce.Module.StorageAzureBlob.csproj +++ b/src/Modules/SimplCommerce.Module.StorageAzureBlob/SimplCommerce.Module.StorageAzureBlob.csproj @@ -1,7 +1,7 @@ - + diff --git a/src/SimplCommerce.Infrastructure/SimplCommerce.Infrastructure.csproj b/src/SimplCommerce.Infrastructure/SimplCommerce.Infrastructure.csproj index 750c71ed2..12259b4d0 100644 --- a/src/SimplCommerce.Infrastructure/SimplCommerce.Infrastructure.csproj +++ b/src/SimplCommerce.Infrastructure/SimplCommerce.Infrastructure.csproj @@ -9,10 +9,10 @@ - - + + - + diff --git a/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj b/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj index 7c01d06b4..df5a1e4e4 100644 --- a/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj +++ b/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj @@ -67,11 +67,11 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - + + - + diff --git a/test/SimplCommerce.Infrastructure.Tests/SimplCommerce.Infrastructure.Tests.csproj b/test/SimplCommerce.Infrastructure.Tests/SimplCommerce.Infrastructure.Tests.csproj index 5087d7a55..992acb9c9 100644 --- a/test/SimplCommerce.Infrastructure.Tests/SimplCommerce.Infrastructure.Tests.csproj +++ b/test/SimplCommerce.Infrastructure.Tests/SimplCommerce.Infrastructure.Tests.csproj @@ -6,9 +6,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/SimplCommerce.Module.Cms.Tests/SimplCommerce.Module.Cms.Tests.csproj b/test/SimplCommerce.Module.Cms.Tests/SimplCommerce.Module.Cms.Tests.csproj index 043e2f8aa..933add16d 100644 --- a/test/SimplCommerce.Module.Cms.Tests/SimplCommerce.Module.Cms.Tests.csproj +++ b/test/SimplCommerce.Module.Cms.Tests/SimplCommerce.Module.Cms.Tests.csproj @@ -6,10 +6,10 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/SimplCommerce.Module.Core.Tests/SimplCommerce.Module.Core.Tests.csproj b/test/SimplCommerce.Module.Core.Tests/SimplCommerce.Module.Core.Tests.csproj index d685a5739..2995391df 100644 --- a/test/SimplCommerce.Module.Core.Tests/SimplCommerce.Module.Core.Tests.csproj +++ b/test/SimplCommerce.Module.Core.Tests/SimplCommerce.Module.Core.Tests.csproj @@ -6,10 +6,10 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/SimplCommerce.Module.Inventory.Tests/SimplCommerce.Module.Inventory.Tests.csproj b/test/SimplCommerce.Module.Inventory.Tests/SimplCommerce.Module.Inventory.Tests.csproj index cff4341f5..99207557c 100644 --- a/test/SimplCommerce.Module.Inventory.Tests/SimplCommerce.Module.Inventory.Tests.csproj +++ b/test/SimplCommerce.Module.Inventory.Tests/SimplCommerce.Module.Inventory.Tests.csproj @@ -7,10 +7,10 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/SimplCommerce.Module.Pricing.Tests/SimplCommerce.Module.Pricing.Tests.csproj b/test/SimplCommerce.Module.Pricing.Tests/SimplCommerce.Module.Pricing.Tests.csproj index c14e35089..3ffc192e6 100644 --- a/test/SimplCommerce.Module.Pricing.Tests/SimplCommerce.Module.Pricing.Tests.csproj +++ b/test/SimplCommerce.Module.Pricing.Tests/SimplCommerce.Module.Pricing.Tests.csproj @@ -6,10 +6,10 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive