• Resolved buttabrain

    (@buttabrain)


    Hi, I am currently using this plugin and it works in sandbox, now im trying to go to production

    I already have an approved braintree paypal account

    However when I use this plugin and go to “connect with braintree” and login, it requires me to re-enter in all my information including my FULL SSN when i only needed to enter last 4 digits of my SSN when i first created my braintree account

    is there a way to go from sandbox to production WITHOUT going through the “connect with braintree” where I have to enter my FULL SSL

    From reading the instructions offered from Braintree’s official site it says I just need to put this code in

    require_once(plugins_url() . ‘/woocommerce-gateway-paypal-powered-by-braintree/braintree_sdk/lib/Braintree.php’);
    Braintree_Configuration::environment(‘production’);
    Braintree_Configuration::merchantId(‘YOUR_PRODUCTION_MERCHANT_ID’);
    Braintree_Configuration::publicKey(‘YOUR_PRODUCTION_PUBLIC_KEY’);
    Braintree_Configuration::privateKey(‘YOUR_PRODUCTION_PRIVATE_KEY’);

    NOTE: this code here is not in the official braintree instructions but it has been recommended by other sites to use this in order to fix the issue: require_once(plugins_url() . ‘/woocommerce-gateway-paypal-powered-by-braintree/braintree_sdk/lib/Braintree.php’);

    however, when I do, it gives me the following error: “Fatal error: Class ‘Braintree_Configuration’ not found in /home4/fierytycoon/public_html/resumego.net/wp-content/themes/divi-childtheme/functions.php on line 136”

    Line 136 refers to the first line of the code used “Braintree_Configuration::environment(‘production’);”

    how do I fix this error and get myself from sandbox testing mode to production live mode?

Viewing 1 replies (of 1 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    With PayPal Powered By Braintree, you’ll generally want two separate accounts: one sandbox account and one live account. These are two completely separate sets of credentials.

    You won’t need to change any code – the plugin can handle the switching. Make sure to choose “Connect with Braintree” for live transactions or “Not ready to accept live payments?” for sandbox transactions:

    Screenshot: https://cld.wthms.co/VS5m/2U1XkKlY

    When you switch from sandbox to live within the plugin, you’ll need to use the different sets of credentials. You can switch by clicking “Disconnect” and then reconnecting with either the live or sandbox modes.

    I hope that clarifies things for you!

Viewing 1 replies (of 1 total)
  • The topic ‘How to go from sandbox to production’ is closed to new replies.