事务未发生给出错误错误E00040客户资料ID或客户付款资料ID

时间:2019-11-11 09:55:57

标签: c# asp.net-mvc authorize.net

我正在使用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

0 个答案:

没有答案