我正在使用AuthorizeAndCapture方法在沙盒环境中针对特定金额启动事务。
下面是使用的代码。
var customerGateWay =new CustomerGateway(_authorizeNetConfiguration,_loggerFactory);
var customerResponse = await customerGateWay.getcustomerAsync(company.Company.ExternalCompanyProfileId);
//Getting response with profile id in customerResponse
var response = customerGateWay.AuthorizeAndCapture(company.Company.ExternalCompanyProfileId,customerResponse.ProfileID,totalAmount);
//response is giving this error Error E00040 Customer Profile ID or Customer Payment Profile ID
预期输出为transactionId
,但给出此错误E00040 客户资料ID或客户付款资料ID