public static void createSave(LarrysList.Models.Payment payment, PaymentResult paymentResult)
 {
     try
     {
         paymentRef = payment.paymentRef;
         save(buildPaymentNotice(paymentResult));
     }
     catch (Exception exp)
     {
         log.Error(exp);
         throw;
     }
 }
        private static PaymentNotice buildPaymentNotice(PaymentResult paymentresult)
        {
            var transResultCode = paymentresult.resultCode.Replace("Authorised", "AUTHORISATION").Replace("Refused", "REFUSED");
            var paymentNotice = new PaymentNotice
                                    {
                                        paymentRef = paymentRef,
                                        reason = paymentresult.refusalReason,
                                        transactionId = paymentresult.pspReference,
                                        type = transResultCode,
                                        success = true
                                    };

            return paymentNotice;
        }