Beispiel #1
0
        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));
        }
Beispiel #2
0
 public static bool VerifyMd5(this PaymentOrder paymentOrder, string salt)
 {
     return(paymentOrder.GetMd5(salt) == paymentOrder.Md5);
 }