- [ADDED] Introduces "configureRetryPolicy()" in the payment builder to configure the retry policy when the result of a transaction can not be retrieved at the end of a transaction. (see dedicated section in README here for more)
- Both
pollingInterval
andmaxWaitingTime
should be provided in milliseconds. - If
disableBackButton
is set to true, the Android device's back button will be disabled while the retry screen is shown. - If
maxWaitingTime
elapses without a response,SumUpAPI.ResultCode.ERROR_UNKNOWN_TRANSACTION_STATUS
will be returned. - If
disableBackButton
is set to false, pressing the back button while the retry screen is displayed will also returnSumUpAPI.ResultCode.ERROR_UNKNOWN_TRANSACTION_STATUS
. - If
pollingInterval
is greater thanmaxWaitingTime
, the value ofmaxWaitingTime
will be adjusted to matchpollingInterval
. - If either
pollingInterval
ormaxWaitingTime
is passed as a negative value, it will default to 0. - If
configureRetryPolicy()
is not called, the SDK will default to returning theSumUpAPI.ResultCode.ERROR_TRANSACTION_FAILED
error code, and default values will be used while trying to get the status of the transaction. - Default values are 2000 ms for the
pollingInterval
and 60000 ms for themaxWaitingTime
.
- Both