app/services/transaction_service/gateway.rb
# Wrap response to signal that the gateway adapter has synchronously
# completed its work. Process can directly continue with next
# actions and state transitions.
Wrap response to signal that the gateway adapter has synchronously
completed its work. Process can directly continue with next
actions and state transitions.
Wrap response to signal that the gateway adapter has synchronously completed its work . Process can directly continue with next actions and state transitions .
def unwrap_completion(completion, &sync_success_cb)
    response = completion[:response]
    if response[:success] && completion[:sync]
      sync_success_cb.call(response)
    end
    response
  end
def unwrap_completion ( completion , & sync_success_cb ) response = completion [ :response ] if response [ :success ] && completion [ :sync ] sync_success_cb . call ( response ) end response end
Wrap response to signal that the gateway adapter has synchronously
completed its work.
Wrap response to signal that the gateway adapter has synchronously completed its work .
completion
sync_success_cb