【问题标题】:How to integrate square with Laravel如何将 Square 与 Laravel 集成
【发布时间】:2017-03-12 02:04:20
【问题描述】:

我在 Laravel 中有一个应用程序,我正在关注 this 教程。我从here 克隆了一个示例 repo,当我尝试制作一个 pyament 表单时,它给了我以下响应

Caught exception!
Response body:

object(stdClass)[6]
  public 'errors' => 
    array (size=1)
      0 => 
        object(stdClass)[7]
          public 'category' => string 'INVALID_REQUEST_ERROR' (length=21)
          public 'code' => string 'VALUE_TOO_LOW' (length=13)
          public 'detail' => string '`amount_money.amount` must be greater than 100.' (length=47)
          public 'field' => string 'amount_money.amount' (length=19)


Response headers:

array (size=12)
  0 => string 'HTTP/1.1 400 Bad Request' (length=24)
  'Content-Type' => string 'application/json' (length=16)
  'Vary' => string 'Origin, Accept-Encoding' (length=23)
  'X-Content-Type-Options' => string 'nosniff' (length=7)
  'X-Download-Options' => string 'noopen' (length=6)
  'X-Frame-Options' => string 'SAMEORIGIN' (length=10)
  'X-Permitted-Cross-Domain-Policies' => string 'none' (length=4)
  'X-Xss-Protection' => string '1; mode=block' (length=13)
  'Date' => string 'Sat, 29 Oct 2016 08:23:51 GMT' (length=29)
  'Keep-Alive' => string 'timeout=60' (length=10)
  'Strict-Transport-Security' => string 'max-age=631152000' (length=17)
  'content-length' => string '161' (length=3)

当我尝试沙盒时它起作用了。

  • 我怎样才能对低于 100 美元的任何金额进行收费?
  • 如何验证卡,即在 github repo 中给出的表格中,他们不要求提供持卡人姓名?
  • 如何将其他付款方式与现金或支票等方格相结合?

【问题讨论】:

  • 如果您正在制作基于 Web 的自定义销售点,我很想了解有关您的用例的更多信息!请随时通过我个人资料中的地址给我发送电子邮件。

标签: php git laravel-5.2 payment-gateway square-connect


【解决方案1】:

听起来您正在尝试建立基于网络的销售点。回答您的问题:

  • Square Register 应用程序和 API 中信用卡的最低收费为 1.00 美元(100 金额包括美分)
  • 这些卡主要使用 CVV 和邮政编码进行验证,您应该将其视为表单中的必填字段。
  • 目前,您无法通过 API 为现金或支票等其他支付类型创建付款。 (这主要是因为我们的交易 API 专门用于电子商务,而自定义销售点通常使用我们的 Register APIs 创建)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-05-04
    • 1970-01-01
    • 2017-11-22
    • 2019-09-12
    • 1970-01-01
    • 1970-01-01
    • 2020-05-21
    • 1970-01-01
    相关资源
    最近更新 更多