Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author syednazrulhassan

    (@nazrulhassanmca)

    @dawidadach

    There is a line of code as below

    Braintree_Configuration::environment(BRAINTREE_MODE);

    Where BRAINTREE_MODE goes like below in constructor

    if(!defined("BRAINTREE_MODE"))
    		{ define("BRAINTREE_MODE"  , ($this->braintree_sandbox =='yes'? 'sandbox' : 'live')); }

    So it means they areaccepting a different mode name instead of ‘live’ however sandbox still accepts ‘sandbox’

    Can you communicate to paypal/braintree support and ask them if possible

    However i checked another plugin as well they also have mode as ‘live’

    Regards

    Thread Starter dawidadach

    (@dawidadach)

    On the other hand when I check this documentation
    , it says:

    Braintree::Configuration.environment = :production

    So it looks like they might have change something recently

    Plugin Author syednazrulhassan

    (@nazrulhassanmca)

    Okay i just updated my code can you just reinstall and try again please

    Thread Starter dawidadach

    (@dawidadach)

    I changed manually code (live-> production) It works fine now ??

    Plugin Author syednazrulhassan

    (@nazrulhassanmca)

    Can you rate my plugin please ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Live is not valid environment’ is closed to new replies.