api - 通过 PayPal REST API 进行银行支付

标签 api rest paypal payment bank

我正在尝试使用 PayPal REST API 通过银行账户和路由号码处理银行交易。

这是我用于测试的 api 的引用:https://api.sandbox.paypal.com/v1/payments/payment

这是我的 JSON:

{
   "intent":"sale",
   "payer":{
      "payment_method":"bank",
      "funding_instruments":[
         {
            "bank_account":{
               "account_number":"01234567890123456",
               "account_number_type":"BBAN",
               "routing_number":"012345678",
               "account_type":"Checking",
               "account_name":"Test Account",
               "auth_type":"WEB",
               "first_name":"John",
               "last_name":"Doe",
               "birth_date":"1970-01-01",
               "billing_address":{
                  "line1":"Somewhere Street",
                  "line2":"Suite 200",
                  "city":"Atlanta",
                  "country_code":"US",
                  "postal_code":"30350",
                  "state":"GA"
               }
            }
         }
      ]
   },
   "transactions":[
      {
         "amount":{
            "currency":"USD",
            "total":"100"
         }
      }
   ]
}

电话回复如下: "{\"name\":\"NOT_IMPLEMENTED\",\"message\":\"NOT_IMPLEMENTED\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#NOT_IMPLEMENTED\",\"debug_id\":\"53fd10d0a05c\"} "

任何指导将不胜感激。

最佳答案

“bank_account”似乎不是 funding_instruments 的有效选项。该文档仅列出“credit_card”和“credit_card_token”

https://developer.paypal.com/docs/api/#fundinginstrument-object

关于api - 通过 PayPal REST API 进行银行支付,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34515446/

相关文章:

c# - 验证公共(public) API 兼容性的工具

php - Magento 最小订购量 api

api - 如何将 Twitter API 用于超过 REST 速率限制的大型 Web 应用程序

java - Oauth 保护的休息 API 无需持有者 token 即可工作

api - 验证用户的 API 凭据 - PayPal DoDirectPayment

php - 上线时 Paypal 客户端身份验证失败

wordpress - wp rest api 每页每个类别帖子

api - 具有不同内容类型的 REST API

spring - JWT 签名与本地计算的签名不匹配。 JWT 有效性无法断言,不应被信任

magento - 优惠券代码 Magento 1.9.x 错误