app/controllers/spree/api/retailops/settlement_controller.rb
# If something goes wrong with a multi-payment order, we want to log
# it and keep going.  We may get what we need from other payments,
# otherwise we want to make as much progress as possible...
If something goes wrong with a multi-payment order, we want to log
it and keep going.  We may get what we need from other payments,
otherwise we want to make as much progress as possible
If something goes wrong with a multi - payment order we want to log it and keep going . We may get what we need from other payments otherwise we want to make as much progress as possible
def rescue_gateway_error
            yield
          rescue Spree::Core::GatewayError => e
            @settlement_results["errors"] << e.message
          ensure
            @order.reload
          end
def rescue_gateway_error yield rescue Spree :: Core :: GatewayError => e @settlement_results [ "errors" ] << e . message ensure @order . reload end
If something goes wrong with a multi-payment order, we want to log
it and keep going.
If something goes wrong with a multi - payment order we want to log it and keep going .