CheckoutUrlOptions

Options for SponsorkitClient.CheckoutUrl.

On this page

Options for SponsorkitClient.CheckoutUrl.

namespace Sponsorkit;

public class CheckoutUrlOptions

Constructors#

MemberDescription
CheckoutUrlOptions()Creates options with every property at its default; set the properties with an object initializer.

CheckoutUrlOptions()#

public CheckoutUrlOptions()

Creates options with every property at its default; set the properties with an object initializer.

Properties#

MemberDescription
ProviderPreferred provider (github or open-collective); it must be one of the configured targets.
AmountAmount in minor units (for example 500 = $5.00).
CurrencyISO 4217 currency code: three letters, for example USD.
Frequencyone_time, monthly or yearly (see Frequencies).

Provider#

public string? Provider { get; set; }

Preferred provider (github or open-collective); it must be one of the configured targets.

Type: string?

Amount#

public long? Amount { get; set; }

Amount in minor units (for example 500 = $5.00). Must be positive.

Type: long?

Currency#

public string? Currency { get; set; }

ISO 4217 currency code: three letters, for example USD.

Type: string?

Frequency#

public string? Frequency { get; set; }

one_time, monthly or yearly (see Frequencies). Other values throw invalid_config.

Type: string?