在确认付款之前狂欢船

时间:2016-08-01 21:29:44

标签: spree

我有一个付款流,我在那里打了一张银行单,然后发送产品,然后确认是否支付了机票。

在大礼包中,我需要在确认运费之前确认付款。

有人知道可以帮我找到确认先发货和付款的方法。

狂欢3.1

1 个答案:

答案 0 :(得分:0)

或者您可以将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