CheckoutOptions
Options for SponsorkitClient.OpenCheckoutAsync.
On this page
Options for SponsorkitClient.OpenCheckoutAsync.
namespace Sponsorkit;
public sealed class CheckoutOptions : CheckoutUrlOptionsInherits from CheckoutUrlOptions.
Constructors#
| Member | Description |
|---|---|
CheckoutOptions() | Creates options with every property at its default; set the properties with an object initializer. |
CheckoutOptions()#
public CheckoutOptions()Creates options with every property at its default; set the properties with an object initializer.
Properties#
| Member | Description |
|---|---|
Timeout | How long to poll for the new contribution. |
PollInterval | Overrides SponsorkitOptions.CheckoutPollInterval for this call. |
SignInMethod | Overrides SponsorkitOptions.SignInMethod when the supporter must sign in first. |
Timeout#
public TimeSpan? Timeout { get; set; }How long to poll for the new contribution. Default 10 minutes. It covers only the polling phase; a sign-in first is bounded by SponsorkitOptions.SignInTimeout.
Type: TimeSpan?
PollInterval#
public TimeSpan? PollInterval { get; set; }Overrides SponsorkitOptions.CheckoutPollInterval for this call.
Type: TimeSpan?
SignInMethod#
public SignInMethod? SignInMethod { get; set; }Overrides SponsorkitOptions.SignInMethod when the supporter must sign in first.
Type: SignInMethod?
Inherited from CheckoutUrlOptions#
| Member | Description |
|---|---|
Provider | Preferred provider (github or open-collective); it must be one of the configured targets. |
Amount | Amount in minor units (for example 500 = $5.00). |
Currency | ISO 4217 currency code: three letters, for example USD. |
Frequency | one_time, monthly or yearly (see Frequencies). |