code: def retry_unpaid_invoices(self):
  		
  
  		self._sync_invoices()
  		for invoice in self.invoices.filter(paid=False, closed=False):
  			try:
  				invoice.retry()  # Always retry unpaid invoices
  			except InvalidRequestError as exc:
  				if str(exc) != "Invoice is already paid":
  					raise
docs: Attempt to retry collecting payment on the customer's unpaid invoices.