在PayPal页面上禁用付款方式选项(PayPal NVP)

时间:2013-05-16 00:44:12

标签: paypal paypal-sandbox paypal-nvp

您好我正在使用PayPal和NVP, 以下是对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页面后,我可以看到付款方式选项。我想停用付款方式更改 选项。

Payment Methods

2)如果我点击更改链接,我可以看到一个选项为银行帐户(eCheque),我想禁用该功能选项也是。以下是图片。 enter image description here

对此有任何帮助。

2 个答案:

答案 0 :(得分:5)

我明白了。这可能对其他人有用。 这可以在merchnats帐户上完成。

以商家身份登录后转到个人资料

简介---付款接收偏好----

阻止以下付款: eCheque在您的网站上付款。注意:您不能在eBay上阻止eCheque付款。

答案 1 :(得分:2)

如果您只想禁用eCheck,可以设置PAYMENTREQUEST_0_ALLOWEDPAYMENTMETHOD =' InstantPaymentOnly'