Interface PaymentFailurePolicy.Builder

  • Method Details

    • retryAttempts

      PaymentFailurePolicy.Builder retryAttempts(Integer retryAttempts)

      The total number of payment attempts for a failed recurring payment, including the first attempt, before the failure is final. For example, 3 means the first attempt and up to 2 retries.

      Parameters:
      retryAttempts - The total number of payment attempts for a failed recurring payment, including the first attempt, before the failure is final. For example, 3 means the first attempt and up to 2 retries.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retryWindowDays

      PaymentFailurePolicy.Builder retryWindowDays(Integer retryWindowDays)

      The number of days over which to retry a failed recurring payment.

      Parameters:
      retryWindowDays - The number of days over which to retry a failed recurring payment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • downgradeToPlanId

      PaymentFailurePolicy.Builder downgradeToPlanId(String downgradeToPlanId)

      Plan to move the subscriber to once the attempts are exhausted.

      Parameters:
      downgradeToPlanId - Plan to move the subscriber to once the attempts are exhausted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.