Get Instant Solutions for Kubernetes, Databases, Docker and more
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.
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.
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.
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.
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);
}
});
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.
For more detailed guidance, refer to the Braintree Recurring Billing Documentation. This resource provides comprehensive information on managing plans and subscriptions effectively.
(Perfect for DevOps & SREs)
(Perfect for DevOps & SREs)