示例#1
0
        internal void MarkAsPaid()
        {
            Store store = this.UpToStoreByStoreId;

            if (this.GetPaymentProviderName().ToLower() == "paylater")
            {
                PayLaterPaymentProvider payLaterProvider = new PayLaterPaymentProvider(store.GetPaymentProviderConfig(PaymentProviderName.PayLater));
                payLaterProvider.MarkOrderAsPaid(this.Id.Value);
            }
            else
            {
                CardCaptureOnlyPaymentProvider cardCaptureOnlyPaymentProvider = new CardCaptureOnlyPaymentProvider(store.GetPaymentProviderConfig(PaymentProviderName.CardCaptureOnly));
                cardCaptureOnlyPaymentProvider.MarkOrderAsPaid(this.Id.Value);
            }

            PostCheckoutController.AddUserToDnnRoles(this);
        }