Class AfterPayConfiguration
Instances of this class represent configuration options for IAfterPayClient instances. The static members of this class provide global configuration common to all instances.
Inheritance
Inherited Members
Namespace: Yort.AfterPay.InStore
Assembly: cs.temp.dll.dll
Syntax
public sealed class AfterPayConfiguration
Constructors
| Name | Description |
|---|---|
| AfterPayConfiguration() | Default contructor, creates a new instance. |
Properties
| Name | Description |
|---|---|
| DefaultCurrency | Sets or returns the default currency for new AfterPayMoney instances where the currency is not explicitly provided. |
| DeviceId | Sets or returns the id this device previously registered with AfterPay, used to obtain authorisation tokens. |
| DeviceKey | Sets or returns the secret key of this device used to obtain authorisation tokens. |
| Environment | Sets or returns the AfterPay API environment to be used. |
| HttpClient | Sets or returns an HttpClient instance used to make calls to the AfterPay API. If null/unset, the system will create it's own instance on first use. |
| MerchantId | Sets or returns the merchant ID that will be used as part of the user agent string when calling the AfterPay API. |
| MinimumRetries | The minumum number of automatic retries to perform when a create transaction (order/refund/order reversal/refund reversal etc) times out. |
| ProductName | Sets or returns the product name that will be used as part of the user agent string when calling the AfterPay API. |
| ProductVendor | Sets or returns the name of the vendor that will be used as part of the user agent string when calling the AfterPay API. |
| ProductVersion | Sets or returns the version number of the ProductName name that will be used as part of the user agent string when calling the AfterPay API. |
| RetryDelaySeconds | Sets or returns the number of seconds to wait before attempting a retry. |
| SystemClock | Sets or returns an implementation of IAfterPaySystemClock that will be used by the library to determine the current date and time. |