Skip to content

Commit

Permalink
Removed obsolete methods, since they are virtual and we don't need them.
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavSmetaninSSM committed Mar 11, 2024
1 parent 38f507c commit fb29fd4
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions src/QuickPayPaymentWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,13 @@ private string GetServiceLink(ApiService service, string operationID = "", strin
}


#endregion
#endregion

/// <summary>
/// Post values based on order to QuickPay
/// </summary>
/// <param name="order">The order to checkout</param>
/// <param name="parameters">Checkout parameters</param>
/// <remarks>
/// These are the fields that QuickPay should get
/// merchant_id /[^d]$/ This is your Merchant Account id.
Expand All @@ -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./
/// </remarks>
[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;
Expand Down Expand Up @@ -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);
}
}

/// <summary>
/// Handles redirect from QuickPay with state
/// </summary>
/// <param name="order">Order for processing</param>
/// <returns>String representation of template output</returns>
[Obsolete("Use HandleRequest instead.")]
public override string Redirect(Order order)
{
if (HandleRequest(order) is ContentOutputResult contentOutputResult)
return contentOutputResult.Content;

return string.Empty;
}
}

/// <summary>
/// Handles redirect from QuickPay with state
Expand Down

0 comments on commit fb29fd4

Please sign in to comment.