Hi, im developing a payment plugin, and my PaymentInfo.cshtml needs to consume an api.
I thought in creating a class to comunicate with my API via HttpClient, since my api needs to be consumed via server side. I tried to create a class "APIHELPER", but i'm getting an error saying that the class was not registered.
So, i just made this class an ISettings class, that allows me to communicate with my class correctly.
But i am not sure if this is the best way to have a class to consume an api.
I am accepting opinions about it.