mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add :resume event in Spree::Payment
This commit is contained in:
@@ -91,6 +91,10 @@ module Spree
|
||||
event :complete_authorization do
|
||||
transition from: [:requires_authorization], to: :completed
|
||||
end
|
||||
event :resume do
|
||||
transition from: [:void], to: :checkout
|
||||
end
|
||||
|
||||
|
||||
after_transition to: :completed, do: :set_captured_at
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user