Paypal网站付款Pro DoDirect付款集成问题.由于无效的商家配置,无法处理此交易 [英] Paypal Website payment Pro DoDirect Payment Integration issue.This transaction cannot be processed due to an invalid merchant configuration

查看:82
本文介绍了Paypal网站付款Pro DoDirect付款集成问题.由于无效的商家配置,无法处理此交易的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用所有有效的输入调用了WebSitePayment Pro doDirectPayment API,但是在API响应中,我得到的错误低于

I had called WebSitePayment Pro doDirectPayment API with all valid inputs but in API Response I get below error

由于无效的商家配置,无法处理此交易."

要获得更多帮助,我在此处写下了我的应用程序代码

for more help i wrote down my application code here

PayPalResponse oResponse = new PayPalResponse ( );
Profile oProfile = new Profile ( );
RequestDetail oRequestDetail = new RequestDetail ( );
DoDirectPayment oDoPayment = new DoDirectPayment ( );
string Responsestring = "";
oProfile.APIUsername = ConfigurationManager.AppSettings["apiusername"];
oProfile.APIPassword = ConfigurationManager.AppSettings["apipassword"];
oProfile.APISignature = ConfigurationManager.AppSettings["apisignature"];
oProfile.Environment = ConfigurationManager.AppSettings["environment"];

oRequestDetail.IPAddress = Request.ServerVariables["LOCAL_ADDR"].ToString ( );
oRequestDetail.MerchantSessionId = Session.SessionID;

oResponse = oDoPayment.DoDirectPaymentCode ( "1.0", txtlastname.Text, txtFirstname.Text, txtaddress1.Text , txtaddress2.Text , txtCity.Text ,txtState.Text ,txtzipcode.Text,
                                         "Visa", txtcardno.Text,txtcvv2.Text, Convert.ToInt32(txtExpMonth.Text), Convert.ToInt32(txtExpYear.Text), PaymentActionCodeType.Sale, oProfile, "USA", CountryCodeType.US, CurrencyCodeType.USD, oRequestDetail );
if (oResponse.ErrorLog.Count > 0)
{
    foreach (KeyValuePair<string, string> o in oResponse.ErrorLog)
    {
        Response.Write ( o.Value.ToString ( ) + "<br/>" );
    }
}

任何机构都可以帮助我解决此问题,此代码适用于Sandbox,但不适用于Live环境.我已经完成了企业帐户的所有结算协议.

can any body help me to resolve this issue,this code is work with Sandbox but don't work with Live environment. I have complete all billing agreement for business account.

推荐答案

请确保您的配置中包含实时数据.沙箱URL和API值不同.
确保API USERNAME,PASSWORD,SUBJECT和SIGNATURE值是实时值,而不是沙箱值.
我这样做的方法是直接从沙箱站点上的报表中复制值,然后将其粘贴到配置中.

Make sure that your configuration has your live data. The sandbox URL and API values are different.
Make sure the API USERNAME, PASSWORD, SUBJECT, AND SIGNATURE values are the live values and not the sandbox values.
My method of doing this is to copy the values directly from the report on the sandbox site and paste them into the configuration.

这篇关于Paypal网站付款Pro DoDirect付款集成问题.由于无效的商家配置,无法处理此交易的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆