Class StripeApiClientConfig
- Namespace
- NuvTools.Payment.Stripe.ApiClient.Configuration
- Assembly
- NuvTools.Payment.Stripe.ApiClient.dll
Stripe client settings, bound from the Stripe configuration section.
public class StripeApiClientConfig
- Inheritance
-
StripeApiClientConfig
- Inherited Members
Remarks
Every value here is a secret except the timeout. The secret key authenticates every call; the two webhook secrets are what make an incoming webhook trustworthy, and a client with the wrong one rejects genuine events rather than accepting forged ones.
Fields
SectionName
public const string SectionName = "Stripe"
Field Value
Properties
ConnectAccountType
The kind of connected account created for a payee: express, standard or
custom. It decides who hosts the payee's dashboard and who answers for losses, which is
the application's decision and not this client's.
public string ConnectAccountType { get; set; }
Property Value
ConnectCapabilities
The capabilities requested for a connected account, by Stripe's own names —
transfers, card_payments. Empty requests transfers alone, the least an
account that is paid by transfer needs.
public IList<string> ConnectCapabilities { get; }
Property Value
Remarks
Stripe decides per country which combinations it accepts: Brazil, for one, refuses
transfers without card_payments. An application that onboards payees there lists
both; the default stays the minimum, so nobody is asked for more than their country requires.
Left empty rather than defaulted to a list, because configuration appends to a list that
already holds something.
ConnectWebhookSecret
Signing secret of the Connect webhook endpoint, when connected accounts are delivered to an endpoint of their own. Blank means both kinds arrive on one endpoint under WebhookSecret.
public string ConnectWebhookSecret { get; set; }
Property Value
MaxNetworkRetries
How many times the SDK retries a call it could not complete. Stripe's own client retries only what is safe to retry, and sends the idempotency key again when it does.
public int MaxNetworkRetries { get; set; }
Property Value
PaymentMethodTypes
The payment methods a customer may save on the hosted page, by Stripe's own names —
card, sepa_debit. Empty leaves the choice to what the Stripe account has enabled
for the currency of the request.
public IList<string> PaymentMethodTypes { get; }
Property Value
Remarks
Named by an application that can only use some of them afterwards: one that charges
off-session, or shows the saved method as a brand and four digits, lists card.
RequestTimeoutSeconds
How long one call to Stripe may take before it is abandoned.
public int RequestTimeoutSeconds { get; set; }
Property Value
SecretKey
The platform's secret key, sk_test_… or sk_live_….
public string SecretKey { get; set; }
Property Value
WebhookSecret
Signing secret of the account webhook endpoint, whsec_….
public string WebhookSecret { get; set; }