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 Plan not found error when attempting to create a subscription.

The plan ID used in the API request does not exist or is inactive.

Understanding Braintree Recurring

Braintree Recurring is a powerful tool within the Braintree suite of payment solutions, designed to manage billing and subscriptions efficiently. It allows businesses to automate the billing process, handle subscription renewals, and manage customer payment methods seamlessly. By integrating Braintree Recurring, developers can focus on building their applications while ensuring reliable and secure payment processing.

Identifying the Symptom

When working with Braintree Recurring, you might encounter an error message stating: "91506: Plan not found". This error typically arises when attempting to create or update a subscription using an invalid or inactive plan ID. The application may fail to process the subscription, leading to disruptions in the billing cycle.

Exploring the Issue

Error Code Explanation

The error code 91506 indicates that the plan ID specified in your API request does not match any active plan in your Braintree account. This could be due to a typo, an incorrect plan ID, or the plan being deactivated or deleted.

Common Causes

  • Using a plan ID that does not exist in your Braintree dashboard.
  • Attempting to use a plan that has been deactivated.
  • Typographical errors in the plan ID.

Steps to Fix the Issue

Verify the Plan ID

First, ensure that the plan ID you are using in your API request is correct. Log in to your Braintree dashboard and navigate to the Plans section. Check if the plan ID exists and is active.

Update Your API Request

If the plan ID was incorrect, update your API request with the correct plan ID. Here is an example of how to set the plan ID in a subscription creation request:

gateway.subscription.create({
paymentMethodToken: "the_payment_method_token",
planId: "correct_plan_id"
}, function (err, result) {
if (result.success) {
console.log("Subscription created successfully!");
} else {
console.error(result.message);
}
});

Reactivate the Plan

If the plan is inactive, you may need to reactivate it. In the Braintree dashboard, find the plan and toggle its status to active. This will allow you to use the plan ID in your API requests again.

Additional Resources

For more detailed guidance, refer to the Braintree Recurring Billing Documentation. This resource provides comprehensive information on managing plans and subscriptions effectively.

Master 

Braintree Recurring Plan not found error when attempting to create a subscription.

 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.

Heading

Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Your email is safe thing.

Thankyou for your submission

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

MORE ISSUES

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

Doctor Droid