setEnvironment method
Implementation
void setEnvironment(
{PaymentEnvironment environment = PaymentEnvironment.Test}) {
var params = <String, bool>{
"isTestEnvironment": environment == PaymentEnvironment.Test,
};
_channel.invokeMethod('switchEnvironment', params);
}