【问题标题】:Spree ship before confirm payment确认付款前疯狂发货
【发布时间】:2016-08-01 21:29:44
【问题描述】:

我有一个付款流程,我制作银行单据,然后发送产品,然后确认机票是否已付款。

在大礼包中,我需要在确认发货前确认付款。

知道的人可以帮我想办法先确认发货后付款。

狂欢 3.1

【问题讨论】:

    标签: spree


    【解决方案1】:

    或者您可以将Spree::Config[:auto_capture_on_dispatch] 设置为true。

    那么不仅可以在收款前发货(https://github.com/spree/spree/blob/master/core/app/models/spree/shipment.rb#L121),还可以在发货后自动收款(https://github.com/spree/spree/blob/8bfa0824d2a7f6cfa6efc9bd4e32d1d564f6270b/core/app/models/spree/shipment_handler.rb#L22)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-13
      • 2016-12-31
      • 2012-09-16
      • 1970-01-01
      • 2011-02-22
      • 2016-06-26
      • 2015-01-19
      相关资源
      最近更新 更多