【问题标题】:Silverstripe - Swipestripe checkout errorSilverstripe - Swipestripe 结帐错误
【发布时间】:2014-10-14 00:01:53
【问题描述】:

我正在运行安装了 swipestripe 的本地 silverstripe 实例。我按照手动安装 swipestripe 找到了here 但每次我尝试去结账时都会收到这个错误。我已按照说明安装了支票付款方式

[User Error] Method Cheque not defined in factory
GET /checkout/
Line 50 in /Users/username/Sites/silverstripe/payment/code/PaymentProcessor.php

Source

41   * @return array
42   */
43  public static function get_supported_methods() {
44      $methodConfig = Config::inst()->get('PaymentProcessor', 'supported_methods');
45      $environment = PaymentGateway::get_environment();
46 
47      // Check if all methods are defined in factory
48      foreach ($methodConfig[$environment] as $method) {
49          if (! PaymentFactory::get_factory_config($method)) {
50              user_error("Method $method not defined in factory", E_USER_ERROR);
51          }
52      }
53      return $methodConfig[$environment];
54  }
55 
56  /**

我已按照说明在 Mysite.yaml 中放置了正确的代码,但找不到解决此问题的方法。非常感谢任何帮助:)

【问题讨论】:

    标签: silverstripe swipestripe


    【解决方案1】:

    工厂尝试构建支付相关的类。已使用

    更新了您的作曲家 json
    composer require frankmullenger/payment-cheque:dev-master
    

    在外壳上?或者从https://github.com/frankmullenger/silverstripe-payment-cheque 下载压缩包并将其解压缩到一个名为payment-cheque的文件夹中?

    我假设您更新了配置并在之后运行 /dev/build。如果你

    【讨论】:

    • 您好,我进行了手动安装,所以没有使用 composer。我更新了配置并运行 /dev/build
    • 谢谢,我尝试了您建议的付款支票模块,它工作 100%。安装页面上建议的那个肯定有问题。谢谢
    猜你喜欢
    • 2015-09-03
    • 1970-01-01
    • 2020-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多