Open wopietrz opened 2 years ago
Pull Request with changes proposal: https://github.com/CyberSource/cybersource-rest-client-dotnetstandard/pull/45
This issue is related with issue https://github.com/CyberSource/cybersource-rest-client-dotnetstandard/issues/39 which also points to CallAuthenticationHeaders
where new instance of RestClient is recreated.
I raise also separate https://github.com/CyberSource/cybersource-rest-client-dotnetstandard/issues/46 "Update RestSharp to v107 and follow recommended usage".
I'm trying to call Cybersource Rest Api via Azure Api Management to meet security and complaince requirements. Unfortunately I run into some issues:
There is a possibility to initialize RestClient with a custom url, however in ApiClient.CallAuthtenticationHeaders the RestClient property is recreated:
ApiClient.cs:
In above code merchantConfig.HostName points to RunEnvironement setting.