Question

Hi I am using PayPal with NVP, Following is the request to 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) After i got redirected to PayPal Page i can see Payment methods option. I want to disable that Payment methods change option.

Payment Methods

2)Or if i click change link, i can see an option as Bank account(eCheque), i want to disable that option too. Following is the image. enter image description here

Any help on this please.

Was it helpful?

Solution

I got it. This might be useful to others. This can be done on merchnats account.

Go to Profile after logging as merchant

Profile --- Payment receiving preferences ----

Block the following payments: Payments by eCheque on your website. NOTE: You may not block eCheque payments on eBay.

OTHER TIPS

If you are looking to just disable the eCheck possibility you can set PAYMENTREQUEST_0_ALLOWEDPAYMENTMETHOD ='InstantPaymentOnly'

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top