setEnvironment method

void setEnvironment({
  1. PaymentEnvironment environment = PaymentEnvironment.Test,
})

Implementation

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