Adyen/adyen-dotnet-api-library

Support CancellationTokens in TerminalCloudApi

selfdeceited opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
We call Terminal Cloud API to start payment and to understand the payment status. There are situations when we want to cancel the requests due to browser deciding to not persue it or to follow our internal policy (e.g. wait for 5 seconds tops).
If we want our operations cancellable, I suggest to use .NET CancellationTokens.

Describe the solution you'd like
I want to pass CancellationTokens through Terminal Cloud API.

Describe alternatives you've considered
We could not use the CancellationToken, but the drawback is maintaining connection to the Adyen server (which may be under load) which our client may no longer need.

Additional context

I provided more tech details in the pull request: #937

Closing as #937 is merged