すべての有効な入力を使用して WebSitePayment Pro doDirectPayment API を呼び出しましたが、API 応答で以下のエラーが発生します
「加盟店の設定が無効なため、この取引は処理できません。」
詳細については、ここにアプリケーションコードを書き留めました
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/>" );
}
}
この問題の解決を手伝ってくれる人はいますか?このコードはサンドボックスで動作しますが、ライブ環境では動作しません。ビジネス アカウントのすべての請求契約を完了しました。