public static string GetMd5(this PaymentOrder paymentOrder, string salt) { string value = $"{paymentOrder.TenantId}.{paymentOrder.CompanyId}.{paymentOrder.ChannelId}.{paymentOrder.AccountId}.{paymentOrder.ExternalOrderId}.{paymentOrder.Amount}"; return(SecurityHelper.MD5(value, salt)); }
public static bool VerifyMd5(this PaymentOrder paymentOrder, string salt) { return(paymentOrder.GetMd5(salt) == paymentOrder.Md5); }