C# 通过Authorize.Net发送OTP
在authorize.net中使用信用卡/借记卡付款时,是否有发送OTP的选项。C# 通过Authorize.Net发送OTP,c#,asp.net-mvc,payment-gateway,authorize.net,C#,Asp.net Mvc,Payment Gateway,Authorize.net,在authorize.net中使用信用卡/借记卡付款时,是否有发送OTP的选项。 如果没有选择,如何实现这一点 这是从授权的.Net获取响应的代码 public static ANetApiResponse Run(CustomerDetail cd,decimal amount) { ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environ
如果没有选择,如何实现这一点 这是从授权的.Net获取响应的代码
public static ANetApiResponse Run(CustomerDetail cd,decimal amount)
{
ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.SANDBOX;
ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
{
name = ConfigurationManager.AppSettings["AuthorizeNetLogin"],
ItemElementName = ItemChoiceType.transactionKey,
Item = ConfigurationManager.AppSettings["AuthorizeNetTransactionKey"],
};
var creditCard = new creditCardType
{
cardNumber = Convert.ToString(cd.cardnumber),
expirationDate = cd.expirationdate,
};
var paymentType = new paymentType { Item = creditCard };
var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), // authorize only
amount = amount,
payment = paymentType
};
var request = new createTransactionRequest { transactionRequest = transactionRequest };
var controller = new createTransactionController(request);
controller.Execute();
var response = controller.GetApiResponse();
return response;
}
公共静态ANetApiResponse运行(客户详细cd,十进制金额)
{
ApiOperationBase.RunEnvironment=AuthorizeNet.Environment.SANDBOX;
ApiOperationBase.MerchantAuthentication=新的merchantAuthenticationType()
{
name=ConfigurationManager.AppSettings[“AuthorizeNetLogin”],
ItemElementName=ItemChoiceType.transactionKey,
Item=ConfigurationManager.AppSettings[“AuthorizeNetTransactionKey”],
};
var creditCard=新的creditCardType
{
cardNumber=转换为字符串(cd.cardNumber),
expirationDate=cd.expirationDate,
};
var paymentType=new paymentType{Item=Credit Card};
var transactionRequest=新transactionRequestType
{
transactionType=transactionTypeEnum.authOnlyTransaction.ToString(),//仅授权
金额=金额,
付款=付款类型
};
var request=new createTransactionRequest{transactionRequest=transactionRequest};
var控制器=新的createTransactionController(请求);
controller.Execute();
var response=controller.GetApiResponse();
返回响应;
}
Authorize.Net不支持一次性密码,因为Authorize.Net不支持转账 什么是OTP???从手机获得一次性密码。如果我们从账户转账,安全目的银行网站会从register mobile发送一次性密码。@johndeyou问了很多问题,但没有接受很多答案。这个网站是双向的。如果你希望得到帮助,你应该接受那些帮助你的人的回答,以此来奖励他们。阅读并开始回馈社区。