code: def capture(self, payment_id, amount, data={}, **kwargs):
          
          Capture Payment for given Id
  
          Args:
              payment_id : Id for which payment object has to be retrieved
              Amount : Amount for which the payment has to be retrieved
  
          Returns:
              Payment dict after getting captured
          """
          url = "{}/{}/capture".format(self.base_url, payment_id)
          data['amount'] = amount
          return self.post_url(url, data, **kwargs)
docs: Capture Payment for given Id
  
          Args:
              payment_id : Id for which payment object has to be retrieved
              Amount : Amount for which the payment has to be retrieved
  
          Returns:
              Payment dict after getting captured