Property RetryDelaySeconds
RetryDelaySeconds
Sets or returns the number of seconds to wait before attempting a retry.
Declaration
public int RetryDelaySeconds { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
When a transactional call (CreateOrder/Refund etc) times out the system will perform a retry (based on the MinimumRetries setting). If that retry attempt returns a 409 conflict response indicating the first request is still in progres, then the system will wait this many seconds before the next retry. See https://docs.afterpay.com.au/instore-api-v1.html#distributed-state-considerations and https://docs.afterpay.com.au/instore-api-v1.html#create-order for more details.
The minimum value is 5 seconds. Any value less than 5 seconds will be ignored, and a 5 second delay will occur instead.
Exceptions
Type | Condition |
---|---|
System.InvalidProgramException | Thrown if this property is modified after it has been passed to a AfterPayClient instance. |