I copied and pasted a section from here (You will have to scroll to the top - click C# on the right and scroll down/refresh) and have installed the PayPal API into the project Install-Package PayPal
but QueryParameters
is not found - is there a second part or something I should already know about?
Code from site
OAuthTokenCredential tokenCredential =new OAuthTokenCredential("<CLIENT_ID>", "<CLIENT_SECRET>");
string accessToken = tokenCredential.GetAccessToken();
var parameters = new QueryParameters();
parameters.SetCount("10");
PaymentHistory paymentHistory = Payment.Get(accessToken, parameters);
AFAICS are the PayPal
QueryParameters
part ofPayPal.Util
. Please try if you can access this namespace.If not you can add it manually (as a class) using this link.
You should also consider downloading the whole SDK if the above does not work using nuget.