贝宝沙盒大众支付不要寄钱

时间:2018-10-11 12:58:50

标签: c# paypal console

您好,我尝试在控制台应用程序上通过批量付款在Paypal沙箱中进行交易

我的代码

var client = new RestClient("https://api-3t.sandbox.paypal.com/nvp");
            var request = new RestRequest(Method.POST);
            request.AddHeader("USER", "********");
            request.AddHeader("PWD", "********");
            request.AddHeader("SIGNATURE", "********");
            request.AddHeader("VERSION", "90");
            request.AddHeader("METHOD", "MassPay");
            request.AddHeader("CURRENCYCODE", "USD");
            request.AddHeader("RECEIVERTYPE", "EmailAddress");
            request.AddHeader("L_EMAIL0", "radilbek6my1@gmail.com");
            request.AddHeader("L_AMT0", "100");
            request.AddHeader("L_EMAIL1", "radilbek6my2@gmail.com");
            request.AddHeader("L_AMT1", "100");

            IRestResponse response = client.Execute(request);
 Console.WriteLine(response.StatusCode);
            Console.ReadLine();

我的状态http代码返回0

在贝宝(Paypal)api中,什么都没有调用,并且注销了个人资料资金,可能会请求错误

对不起我的英语不好

0 个答案:

没有答案