コード例 #1
0
        public static void SetFinishedStatus(PaymentAttempt paymentAttempt, CreditCardPaymentAttempt creditCardPayment, string reason)
        {
            creditCardPayment.IsFinished   = true;
            creditCardPayment.IsSuccessful = true;

            var paymentStarted = new PaymentAttemptStatusFinished
            {
                Reason         = reason,
                Time           = DateTime.Now,
                PaymentAttempt = paymentAttempt
            };
        }
コード例 #2
0
        public static void SetFinishedStatus(PaymentAttempt paymentAttempt, CreditCardPaymentAttempt creditCardPayment, string reason)
        {
            creditCardPayment.IsFinished = true;
            creditCardPayment.IsSuccessful = true;

            var paymentStarted = new PaymentAttemptStatusFinished
            {
                Reason = reason,
                Time = DateTime.Now,
                PaymentAttempt = paymentAttempt
            };
        }