这是我在贝宝捕捉支付宝
OAuthTokenCredential tokenCredential = new OAuthTokenCredential("<CLIENT_ID>", "<CLIENT_SECRET>");
var accessToken = tokenCredential.GetAccessToken();
Authorization authorization = Authorization.Get(accessToken, "5RA45624N3531924N");
Capture capture = new Capture();
Amount captureAmount = new Amount();
captureAmount.currency = "USD";
captureAmount.total = "1";
capture.amount = captureAmount;
capture.is_final_capture = true;
Capture responseCapture = authorization.Capture(accessToken, capture);
用于捕获支付代码,但它说
参数类型“串”不分配给参数类型“PayPal.Api.APIContext '
在下面的行accessToken
参数
Authorization authorization = Authorization.Get(accessToken, "5RA45624N3531924N");
我该如何解决这个问题?