Beispiel #1
0
        public Task <Result> SendPaymentConfirmation(PaymentLinkData link)
        {
            var payload = new PaymentLinkPaymentConfirmation
            {
                Date               = FormatDate(link.Date),
                Amount             = MoneyFormatter.ToCurrencyString(link.Amount, link.Currency),
                ReferenceCode      = link.ReferenceCode,
                ServiceDescription = link.ServiceType.ToString(),
            };

            return(_mailSender.Send(_options.PaymentConfirmationMailTemplateId, link.Email, payload));
        }
Beispiel #2
0
        public Task <Result> SendLink(PaymentLinkData link, string paymentUrl)
        {
            var payload = new PaymentLinkMail
            {
                Amount             = MoneyFormatter.ToCurrencyString(link.Amount, link.Currency),
                Comment            = link.Comment,
                ServiceDescription = link.ServiceType.ToString(),
                ReferenceCode      = link.ReferenceCode,
                PaymentLink        = paymentUrl
            };

            return(_mailSender.Send(_options.LinkMailTemplateId, link.Email, payload));
        }