# Braintree plugin; is this a bug?

**URL:** <https://forum.bubble.io/t/braintree-plugin-is-this-a-bug/8984>\
**Category:** Plugins\
**Created:** [December 23, 2016, 1:29am UTC](https://forum.bubble.io/t/braintree-plugin-is-this-a-bug/8984 "2016-12-23T01:29:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mente12](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mente12/32/30410_2.png) [@mente12](https://forum.bubble.io/u/mente12)\
**Post date:** [December 23, 2016, 1:29am UTC](https://forum.bubble.io/t/braintree-plugin-is-this-a-bug/8984/1 "2016-12-23T01:29:19Z")

</div>

I tested the Braintree subscription plan with the Braintree sandbox in Bubble. All works great! But…

Now I want to take the application to production and use Braintree production. So I created the same 2 plans I had in the sandbox but now also in Braintree production. Same identical ID and names for both plans.

However, when I change API keys to the PRODUCTION keys in the bubble API area, I get 2 issues. Then I look at the ACTION and the plan dropdown have now changed from the PLAN NAME (previously showing correctly) to the PLAN ID. This happens in the 2 actions I have for the 2 plans I have.

Obviously they show as 2 issues and when I tested (preview) out I get “Error Calling Braintree API: Authentication Error”. I am testing in bubble development with Braintree production keys.

Needless to say this is key to my application and business model. I hope this information helps you hunt down the bug. Or is it something else?

ADDITIONAL INFORMATION:  
If I add an new subscription payment action in the workflow area, I get an empty dropdown with no plan names. Again, this is only with production keys. If I change the keys back to SANDBOX the plan names appear.

MORE INFORMATION:  
How do you determine if you are looking at production or sandbox? I don’t see where I can select which I am testing. There is a third value setting in the Braintree documentation called “ENVIRONMENT” see below:

Braintree::Configuration.environment = :production  
Braintree::Configuration.merchant\_id = “YOUR\_PRODUCTION\_MERCHANT\_ID”  
Braintree::Configuration.public\_key = “YOUR\_PRODUCTION\_PUBLIC\_KEY”  
Braintree::Configuration.private\_key = “YOUR\_PRODUCTION\_PRIVATE\_KEY”

Without someone specifying that, how would you know which system to look at to populate the dropdown available in the WORKFLOW area?
