• <small id='FKRbd'></small><noframes id='FKRbd'>

      <bdo id='FKRbd'></bdo><ul id='FKRbd'></ul>
    <i id='FKRbd'><tr id='FKRbd'><dt id='FKRbd'><q id='FKRbd'><span id='FKRbd'><b id='FKRbd'><form id='FKRbd'><ins id='FKRbd'></ins><ul id='FKRbd'></ul><sub id='FKRbd'></sub></form><legend id='FKRbd'></legend><bdo id='FKRbd'><pre id='FKRbd'><center id='FKRbd'></center></pre></bdo></b><th id='FKRbd'></th></span></q></dt></tr></i><div id='FKRbd'><tfoot id='FKRbd'></tfoot><dl id='FKRbd'><fieldset id='FKRbd'></fieldset></dl></div>

  • <tfoot id='FKRbd'></tfoot>

        <legend id='FKRbd'><style id='FKRbd'><dir id='FKRbd'><q id='FKRbd'></q></dir></style></legend>
      1. 580001 无效请求:{0} PayPal (PHP)

        580001 Invalid request: {0} PayPal (PHP)(580001 无效请求:{0} PayPal (PHP))

            <legend id='ln9kM'><style id='ln9kM'><dir id='ln9kM'><q id='ln9kM'></q></dir></style></legend>
            <i id='ln9kM'><tr id='ln9kM'><dt id='ln9kM'><q id='ln9kM'><span id='ln9kM'><b id='ln9kM'><form id='ln9kM'><ins id='ln9kM'></ins><ul id='ln9kM'></ul><sub id='ln9kM'></sub></form><legend id='ln9kM'></legend><bdo id='ln9kM'><pre id='ln9kM'><center id='ln9kM'></center></pre></bdo></b><th id='ln9kM'></th></span></q></dt></tr></i><div id='ln9kM'><tfoot id='ln9kM'></tfoot><dl id='ln9kM'><fieldset id='ln9kM'></fieldset></dl></div>
            • <bdo id='ln9kM'></bdo><ul id='ln9kM'></ul>
                <tfoot id='ln9kM'></tfoot>
                  <tbody id='ln9kM'></tbody>

                  <small id='ln9kM'></small><noframes id='ln9kM'>

                  本文介绍了580001 无效请求:{0} PayPal (PHP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我从这个页面发送用户名和密码:https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-api-signature

                  I'm sending userid and password from this page: https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-api-signature

                  AppId 是我在我的 android 应用程序中用来创建付款的 ID:https://apps.paypal.com/user/my-account/applications

                  And the AppId is the ID I use in my android app to create payments: https://apps.paypal.com/user/my-account/applications

                  我正在使用以下功能:

                  function verify_paypal($payKey, $appID)
                  {
                    global $payPalUser_Id, $payPalPassword, $payPalSig;
                  $headerArray = array(
                  'X-PAYPAL-SECURITY-USERID:'.$payPalUser_Id,
                  'X-PAYPAL-SECURITY-PASSWORD:'.$payPalPassword,
                  'X-PAYPAL-SECURITY-SIGNATURE:'.$payPalSig,
                  'X-PAYPAL-REQUEST-DATA-FORMAT:JSON',
                  'X-PAYPAL-RESPONSE-DATA-FORMAT:XML',
                  'X-PAYPAL-APPLICATION-ID:'.$appID
                  );
                  
                  $url="https://svcs.paypal.com/AdaptivePayments/PaymentDetails?payKey={$payKey}&requestEnvelope.errorLanguage=en_US";
                  $ch = curl_init($url);
                  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                  curl_setopt($ch, CURLOPT_HTTPHEADER, $headerArray);
                  $adaptiveResponse = curl_exec($ch);
                  curl_close($ch);
                  return $adaptiveResponse;
                  }
                  

                  但它给出了这个错误:

                  <?xml version='1.0' encoding='UTF-8'?>
                  <ns3:FaultMessage xmlns:ns3="http://svcs.paypal.com/types/common" xmlns:ns2="http://svcs.paypal.com/types/ap">
                  <responseEnvelope>
                  <timestamp>2013-11-27T14:58:07.463-08:00</timestamp>
                  <ack>Failure</ack>
                  <correlationId>d97c635f935b3</correlationId>
                  <build>7935900</build>
                  </responseEnvelope>
                  <error>
                  <errorId>580001</errorId>
                  <domain>PLATFORM</domain>
                  <subdomain>Application</subdomain>
                  <severity>Error</severity>
                  <category>Application</category>
                  <message>Invalid request: {0}</message>
                  </error>
                  </ns3:FaultMessage>
                  

                  推荐答案

                  REQUEST-DATA-FORMAT 应该是 NV:

                  REQUEST-DATA-FORMAT should be NV:

                  $headerArray = array(
                  'X-PAYPAL-SECURITY-USERID:'.$payPalUser_Id,
                  'X-PAYPAL-SECURITY-PASSWORD:'.$payPalPassword,
                  'X-PAYPAL-SECURITY-SIGNATURE:'.$payPalSig,
                  'X-PAYPAL-REQUEST-DATA-FORMAT:NV',
                  'X-PAYPAL-RESPONSE-DATA-FORMAT:JSON',
                  'X-PAYPAL-APPLICATION-ID:'.$appID
                  );
                  

                  这篇关于580001 无效请求:{0} PayPal (PHP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How do I pass parameters into a PHP script through a webpage?(如何通过网页将参数传递给 PHP 脚本?)
                  PHP - include a php file and also send query parameters(PHP - 包含一个 php 文件并发送查询参数)
                  Where can I read about conditionals done with quot;?quot; and quot;:quot; (colon)?(我在哪里可以阅读有关使用“?完成的条件的信息?和“:(冒号)?)
                  Accessing arrays whitout quoting the key(在不引用键的情况下访问数组)
                  What is the name for the quot;lt;lt;lt;quot; operator?(“lt;lt;lt;的名字是什么?操作员?)
                  default as first option in switch statement?(默认为 switch 语句中的第一个选项?)
                      <tbody id='MhYhU'></tbody>

                    <small id='MhYhU'></small><noframes id='MhYhU'>

                  • <tfoot id='MhYhU'></tfoot>
                      <bdo id='MhYhU'></bdo><ul id='MhYhU'></ul>

                        1. <legend id='MhYhU'><style id='MhYhU'><dir id='MhYhU'><q id='MhYhU'></q></dir></style></legend>
                          <i id='MhYhU'><tr id='MhYhU'><dt id='MhYhU'><q id='MhYhU'><span id='MhYhU'><b id='MhYhU'><form id='MhYhU'><ins id='MhYhU'></ins><ul id='MhYhU'></ul><sub id='MhYhU'></sub></form><legend id='MhYhU'></legend><bdo id='MhYhU'><pre id='MhYhU'><center id='MhYhU'></center></pre></bdo></b><th id='MhYhU'></th></span></q></dt></tr></i><div id='MhYhU'><tfoot id='MhYhU'></tfoot><dl id='MhYhU'><fieldset id='MhYhU'></fieldset></dl></div>