Debug Your Infrastructure

Get Instant Solutions for Kubernetes, Databases, Docker and more

AWS CloudWatch
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Pod Stuck in CrashLoopBackOff
Database connection timeout
Docker Container won't Start
Kubernetes ingress not working
Redis connection refused
CI/CD pipeline failing

Braintree Recurring Invalid trial period error encountered during subscription creation.

The trial period specified does not match the plan settings.

Understanding Braintree Recurring

Braintree Recurring is a powerful tool that facilitates subscription billing and management for businesses. It allows developers to integrate seamless subscription services into their applications, handling everything from billing cycles to customer management. This tool is part of the broader Braintree Payments platform, which is known for its robust and flexible payment processing capabilities.

Identifying the Symptom

When working with Braintree Recurring, you might encounter an error message with the code 91510. This error typically manifests when attempting to create or update a subscription with an invalid trial period. The error message might read something like: "Invalid trial period." This indicates that there is a mismatch between the trial period specified in your API request and the plan settings configured in Braintree.

Exploring the Issue

The error code 91510 is triggered when the trial period specified in your subscription request does not align with the trial period settings of the plan you are trying to use. This can happen if the trial period is set to a value that is not allowed by the plan or if the plan does not support trial periods at all. For more information on Braintree error codes, you can visit the Braintree Error Codes Documentation.

Common Causes

  • Specifying a trial period that exceeds the maximum allowed by the plan.
  • Attempting to set a trial period on a plan that does not support trials.
  • Incorrectly formatted trial period values in the API request.

Steps to Fix the Issue

To resolve the 91510 error, follow these steps:

Step 1: Verify Plan Settings

First, check the plan settings in your Braintree dashboard to ensure that the trial period you are trying to set is supported. Navigate to the Braintree Control Panel, and review the plan details under the 'Plans' section.

Step 2: Adjust API Request

Ensure that your API request includes a trial period that matches the plan settings. Here is an example of how to set the trial period correctly in your API request:

{
"subscription": {
"paymentMethodToken": "your_payment_method_token",
"planId": "your_plan_id",
"trialPeriod": true,
"trialDuration": 14, // Ensure this matches the plan settings
"trialDurationUnit": "day"
}
}

Step 3: Test the Changes

After making the necessary adjustments, test the subscription creation process again to ensure the error is resolved. You can use Braintree's API documentation for guidance on testing and validating your requests.

Conclusion

By ensuring that your trial period settings align with your plan configurations, you can effectively resolve the 91510 error in Braintree Recurring. Proper configuration and testing will help maintain a smooth subscription management process for your application.

Master 

Braintree Recurring Invalid trial period error encountered during subscription creation.

 debugging in Minutes

— Grab the Ultimate Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Real-world configs/examples
Handy troubleshooting shortcuts
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

🚀 Tired of Noisy Alerts?

Try Doctor Droid — your AI SRE that auto-triages alerts, debugs issues, and finds the root cause for you.

Heading

Your email is safe thing.

Thank you for your Signing Up

Oops! Something went wrong while submitting the form.

MORE ISSUES

Deep Sea Tech Inc. — Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid