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); }