From fb29fd4904a691df54c2c34ed1eb6b28798b4cf6 Mon Sep 17 00:00:00 2001 From: Stanislav Smetanin Date: Mon, 11 Mar 2024 19:25:08 +1000 Subject: [PATCH] Removed obsolete methods, since they are virtual and we don't need them. --- src/QuickPayPaymentWindow.cs | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/src/QuickPayPaymentWindow.cs b/src/QuickPayPaymentWindow.cs index d319828..59b3ae6 100644 --- a/src/QuickPayPaymentWindow.cs +++ b/src/QuickPayPaymentWindow.cs @@ -252,12 +252,13 @@ private string GetServiceLink(ApiService service, string operationID = "", strin } - #endregion + #endregion /// /// Post values based on order to QuickPay /// /// The order to checkout + /// Checkout parameters /// /// These are the fields that QuickPay should get /// merchant_id /[^d]$/ This is your Merchant Account id. @@ -279,19 +280,6 @@ private string GetServiceLink(ApiService service, string operationID = "", strin /// google_analytics_client_id /[^d]$/ Your Google Analytics client ID. /// checksum /^[a-z0-9]{32}$/ The calculated checksum of your data./ /// - [Obsolete("Use BeginCheckout instead.")] - public override string StartCheckout(Order order) => StartCheckout(order, false, null, null); - - [Obsolete("Use BeginCheckout instead.")] - public override string StartCheckout(Order order, bool headless, string? receiptUrl, string? cancelUrl) - { - var result = BeginCheckout(order, new() { ReceiptUrl = receiptUrl, CancelUrl = cancelUrl }); - if (result is ContentOutputResult contentOutputResult) - return contentOutputResult.Content; - - return string.Empty; - } - public override OutputResult BeginCheckout(Order order, CheckoutParameters parameters) { bool headless = parameters is not null ? true : false; @@ -368,21 +356,7 @@ public override OutputResult BeginCheckout(Order order, CheckoutParameters param LogError(order, ex, "Unhandled exception with message: {0}", ex.Message); return PrintErrorTemplate(order, ex.Message); } - } - - /// - /// Handles redirect from QuickPay with state - /// - /// Order for processing - /// String representation of template output - [Obsolete("Use HandleRequest instead.")] - public override string Redirect(Order order) - { - if (HandleRequest(order) is ContentOutputResult contentOutputResult) - return contentOutputResult.Content; - - return string.Empty; - } + } /// /// Handles redirect from QuickPay with state