fix zarinpal payment issue , add version 0.17.22.36

release
Amir Hossein Khademi 2024-04-02 11:14:00 +03:30
parent 5fa2f0ce72
commit dada0113c4
4 changed files with 13 additions and 12 deletions

View File

@ -1 +1 @@
0.17.21.35 0.17.22.36

View File

@ -6,8 +6,8 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization> <InvariantGlobalization>true</InvariantGlobalization>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<AssemblyVersion>0.17.21.35</AssemblyVersion> <AssemblyVersion>0.17.22.36</AssemblyVersion>
<FileVersion>0.17.21.35</FileVersion> <FileVersion>0.17.22.36</FileVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -14,7 +14,7 @@ public class ZarinaplPaymentVerifyResponseData
public string message { get; set; } = string.Empty; public string message { get; set; } = string.Empty;
public string card_hash { get; set; } = string.Empty; public string card_hash { get; set; } = string.Empty;
public string card_pan { get; set; } = string.Empty; public string card_pan { get; set; } = string.Empty;
public int ref_id { get; set; } public long ref_id { get; set; }
public string fee_type { get; set; } = string.Empty; public string fee_type { get; set; } = string.Empty;
public int fee { get; set; } public long fee { get; set; }
} }

View File

@ -62,7 +62,8 @@ public class ZarinpalService : IPaymentService
payment.TransactionCode, payment.CardPan, payment.Authority, payment.Type, payment.Status, payment.TransactionCode, payment.CardPan, payment.Authority, payment.Type, payment.Status,
payment.OrderId, payment.UserId), cancellationToken); payment.OrderId, payment.UserId), cancellationToken);
await _mediator.Send(new SubmitOrderPaymentCommand(payment.OrderId, OrderPaymentMethod.OnlinePayment, true),cancellationToken); await _mediator.Send(new SubmitOrderPaymentCommand(payment.OrderId, OrderPaymentMethod.OnlinePayment, true),
cancellationToken);
return new Tuple<string, string>(payment.TransactionCode, payment.FactorNumber); return new Tuple<string, string>(payment.TransactionCode, payment.FactorNumber);
} }