您好我正在使用带有 NVP 的 PayPal,以下是对 SetExpressCheckout 的请求
string returnURL = "http://localhost:50325/GetExpressCheckout.aspx" + "?amount=" + Amount + "¤cy=AUD";
string cancelURL = returnURL.Replace("ReviewOrder", "ExpCheckOut");
string strCredentials = "USER=" + strUsername + "&PWD=" + strPassword + "&SIGNATURE=" + strSignature;
string strNVP = strCredentials;
strNVP += "&PAYMENTACTION=Sale&AMT=" + Amount + "&BILLINGTYPE=MerchantInitiatedBilling" + "&RETURNURL=" + returnURL;
strNVP += "&PAYMENTREQUEST_0_ITEMAMT=25&L_PAYMENTREQUEST_0_NAME0=Item1";
strNVP += "&CANCELURL=" + cancelURL;
strNVP += "&METHOD=SetExpressCheckout&VERSION=" + strAPIVersion + "&NOSHIPPING=1";
HttpWebRequest wrWebRequest = (HttpWebRequest)WebRequest.Create(strNVPSandboxServer);
wrWebRequest.Method = "POST";
// write the form values into the request message
StreamWriter requestWriter = new StreamWriter(wrWebRequest.GetRequestStream());
requestWriter.Write(strNVP);
requestWriter.Close();
// Get the response.
HttpWebResponse hwrWebResponse = (HttpWebResponse)wrWebRequest.GetResponse();
StreamReader responseReader = new StreamReader(wrWebRequest.GetResponse().GetResponseStream());
// and read the response
string responseData = responseReader.ReadToEnd();
responseReader.Close();
return responseData;
1) 在我被重定向到 PayPal 页面后,我可以看到付款方式选项。我想禁用付款方式 更改选项。
2)或者如果我点击更改链接,我可以看到一个选项为银行账户(eCheque),我也想禁用该选项。以下是图片。
请对此有任何帮助。