

# PaymentFailurePolicy

How a plan reacts to a failed recurring payment. Each member falls back to the service-wide default when absent.

## Contents
<a name="API_PaymentFailurePolicy_Contents"></a>

 ** downgradeToPlanId **   <a name="appmonetization-Type-PaymentFailurePolicy-downgradeToPlanId"></a>
Plan to move the subscriber to once the attempts are exhausted.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[a-z0-9-]+`   
Required: No

 ** retryAttempts **   <a name="appmonetization-Type-PaymentFailurePolicy-retryAttempts"></a>
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.  
Type: Integer  
Valid Range: Minimum value of 1.  
Required: No

 ** retryWindowDays **   <a name="appmonetization-Type-PaymentFailurePolicy-retryWindowDays"></a>
The number of days over which to retry a failed recurring payment.  
Type: Integer  
Valid Range: Minimum value of 0.  
Required: No

## See Also
<a name="API_PaymentFailurePolicy_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/appmonetization-2022-07-26/PaymentFailurePolicy) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/appmonetization-2022-07-26/PaymentFailurePolicy) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/appmonetization-2022-07-26/PaymentFailurePolicy) 