Browse Source

fixed separator

ipaddr
Galip Tolga Erdem 5 years ago
parent
commit
b139ff49f3
  1. 7
      services/payment/src/EShopOnAbp.PaymentService.Application/PaymentRequests/PaymentRequestAppService.cs

7
services/payment/src/EShopOnAbp.PaymentService.Application/PaymentRequests/PaymentRequestAppService.cs

@ -4,6 +4,7 @@ using PayPalCheckoutSdk.Core;
using PayPalCheckoutSdk.Orders;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
@ -69,11 +70,11 @@ namespace EShopOnAbp.PaymentService.PaymentRequests
ItemTotal = new Money
{
CurrencyCode = paymentRequest.Currency,
Value = totalCheckoutPrice.ToString(".00")
Value = totalCheckoutPrice.ToString($"{CultureInfo.CurrentCulture.NumberFormat.CurrencyDecimalSeparator}00")
}
},
CurrencyCode = paymentRequest.Currency,
Value = totalCheckoutPrice.ToString(".00"),
Value = totalCheckoutPrice.ToString($"{CultureInfo.CurrentCulture.NumberFormat.CurrencyDecimalSeparator}00"),
},
Items = paymentRequest.Products.Select(p => new Item
{
@ -82,7 +83,7 @@ namespace EShopOnAbp.PaymentService.PaymentRequests
UnitAmount = new Money
{
CurrencyCode = paymentRequest.Currency,
Value = p.UnitPrice.ToString(".00")
Value = p.UnitPrice.ToString($"{CultureInfo.CurrentCulture.NumberFormat.CurrencyDecimalSeparator}00")
}
}).ToList(),
ReferenceId = paymentRequest.Id.ToString()

Loading…
Cancel
Save