parameters: (self)
docstring: Check the state of the transactions and request their capture.
docstring_summary: Check the state of the transactions and request their capture.
docstring_tokens: Check the state of the transactions and request their capture .
function: def action_capture(self):
          """ Check the state of the transactions and request their capture. """
          if any(tx.state != 'authorized' for tx in self):
              raise ValidationError(_("Only authorized transactions can be captured."))
  
          for tx in self:
              tx._send_capture_request()
function_tokens: def action_capture ( self ) : if any ( tx . state != 'authorized' for tx in self ) : raise ValidationError ( _ ( "Only authorized transactions can be captured." ) ) for tx in self : tx . _send_capture_request ( )