Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Bug fix/payal urls not found issue (#226)

Eliyas baby6f3ec9b35730
diff --git a/src/Plugins/Payments.PayPalStandard/PayPalStandardPaymentProvider.cs b/src/Plugins/Payments.PayPalStandard/PayPalStandardPaymentProvider.cs
index 1d989d6b8..630a6318a 100644
--- a/src/Plugins/Payments.PayPalStandard/PayPalStandardPaymentProvider.cs
+++ b/src/Plugins/Payments.PayPalStandard/PayPalStandardPaymentProvider.cs
@@ -100,7 +100,7 @@ namespace Payments.PayPalStandard
private async Task<IDictionary<string, string>> CreateQueryParameters(Order order)
{
//get store location
- var storeLocation = _workContext.CurrentHost.Url;
+ var storeLocation = _workContext.CurrentHost.Url.TrimEnd('/');
var stateProvince = "";
var countryCode = "";
if (!String.IsNullOrEmpty(order.ShippingAddress?.StateProvinceId))