简体   繁体   English

PayPal Payments Pro-拒绝和审核

[英]PayPal Payments Pro - Declined and Review

i'm trying to get PayPal Payments Pro to work using this code 我正在尝试使用此代码使PayPal Payments Pro正常工作

        var client = new HttpClient();
        // Create the HttpContent for the form to be posted.
        var requestContent = new FormUrlEncodedContent(new[] {
        new KeyValuePair<string, string>("USER", PPLUser),
        new KeyValuePair<string, string>("VENDOR", PPLVendor),
        new KeyValuePair<string, string>("PARTNER", PPLPartner),
        new KeyValuePair<string, string>("PWD", PPLPwd),            
        new KeyValuePair<string, string>("TENDER", "C"), // D=Pinless debit; C=Credit Card (REQ)
        new KeyValuePair<string, string>("TRXTYPE", "S"), //Sale(REQ)
        new KeyValuePair<string, string>("ACCT", this.txtCCNumber.Text),
        new KeyValuePair<string, string>("EXPDATE", CardExp),
        new KeyValuePair<string, string>("AMT", txtAmount.Text),
        new KeyValuePair<string, string>("CVV2", txtCVC.Text),
        new KeyValuePair<string, string>("CREDITCARDTYPE", CardTypes.SelectedValue.ToString()),
        new KeyValuePair<string, string>("CURRENCYCODE", "GBP"),
        new KeyValuePair<string, string>("VERSION", "109.0"),
        });

        // Get the response.
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
            HttpResponseMessage response = await client.PostAsync("https://pilot-payflowpro.paypal.com", requestContent);
            // Get the response content.
            HttpContent responseContent = response.Content;

            // Get the stream of the content.
            using (var reader = new StreamReader(await responseContent.ReadAsStreamAsync()))
            {
                // Write the output.
                Console.WriteLine(await reader.ReadToEndAsync());
            }

But this is the response i get: 但这是我得到的回应:

RESULT=12&PNREF=A70A9BC2A5B9&RESPMSG=Declined&PREFPSMSG=Review: More than one rule was triggered for Review

Am I missing a header or something obvious? 我是否缺少标题或明显的东西? Strangely the same code appears to work fine if I use a different vendor/partner/password Thanks in advance. 奇怪的是,如果我使用其他供应商/合作伙伴/密码,则相同的代码似乎可以正常工作,谢谢。

I don't think there is a problem with the code. 我认为代码没有问题。 It seems the card or account you used was declined by Paypal and set for review. 您所使用的卡或帐户似乎已被Paypal拒绝并准备进行审核。 PayPal has extensive anti-fraud procedures. 贝宝具有广泛的反欺诈程序。 Get in touch with customer service to see why it was declined. 与客户服务联系,以了解为什么拒绝该服务。

Glad you got the fraud review fixed. 很高兴您已修正欺诈审查。 For test credit cards just go HERE . 如需测试信用卡,请点击这里 If you have an issue with those cards, I doubt you will hop over to this SITE and use them. 如果您对这些卡有疑问,我怀疑您会跳至该站点并使用它们。 Note: even though they state 'Payflow' cards only, you can use the others; 注意:即使它们仅注明“ Payflow”卡,您也可以使用其他卡; doesn't matter. 没关系 8^) 8 ^)

Lastly, the exp date on cards are anytime in the future; 最后,卡上的到期日期是将来的任何时候; IE- July 2nd 2016; IE-2016年7月2日; today is 7/1/16 and the CSC or CVV is 123 on all test cards posted to our servers. 今天是7/1/16,发布到我们服务器上的所有测试卡的CSC或CVV是123。 Do not use the 4 and 15 1's when testing as that error's out periodically. 测试时请勿使用4和15 1,因为该错误会定期出现。

Let me know if that works for you. 让我知道这是否适合您。 Have a good one. 祝你有个好的一天。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM