Abstractions/IRequestOptionsService.cs

OrchardCore.Commerce · src/Modules/OrchardCore.Commerce.Payment.Stripe/Abstractions/IRequestOptionsService.cs · csharp · MIT
payments

IRequestOptionsService.cs from OrchardCMS/OrchardCore.Commerce

// Source: https://github.com/OrchardCMS/OrchardCore.Commerce | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
using Stripe;
using System.Threading.Tasks;

namespace OrchardCore.Commerce.Payment.Stripe.Abstractions;

/// <summary>
/// A service for accessing and managing this scope's Stripe <see cref="RequestOptions"/> value.
/// </summary>
public interface IRequestOptionsService
{
    /// <summary>
    /// Returns this scope's request options. If it doesn't exist yet, creates one by referring to the site settings.
    /// </summary>
    Task<RequestOptions> GetOrCreateRequestOptionsAsync();

    /// <summary>
    /// Sets the <see cref="RequestOptions.IdempotencyKey"/> to a new unique value. If the <see cref="RequestOptions"/>
    /// is no

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key