Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Uber api 从优步获得400状态码的无效支付响应;使用RESTAPI_Uber Api - Fatal编程技术网

Uber api 从优步获得400状态码的无效支付响应;使用RESTAPI

Uber api 从优步获得400状态码的无效支付响应;使用RESTAPI,uber-api,Uber Api,我正在使用RESTAPI预订和uber ride,使用:。 它不适用于现金以外的付款方式。 我得到400,代码为:无效付款 有人能帮我吗 我能够使用cash&Paytm支付印度地区的费用 我无法为美国地区使用现金付款 我无法使用印度和美国地区的信用卡付款 当我通过优步应用程序添加一张新卡,并尝试使用该卡在优步预订出租车时,它会起作用;当我尝试使用我的应用程序使用同一张卡时,它会显示错误。之后,当我尝试使用优步应用程序预订出租车时;它不起作用 这是我从优步得到的回应: { "data": {

我正在使用RESTAPI预订和uber ride,使用:。 它不适用于现金以外的付款方式。 我得到400,代码为:无效付款 有人能帮我吗

  • 我能够使用cash&Paytm支付印度地区的费用
  • 我无法为美国地区使用现金付款
  • 我无法使用印度和美国地区的信用卡付款
  • 当我通过优步应用程序添加一张新卡,并尝试使用该卡在优步预订出租车时,它会起作用;当我尝试使用我的应用程序使用同一张卡时,它会显示错误。之后,当我尝试使用优步应用程序预订出租车时;它不起作用
  • 这是我从优步得到的回应:

    {
      "data": {
        "meta": {},
        "errors": [
          {
            "status": 400,
            "code": "invalid_payment",
            "title": "The rider's payment method is invalid and they must update their billing info."
          }
        ]
      },
      "status": 400,
      "headers": {
        "server": "nginx",
        "strict-transport-security": "max-age=604800",
        "x-frame-options": "SAMEORIGIN",
        "content-type": "application/json",
        "content-geo-system": "wgs-84",
        "date": "Fri, 05 Apr 2019 06:28:50 GMT",
        "x-content-type-options": "nosniff",
        "content-length": "151",
        "cache-control": "max-age=0",
        "connection": "keep-alive",
        "x-xss-protection": "1; mode=block"
      },
      "config": {
        "transformRequest": {},
        "transformResponse": {},
        "timeout": 180000,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "headers": {
          "Accept": "application/json, text/plain, /*",
          "Content-Type": "application/json",
          "authorization": "Bearer JA.ZWU",
          "Accept-Language": "en_US"
        },
        "method": "post",
        "url": "https://api.uber.com/v1.2/requests",
        "data": "{\"start_latitude\":40.8037381,\"start_longitude\":-73.9577813,\"end_latitude\":40.68780810000001,\"end_longitude\":-73.8057292,\"fare_id\":\"7636a3afa24d7648656aabbcc695bf094d4eed6d9323f3b10a5a5868a47c\",\"product_id\":\"b64-5de2-4539-a35a-986d6e58f186\",\"payment_method_id\":\"0xxxx-90ce-4c1d-a8c4-af7b1a00c3cf\"}"
      },
      "request": {
        "UNSENT": 0,
        "OPENED": 1,
        "HEADERS_RECEIVED": 2,
        "LOADING": 3,
        "DONE": 4,
        "readyState": 4,
        "status": 400,
        "timeout": 180000,
        "withCredentials": true,
        "upload": {},
        "_aborted": false,
        "_hasError": false,
        "_method": "POST",
        "_response": "{\"meta\":{},\"errors\":[{\"status\":400,\"code\":\"invalid_payment\",\"title\":\"The rider's payment method is invalid and they must update their billing info.\"}]}",
        "_url": "https://api.uber.com/v1.2/requests",
        "_timedOut": false,
        "_trackingName": "unknown",
        "_incrementalEvents": false,
        "responseHeaders": {
          "Server": "nginx",
          "Strict-Transport-Security": "max-age=604800",
          "X-Frame-Options": "SAMEORIGIN",
          "Content-Type": "application/json",
          "Content-Geo-System": "wgs-84",
          "Date": "Fri, 05 Apr 2019 06:28:50 GMT",
          "X-Content-Type-Options": "nosniff",
          "Content-Length": "151",
          "Cache-Control": "max-age=0",
          "Connection": "keep-alive",
          "X-XSS-Protection": "1; mode=block"
        },
        "_requestId": null,
        "_headers": {
          "accept": "application/json, text/plain, /*",
          "content-type": "application/json",
          "authorization": "Bearer JA.VUNU",
          "accept-language": "en_US"
        },
        "_responseType": "",
        "_sent": true,
        "_lowerCaseResponseHeaders": {
          "server": "nginx",
          "strict-transport-security": "max-age=604800",
          "x-frame-options": "SAMEORIGIN",
          "content-type": "application/json",
          "content-geo-system": "wgs-84",
          "date": "Fri, 05 Apr 2019 06:28:50 GMT",
          "x-content-type-options": "nosniff",
          "content-length": "151",
          "cache-control": "max-age=0",
          "connection": "keep-alive",
          "x-xss-protection": "1; mode=block"
        },
        "_subscriptions": [],
        "responseURL": "https://api.uber.com/v1.2/requests"
      }
    }
    

    实际结果应被骑乘请求接受。

    我无法重现您的问题。你的客户端ID是什么?你还可以为你的应用程序链接到你的IOS商店/google play商店链接吗?@KyleDavis该应用程序尚未上线。客户识别码:_zbncz42y6SFkzoutBNodWyZxwgwIB7O@KyleDavis您能告诉我为什么我们的卡(借记卡和信用卡)被屏蔽吗?您个人的支付方式问题与API无关。我不知道你为什么被打上标记,也许是发现了欺诈活动。您可以通过uber应用程序或help.uber.com直接向uber支持部门跟进。就请求范围而言,这在这里是不会被授予的,因此它与向前发展无关。希望这有助于结束这一切。谢谢。@KyleDavis当我使用深度链接时,信用卡支付选项可用吗?