(self)
return False
Retry payment on this invoice if it isn't paid or uncollectible.
Retry payment on this invoice if it isn't paid or uncollectible.
Retry payment on this invoice if it isn t paid or uncollectible .
def retry(self):
        """Retry payment on this invoice if it isn't paid or uncollectible."""

        if (
            self.status != enums.InvoiceStatus.paid
            and self.status != enums.InvoiceStatus.uncollectible
            and self.auto_advance
        ):
            stripe_invoice = self.api_retrieve()
            updated_stripe_invoice = (
                stripe_invoice.pay()
            )  # pay() throws an exception if the charge is not successful.
            type(self).sync_from_stripe_data(updated_stripe_invoice)
            return True
        return False
def retry ( self ) : if ( self . status != enums . InvoiceStatus . paid and self . status != enums . InvoiceStatus . uncollectible and self . auto_advance ) : stripe_invoice = self . api_retrieve ( ) updated_stripe_invoice = ( stripe_invoice . pay ( ) ) # pay() throws an exception if the charge is not successful. type ( self ) . sync_from_stripe_data ( updated_stripe_invoice ) return True return False