Issue
I would like to know is there is any way in c# if payment gateway is down we get exception in catch , can we again re-call payment gateway API from catch after some milliseconds in c#
Solution
You could try using the Polly framework (https://github.com/App-vNext/Polly). It provides a fault-handling library. You could define your own retry policy (eg: when calls to payment gateway throw a 502/500 etc) and it would retry in a time that is also configurable.
Answered By - Sharath N S Answer Checked By - Mary Flores (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.