【问题标题】:Cardinity payment error MethodNotAllowedCardinity 支付错误 MethodNotAllowed
【发布时间】:2019-01-31 19:46:00
【问题描述】:

谁能帮我解决这个错误。

我的代码:

$method = new Finalize(Session::get($request['MD']), $request['PaRes']);

错误:

Method Not Allowed – 您尝试使用无效的 HTTP 方法访问资源。响应数据:C:22:"Cardinity\Method\Error":174:{{"type":"https://developers.cardinity.com/api/v1/#405","title":"Method Not Allowed ","status":405,"detail":"这个资源只支持GET,POST,但是你已经发送了PATCH。"}}

【问题讨论】:

    标签: php laravel payment-gateway


    【解决方案1】:

    确保您的 $request['MD'] 值不为空,因为对于 PATCH/PUT 请求,您必须指定要更新的实体。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-25
      • 1970-01-01
      • 2014-07-31
      • 2015-03-20
      • 2016-05-14
      • 2017-12-31
      • 2019-06-27
      • 2016-04-02
      相关资源
      最近更新 更多