Exemple #1
0
        /// <summary>
        /// Hashing required to create a new transaction. Complies to standards as stated by remita here
        /// https://www.remita.net/developers under Detailed Integration Specification
        /// </summary>
        /// <param name="post"></param>
        /// <returns></returns>
        public string HashRemitaRequest(RemitaPost post)
        {
            var hashString = post.MerchantId + post.ServiceTypeId + post.OrderId + post.Amount
                             + post.ResponseUrl + Config.ApiKey;

            Byte[] encryptedSha512 = ComputeHash(hashString);
            HasherBase.Clear();
            return(BitConverter.ToString(encryptedSha512).Replace("-", "").ToLower());
        }
Exemple #2
0
 public virtual string PerformNewPaymentHashing(RemitaPost post)
 {
     return(_hasher.HashRemitaRequest(post));
 }